havp configure.in use HOST clamav-config to determine CFLAGS and LDFLAGS to link properly. This is not safe as when cross compiling, CHOST objects are different from CBUILD, as CFLAGS and all others variables. (see build-1.log for the full log). Plus, when you don't have clamav installed on you host (which is right), you can get error like this (see build-2.log for the full log). checking for ClamAV scanner library... clamav-config not found But it's available in the SYSROOT. Here is patch proposal that fix it by using pkg-config instead of clamav-config. Also, emerge --info attached. All this work is available here : http://git.meleeweb.net/cgit.cgi/distros/gentoo/portage.git/log/net-proxy/havp Reproducible: Always Steps to Reproduce: 1. crossdev -t armv6jl-hardfloat-linux-gnueabi 2. armv6jl-hardfloat-linux-gnueabi-emerge -vat havp::gentoo 3.
Created attachment 350554 [details] emerge --info
Created attachment 350556 [details] emerge --info Sorry, wrong info, replace armv6jl-hardfloat-linux-gnueabi with i586-pc-linux-gnu
Created attachment 350558 [details] build-1.log This is case #1. app-antivirus/clamav installed on CHOST and CBUILD. Portion of log that is wrong : checking for ClamAV scanner library... found 0.97.8 in /usr ... make[2]: Leaving directory `/var/tmp/i586-pc-linux-gnu/portage/net-proxy/havp-0.92a-r1/work/havp-0.92a/havp/scanners' i586-pc-linux-gnu-g++ -march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -I/usr/include -o havp helper.o logfile.o scannerhandler.o connectiontobrowser.o genericscanner.o httphandler.o params.o sockethandler.o connectiontohttp.o havp.o proxyhandler.o utils.o whitelist.o scanners/scanners .a -L/usr/i586-pc-linux-gnu/lib -L/usr/i586-pc-linux-gnu/usr/lib -L/usr/lib64 -L/usr/lib64 -lclamav "-L/usr/lib64 -L/usr/lib64" come from clamav-config # clamav-config --libs -L/usr/lib64 -lz -L/usr/lib64 -lbz2 -ltommath
Created attachment 350560 [details] build-2.log This is case #2. app-antivirus/clamav installed on CHOST and not on CBUILD.
Created attachment 350562 [details, diff] files/havp-0.92a-BJA-pkg-config-libclamav.diff Patch for havp configure.in
I'll try to look into this soon.
Seems I was distracted by exams around that time or so. There we go... + 12 Oct 2013; Tom Wijsman <TomWij@gentoo.org> + +files/havp-0.92a-r1-pkg-config-libclamav.patch, havp-0.92a-r1.ebuild: + Fix linking with libclamav when cross compiling, patch by Bertrand Jacquin + whom reported bug #472782. Thank you for your contribution!