, <pkgsrc-users@netbsd.org>
From: Frank DeChellis <frankd@iaw.on.ca>
List: pkgsrc-users
Date: 03/14/2007 06:55:27
On 3/14/07 6:12 AM, "Roland Illig" <rillig@NetBSD.org> wrote:
> Frank DeChellis wrote:
>> Hi there,
>>=20
>> We are using NetBSD 1.6.2 and I=B9m having trouble installing clamAV 0.90.=
1
>> All has worked fine until now. I have the latest pkg_install installed.
>> Running =B3make update=B2 it does it=B9s thing then ends with
>>=20
>> [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
>> /usr/pkg/bin/libtool --tag=3DCC --mode=3Dlink cc -O2
>> -I/usr/pkgsrc/mail/clamav/work/.buildlink/include
>> -L/usr/pkgsrc/mail/clamav/work/.buildlink/lib -Wl,-R/usr/pkg/lib -o clam=
scan
>> output.o getopt.o cfgparser.o misc.o options.o clamscan.o others.o manag=
er.o
>> treewalk.o ../libclamav/libclamav.la -lpthread
>=20
> You forgot to post the relevant line. :) It's the line above this one.
> This one is only a "note" for helping developers to find bugs. The error
> message from the compiler must be somewhere above that.
>=20
> I think the build failure has to do with the -lpthread option. NetBSD
> 1.6.2 did not really have threading, and I remember that it was painful
> to get all those threading packages to work on it.
>=20
> Roland
>=20
Thanks...does this help at all? I'm not sure what I am looking at. This i=
s
my on screen output. The last line in my .work.log file is after this.
Funny, it mentions lpthread :-)
creating libclamav.la
(cd .libs && rm -f libclamav.la && ln -s ../libclamav.la libclamav.la)
Making all in clamscan
source=3D'../shared/output.c' object=3D'output.o' libtool=3Dno DEPDIR=3D.deps
depmode=3Dgcc /bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.
-I.. -I.. -I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
-o output.o `test -f '../shared/output.c' || echo './'`../shared/output.c
source=3D'../shared/getopt.c' object=3D'getopt.o' libtool=3Dno DEPDIR=3D.deps
depmode=3Dgcc /bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.
-I.. -I.. -I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
-o getopt.o `test -f '../shared/getopt.c' || echo './'`../shared/getopt.c
source=3D'../shared/cfgparser.c' object=3D'cfgparser.o' libtool=3Dno DEPDIR=3D.dep=
s
depmode=3Dgcc /bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.
-I.. -I.. -I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
-o cfgparser.o `test -f '../shared/cfgparser.c' || echo
'./'`../shared/cfgparser.c
source=3D'../shared/misc.c' object=3D'misc.o' libtool=3Dno DEPDIR=3D.deps
depmode=3Dgcc /bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.
-I.. -I.. -I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
-o misc.o `test -f '../shared/misc.c' || echo './'`../shared/misc.c
source=3D'../shared/options.c' object=3D'options.o' libtool=3Dno DEPDIR=3D.deps
depmode=3Dgcc /bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I.
-I.. -I.. -I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
-o options.o `test -f '../shared/options.c' || echo './'`../shared/options.=
c
source=3D'clamscan.c' object=3D'clamscan.o' libtool=3Dno DEPDIR=3D.deps depmode=3Dgc=
c
/bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I..
-I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
clamscan.c
source=3D'others.c' object=3D'others.o' libtool=3Dno DEPDIR=3D.deps depmode=3Dgcc
/bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I..
-I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
others.c
source=3D'manager.c' object=3D'manager.o' libtool=3Dno DEPDIR=3D.deps depmode=3Dgcc
/bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I..
-I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
manager.c
In file included from /usr/include/sys/param.h:100,
from ../libclamav/others.h:54,
from manager.c:62:
/usr/include/sys/syslimits.h:50: warning: `NAME_MAX' redefined
./shared/misc.h:29: warning: this is the location of the previous
definition
manager.c: In function `move_infected':
manager.c:552: warning: assignment discards qualifiers from pointer target
type
source=3D'treewalk.c' object=3D'treewalk.o' libtool=3Dno DEPDIR=3D.deps depmode=3Dgc=
c
/bin/sh ../depcomp cc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I..
-I../shared -I../libclamav -I/usr/pkg/include -I/usr/include
-I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -c
treewalk.c
/bin/sh ../libtool --tag=3DCC --mode=3Dlink cc -O2 -I/usr/pkg/include
-I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/li=
b
-o clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o
others.o manager.o treewalk.o ../libclamav/libclamav.la -lpthread
mkdir .libs
cc -O2 -I/usr/pkgsrc/mail/clamav/work/.buildlink/include -Wl,-R/usr/pkg/lib
-o .libs/clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o
others.o manager.o treewalk.o -L/usr/pkgsrc/mail/clamav/work/.buildlink/li=
b
./libclamav/.libs/libclamav.so -lbz2
/usr/pkgsrc/mail/clamav/work/.buildlink/lib/libgmp.so
/usr/pkgsrc/mail/clamav/work/.buildlink/lib/libcurl.so
-L/usr/pkgsrc/mail/clamav/work/.buildlink/gcc-2.95.3/lib/gcc-lib/i386--netb=
s
delf/2.95.3 -L/usr/pkgsrc/mail/clamav/work/.buildlink/gcc-2.95.3/lib
/usr/pkgsrc/mail/clamav/work/.buildlink/lib/libidn.so
/usr/pkgsrc/mail/clamav/work/.buildlink/lib/libiconv.so -lintl -lssl
-lcrypto -lz /usr/pkgsrc/mail/clamav/work/.buildlink/lib/libpthread.so
-Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath
-Wl,/usr/pkgsrc/mail/clamav/work/.buildlink/lib
./libclamav/.libs/libclamav.so: undefined reference to `readdir_r'
collect2: ld returned 1 exit status
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/mail/clamav/work/.gcc/bin/gcc -O2
-I/usr/pkgsrc/mail/clamav/work/.buildlink/include -Wl,-R/usr/pkg/lib -o
.libs/clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o
others.o manager.o treewalk.o -L/usr/pkgsrc/mail/clamav/work/.buildlink/lib
./libclamav/.libs/libclamav.so
-L/usr/pkgsrc/mail/clamav/work/.buildlink/gcc-2.95.3/lib/gcc-lib/i386--netb=
s
delf/2.95.3 -L/usr/pkgsrc/mail/clamav/work/.buildlink/gcc-2.95.3/lib
-Wl,--rpath,/usr/pkg/lib -lbz2 -lgmp -lcurl -lidn -liconv -lintl -lssl
-lcrypto -lz -lpthread
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkg/bin/libtool --tag=3DCC --mode=3Dlink cc -O2
-I/usr/pkgsrc/mail/clamav/work/.buildlink/include
-L/usr/pkgsrc/mail/clamav/work/.buildlink/lib -Wl,-R/usr/pkg/lib -o clamsca=
n
output.o getopt.o cfgparser.o misc.o options.o clamscan.o others.o manager.=
o
treewalk.o ../libclamav/libclamav.la -lpthread
>From .work.log
=3D=3D> Reordering libraries: -lbz2 -lgmp -lcurl -lidn -liconv -lintl -lssl
-lcrypto -lz -lpthread
<.> /usr/pkgsrc/mail/clamav/work/.gcc/bin/gcc -O2
-I/usr/pkgsrc/mail/clamav/work/.buildlink/include -Wl,-R/usr/pkg/lib -o
.libs/clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o
others.o manager.o treewalk.o -L/usr/pkgsrc/mail/clamav/work/.buildlink/lib
./libclamav/.libs/libclamav.so
-L/usr/pkgsrc/mail/clamav/work/.buildlink/gcc-2.95.3/lib/gcc-lib/i386--netb=
s
delf/2.95.3 -L/usr/pkgsrc/mail/clamav/work/.buildlink/gcc-2.95.3/lib
-Wl,--rpath,/usr/pkg/lib -lbz2 -lgmp -lcurl -lidn -liconv -lintl -lssl
-lcrypto -lz -lpthread
Frank DeChellis
President, Internet Access Worldwide
Welland, Ontario, Canada
www.iaw.com
Please consider supporting my walk in the Weekend to End Breast Cancer
http://www.endcancer.ca/site/TR?pg=3Dpersonal&fr_id=3D1202&px=3D1812643