On Thu, May 31, 2007, Thomas Arendsen Hein wrote:

> * Thomas Arendsen Hein <[EMAIL PROTECTED]> [20070530 21:44]:
> > I'm not subscribed to the list, so please Cc: me on replies.
> >
> > When building clamav-0.90.2-20070413.src.rpm on Debian sarge on
> > x86 with OpenPKG-current from today I got the following error:
> >
> > /kolab/bin/cc -O2 -pipe -o clamscan output.o getopt.o cfgparser.o misc.o 
> > options.o clamscan.o others.o manager.o treewalk.o  -L/kolab/lib 
> > ../libclamav/.libs/libclamav.a -liconv -lbz2 /kolab/lib/libgmp.a 
> > /kolab/lib/libcurl.a -lz -lssl -lcrypto -ldl -lnsl -lpthread
> > output.o: In function `logg':
> > output.c:(.text+0x1c8): undefined reference to `libintl_gettext'
> > output.c:(.text+0x2ca): undefined reference to `libintl_gettext'
> > output.c:(.text+0x31c): undefined reference to `libintl_gettext'
>
> Ah, I just saw that I had the same problem a while ago with an
> OpenPKG 2.5 based installation, see my mail on this list:
> [EMAIL PROTECTED]
>
> My proposed solution there was:
>
> --- clamav.spec.orig    2007-02-14 06:54:23.000000000 +0100
> +++ clamav.spec 2007-02-14 17:54:29.000000000 +0100
> @@ -84,6 +84,7 @@
>      CFLAGS="%{l_cflags -O}" \
>      CPPFLAGS="%{l_cppflags}" \
>      LDFLAGS="%{l_ldflags}" \
> +    LIBS="-lintl -liconv" \
>      GREP="grep" \
>      ./configure \
>          --prefix=%{l_prefix} \
>
> Seems as if -lintl isn't added automatically (while -liconv is),
> adding LIBS="-lintl" solves (or works around) the problem.

Thanks for reporting. I've now also fixed it, but at the root: the
ClamAV people hard-coded gettext (libintl) usage on Linux. Please
retry with the latest version as of today.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to