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


Re: clamav-0.90.2-20070413 compile problem

2007-05-30 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-30 Thread Thomas Arendsen Hein
* 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.

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


clamav-0.90.2-20070413 compile problem

2007-05-30 Thread Thomas Arendsen Hein
Hi!

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'
collect2: ld returned 1 exit status
make[2]: *** [clamscan] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.23344 (%build)

Build was initiated with "openpkg build -kK amavisd clamav | sh"

Currently installed packages:
openpkg-20070520-20070520
gpg-pubkey-61b7ae34-4544a6af
make-3.81-20061013
gcc-4.2.0-20070523
procmail-3.22-20061013
perl-5.8.8-20070520
grep-2.5.1a-20061013
ncurses-5.6.20070526-20070527
m4-1.4.9-20070503
groff-1.19.2-20070113
pth-2.0.7-20061013
openldap-2.3.35-20070530
perl-openpkg-5.8.8-20061013
perl-util-5.8.8-20070519
perl-ds-5.8.8-20070522
postfix-2.4.1-20070424
perl-sys-5.8.8-20070525
bzip2-1.0.4-20070507
perl-mail-5.8.8-20070526
perl-db-5.8.8-20070205
perl-parse-5.8.8-20070522
expat-2.0.0-20061013
perl-net-5.8.8-20070524
openpkg-tools-1.4.4-20070302
config-20060923-20061013
libiconv-1.11-20061013
automake-1.10-2006
libxml-2.6.28-20070417
libxslt-1.1.20-20070117
php-5.2.2-20070530.thl.1
apache2-php-5.2.2-20070530
sed-4.1.5-20061013
perl-comp-5.8.8-20070305
pkgconfig-0.21-20061013
curl-7.16.2-20070411
gpg-pubkey-63c4cb9f-3c591eda
gpg-pubkey-52197903-4544a74d
binutils-2.17-20070529
fsl-1.7.0-20070316
db-4.5.20.2-20070507
pcre-7.1-20070424
sharutils-4.6.3-20061013
texinfo-4.8a-20070206
bison-2.3-20070312
openssl-0.9.8e-20070523
readline-5.2.4-20070507
sasl-2.1.22-20070507
perl-module-5.8.8-20070511
perl-stats-5.8.8-20070507
perl-time-5.8.8-20070508
perl-term-5.8.8-20061013
diffutils-2.8.7-20061013
gzip-1.3.11-20070206
perl-conv-5.8.8-20070526
perl-crypto-5.8.8-20070521
zlib-1.2.3-20070507
perl-xml-5.8.8-20070316
perl-dns-5.8.8-20061013
imap-2006h-20070530.thl.1
imapd-2.3.8-20070529.thl.2
autoconf-2.61-20061118
gettext-0.16.1-20061128
flex-2.5.33-20070507
apache2-2.2.4-20070530
spamassassin-3.2.0-20070529
lzo-2.02-20061013
amavisd-2.5.0-20070423
gmp-4.2.1-20061222
bc-1.06-20061013

Thomas

-- 
[EMAIL PROTECTED] - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrück - Registereintrag: Amtsgericht Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
__
OpenPKG http://openpkg.org
Developer Communication List   openpkg-dev@openpkg.org