Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264852

Summary: app-antivirus/clamav-0.95 fails on ucliibc (nls problem)
Product: Gentoo Linux Reporter: Aurélien Francillon <aurelien.francillon>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Severity: normal CC: net-mail+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 264834, 265545    
Attachments: clamav-0.95-nls.patch

Description Aurélien Francillon 2009-04-04 10:57:08 UTC
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[2]: *** [output.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/optparser.Tpo .deps/optparser.Po
make[2]: Leaving directory `/var/tmp/portage/app-antivirus/clamav-0.95/work/clamav-0.95/clamscan'
make[1]: *** [all-recursive] Error 1
make[1]: 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:
 *     , 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:

Reproducible: Always
Comment 1 Aurélien Francillon 2009-04-04 11:00:27 UTC
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
Comment 2 Thomas Raschbacher gentoo-dev 2009-04-09 11:53:17 UTC
can you also check it against 0.95.1 please? thanks
Comment 3 Aurélien Francillon 2009-04-09 16:09:20 UTC
(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.

Comment 4 Thomas Raschbacher gentoo-dev 2009-04-16 14:29:11 UTC
added patch for 0.95 and 0.95.1 (will prolly remove 0.95 soon anyway but added it for now)
Comment 5 Aurélien Francillon 2009-04-17 10:57:20 UTC
(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[9177]: 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

Comment 6 Aurélien Francillon 2009-04-17 10:58:30 UTC
Created attachment 188668 [details]

portage log while emerging app-antivirus/clamav-0.95.1
Comment 7 Thomas Raschbacher gentoo-dev 2009-04-17 11:42:32 UTC
closing the bug .. imho u need sec-policy/selinux-clamav .. if that still is an issue report a bug about the policy plz :)
Comment 8 Aurélien Francillon 2009-04-17 11:56:30 UTC
(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...