Re: clamav-0.90.2-20070413 compile problem

2007-05-31 Thread Ralf S. Engelschall
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.orig2007-02-14 06:54:23.0 +0100
 +++ clamav.spec 2007-02-14 17:54:29.0 +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


Re: clamav-0.90.2-20070413 compile problem

2007-05-31 Thread Thomas Arendsen Hein
* Ralf S. Engelschall [EMAIL PROTECTED] [20070531 12:40]:
 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.

Compiles fine now.

FYI, clamav 0.90.3 (and 0.91rc1) have just been released.

Thomas

-- 
[EMAIL PROTECTED] - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
__
OpenPKG http://openpkg.org
Developer Communication List   openpkg-dev@openpkg.org