the problem is that clamav-0.95/shared/output.c includes libintl.h and co without checking for HAVE_LIBINTL_H
here is the build failure log :
i686-pc-linux-uclibc-gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.. -I.. -I../shared -I../libclamav -march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o `test -f '../shared/getopt.c' || echo './'`../shared/getopt.c
../shared/output.c:71:21: libintl.h: No such file or directory
mv -f .deps/getopt.Tpo .deps/getopt.Po
i686-pc-linux-uclibc-gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.. -I.. -I../shared -I../libclamav -march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx -MT optparser.o -MD -MP -MF .deps/optparser.Tpo -c -o optparser.o `test -f '../shared/optparser.c' || echo './'`../shared/optparser.c
make: *** [output.o] Error 1
make: *** Waiting for unfinished jobs....
mv -f .deps/optparser.Tpo .deps/optparser.Po
make: Leaving directory `/var/tmp/portage/app-antivirus/clamav-0.95/work/clamav-0.95/clamscan'
make: *** [all-recursive] Error 1
make: Leaving directory `/var/tmp/portage/app-antivirus/clamav-0.95/work/clamav-0.95'
make: *** [all] Error 2
* ERROR: app-antivirus/clamav-0.95 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3207: Called die
* The specific snippet of code:
* emake || die
* The die message:
* (no error message)
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/log/portage/app-antivirus:clamav-0.95:20090404-100038.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-antivirus/clamav-0.95/temp/environment'.
>>> Failed to emerge app-antivirus/clamav-0.95, Log file:
Created attachment 187281 [details, diff]
patch that adds the proper check for HAVE_LIBINTL_H, works fine on my x86/hardened/uclibc, not tested against glibc based hosts however...
also not that it's very similar to bug #167829
can you also check it against 0.95.1 please? thanks
(In reply to comment #2)
> can you also check it against 0.95.1 please? thanks
Same problem with 0.95.1, and the patch (clamav-0.95-nls.patch) works without problem on 0.95.1 and fixes the problem for me.
added patch for 0.95 and 0.95.1 (will prolly remove 0.95 soon anyway but added it for now)
(In reply to comment #4)
> added patch for 0.95 and 0.95.1 (will prolly remove 0.95 soon anyway but added
> it for now)
thanks a lot !
I have tested 0.95.1 it works well.
The only remaining problem (that i haven't reported earlier ) is a segfault reported by grsec (I'm running uclibc/hardened profile) during configure. It doesn't seem to pose any problem, and is most probably unrelated.
I'll post the log, just tell me if you think it's worht a separate bug report. In such case close the bug and I'll open another one...
the grsec message:
[352989.574569] conftest: segfault at 0 ip 0804d346 sp 597f3fd0 error 4 in conftest[8048000+b000]
[352989.574646] grsec: From <ipaddr>: signal 11 sent to /var/tmp/portage/app-antivirus/clamav-0.95.1/work/clamav-0.95.1/conftest[conftest:9177] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/app-antivirus/clamav-0.95.1/work/clamav-0.95.1/configure[configure:9176] uid/euid:0/0 gid/egid:0/0
Created attachment 188668 [details]
portage log while emerging app-antivirus/clamav-0.95.1
closing the bug .. imho u need sec-policy/selinux-clamav .. if that still is an issue report a bug about the policy plz :)
(In reply to comment #7)
> closing the bug .. imho u need sec-policy/selinux-clamav ..
I'm not using selinux at all on this computer ...
> if that still is an
> issue report a bug about the policy plz :)
I'll try to see if I can find what the problem is, for now it's not
harmful at all...