HTTP Anti-Virus Proxy http://havp.hege.li/forum/ |
|
Compile with gcc4.4 http://havp.hege.li/forum/viewtopic.php?f=3&t=461 |
Page 1 of 1 |
Author: | dubrsl [ 10 May 2009 23:16 ] |
Post subject: | Compile with gcc4.4 |
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 |
Author: | karesmakro [ 11 May 2009 21:51 ] |
Post subject: | Re: Compile with gcc4.4 |
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 regards, karesmakro |
Author: | dubrsl [ 11 May 2009 22:15 ] |
Post subject: | Re: Compile with gcc4.4 |
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 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 |
Author: | hege [ 17 May 2009 12:07 ] |
Post subject: | Re: Compile with gcc4.4 |
Thanks, I've applied this fix. |
Page 1 of 1 | All times are UTC + 2 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |