HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: statically linked binary
PostPosted: 28 May 2007 13:52 
Offline

Joined: 23 May 2007 11:19
Posts: 5
Hi.
Since I need to compile HAVP for old distros (aka Debian Woody), is possible to build a statically linked binary?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: 28 May 2007 16:21 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
I've never tried, so I can't tell you. But if I had to answer, yes you can build pretty much anything static if you know the right switches. ;)


Top
 Profile  
 
 Post subject:
PostPosted: 28 May 2007 16:35 
Offline

Joined: 23 May 2007 11:19
Posts: 5
Here what I tried to do:

from the root source:
ln -s `g++ -print-file-name=libstdc++.a`

Then tried to compile with:
./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib --sysconfdir=/etc/havp --mandir=/usr/share/man CXXFLAGS="-static-libgcc" LDFLAGS="-L."
make CXXFLAGS="-static-libgcc" LDFLAGS="-L."

But I get errors related to clamav...

scanners/scanners.a(clamlibscanner.o): In function `ClamLibScanner::Scan(char const*)':
clamlibscanner.cpp:(.text+0x151): undefined reference to `cl_scanfile'
clamlibscanner.cpp:(.text+0x18e): undefined reference to `cl_strerror

Probably because I need to set LDFLAGS pointing to clamav lib too...Any idea?


Top
 Profile  
 
 Post subject:
PostPosted: 28 May 2007 16:40 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
Yes you need to first compile ClamAV static library, so you have libclamav.a.


Top
 Profile  
 
 Post subject:
PostPosted: 28 May 2007 17:36 
Offline

Joined: 23 May 2007 11:19
Posts: 5
Problem remains, still I tried to disable clamav to see if static link work.

ldd havp

libm.so.6 => /lib/libm.so.6 (0x40017000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40038000) ???
libc.so.6 => /lib/libc.so.6 (0x40040000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


is this probably pulled in indirectly, from some other system library?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group