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.


All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Compile with gcc4.4
PostPosted: 10 May 2009 23:16 
Offline

Joined: 10 May 2009 22:57
Posts: 2
Hi.

Have problem with build from source with gcc4.4:

Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.60415
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd havp-0.90
+ CFLAGS='-pipe -Wall -O2 -march=i586 -mtune=i686'
+ export CFLAGS
+ CXXFLAGS='-pipe -Wall -O2 -march=i586 -mtune=i686'
+ export CXXFLAGS
+ FFLAGS='-pipe -Wall -O2 -march=i586 -mtune=i686'
+ export FFLAGS
+ export lt_cv_deplibs_check_method=pass_all
+ lt_cv_deplibs_check_method=pass_all
+ ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext --localstatedir=/var --enable-ssl-tunnel
checking for i586-alt-linux-g++... i586-alt-linux-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether i586-alt-linux-g++ accepts -g... yes
checking for ar... ar
checking for perl... perl
checking for i586-alt-linux-gcc... i586-alt-linux-gcc
checking whether we are using the GNU C compiler... yes
checking whether i586-alt-linux-gcc accepts -g... yes
checking for i586-alt-linux-gcc option to accept ISO C89... none needed
checking for initgroups... yes
checking for setgroups... yes
checking OS... Linux
checking for mandatory locking support... OS supported
checking for ClamAV scanner library... found 0.94.2 in /usr
checking for Trend Micro scanner... /etc/iscan/libvsapi.so not found, disabled
configure: creating ./config.status
config.status: creating Makefile
config.status: creating havp/Makefile
config.status: creating havp/scanners/Makefile
config.status: creating etc/havp/havp.config
config.status: creating havp/default.h
+ '[' -n '' ']'
+ NPROCS=1
+ make -j1
make: Entering directory `/usr/src/RPM/BUILD/havp-0.90'
cd havp && make
make[1]: Entering directory `/usr/src/RPM/BUILD/havp-0.90/havp'
i586-alt-linux-g++ -pipe -Wall -O2 -march=i586 -mtune=i686 -Wall -g -O2 -DHAVE_CONFIG_H -c -o helper.o helper.cpp
helper.cpp: In function 'bool MakeDaemon()':
helper.cpp:158: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result
i586-alt-linux-g++ -pipe -Wall -O2 -march=i586 -mtune=i686 -Wall -g -O2 -DHAVE_CONFIG_H -c -o logfile.o logfile.cpp
logfile.cpp: In static member function 'static void LogFile::AccessMessage(const char*, ...)':
logfile.cpp:83: error: 'vsnprintf' was not declared in this scope
logfile.cpp:102: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
logfile.cpp: In static member function 'static void LogFile::VirusMessage(const char*, ...)':
logfile.cpp:113: error: 'vsnprintf' was not declared in this scope
logfile.cpp:132: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
logfile.cpp: In static member function 'static void LogFile::ErrorMessage(const char*, ...)':
logfile.cpp:143: error: 'vsnprintf' was not declared in this scope
logfile.cpp:162: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
make[1]: Leaving directory `/usr/src/RPM/BUILD/havp-0.90/havp'
make[1]: *** [logfile.o] Error 1
make: *** [all] Error 2
make: Leaving directory `/usr/src/RPM/BUILD/havp-0.90'


Whether there are any patches which correct it?
Thanks.

WBR,
Slava


Top
 Profile  
 
 Post subject: Re: Compile with gcc4.4
PostPosted: 11 May 2009 21:51 
Offline

Joined: 23 Apr 2008 09:36
Posts: 101
Hi dubrsl!

HAVP-0.90 is only for using with actual clamav-0.95.1, but your installed version is 0.94.2!!!

Try to compile clamav-0.95.1 from source, if you want to use HAVP-0.90.
If you want to use clamav-0.94.2, you should use HAVP-0.89 :wink:

regards, karesmakro


Top
 Profile  
 
 Post subject: Re: Compile with gcc4.4
PostPosted: 11 May 2009 22:15 
Offline

Joined: 10 May 2009 22:57
Posts: 2
karesmakro wrote:
Hi dubrsl!

HAVP-0.90 is only for using with actual clamav-0.95.1, but your installed version is 0.94.2!!!

Try to compile clamav-0.95.1 from source, if you want to use HAVP-0.90.
If you want to use clamav-0.94.2, you should use HAVP-0.89 :wink:


Seems I asked other question.
Replacement libclamav does not solve the given problem.
Solves here such a patch: http://git.altlinux.org/people/dubrsl/packages/? p=havp.git; a=commitdiff;h=595b349ffeb5f0593f2dcd4148c9fd321c8bb88b

WBR,
Slava


Top
 Profile  
 
 Post subject: Re: Compile with gcc4.4
PostPosted: 17 May 2009 12:07 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
Thanks, I've applied this fix.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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