Subject: [ II ] Clamav
To: None <netbsd-users@netbsd.org>
From: BETO <beto@bonbon.net>
List: netbsd-users
Date: 03/12/2003 16:28:54
Thanks to David Ferlier
i have the port to clamav. But the next text describes my problem:
----------------------------------------------------------------------
Libraries have been installed in:
/usr/pkg/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/pkg/bin/bash ../mkinstalldirs /usr/pkg/include
/usr/bin/install -c -m 644 clamav.h /usr/pkg/include/clamav.h
Making install in clamscan
/usr/pkg/bin/bash ../libtool --mode=link cc -O2 -I/usr/pkg/include -I/usr/pkg/i
nclude -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o clamscan clamscan.o options.o ge
topt.o others.o manager.o treewalk.o -L../libclamav -lclamav
cc -O2 -I/usr/pkg/include -I/usr/pkg/include -Wl,-R/usr/pkg/lib -o clamscan clam
scan.o options.o getopt.o others.o manager.o treewalk.o -L/usr/pkg/lib -L/usr/p
kgsrc/mail/clamav/work/clamav-0.54/libclamav /usr/pkg/lib/libclamav.so -lz /usr/
pkg/lib/libpthread.so -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkg/lib
ld: cannot find -lclamav
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/clamav/work/clamav-0.54/clamscan
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/clamav/work/clamav-0.54
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/clamav
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/clamav
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/clamav
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/mail/clamav
Thanks