Home › Forums › OS X Server and Client Discussion › Questions and Answers › Problem with new article about ClamAV
- This topic has 4 replies, 2 voices, and was last updated 21 years, 7 months ago by
afp548contributor.
-
AuthorPosts
-
September 3, 2003 at 4:31 pm #356354
ollio
ParticipantMy OS is OS X Server 10.2.6:
My problem is already right in the beginning:
[i:4e0f9130c8]
cd clamav-0.60
./configure
make
sudo make install
cd ..
[/i:4e0f9130c8]clamscan never gets compiled.
After ./configure i get :
[i:4e0f9130c8]
checking build system type… powerpc-apple-darwin6.6
checking host system type… powerpc-apple-darwin6.6
checking target system type… powerpc-apple-darwin6.6
creating target.h – canonical system defines
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for gawk… no
checking for mawk… no
checking for nawk… no
checking for awk… awk
checking whether make sets ${MAKE}… yes
checking for gawk… (cached) awk
checking for gcc… gcc
checking for C compiler default output… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for style of include used by make… GNU
checking dependency style of gcc… gcc
checking for a BSD-compatible install… /usr/bin/install -c
checking whether ln -s works… yes
checking whether make sets ${MAKE}… (cached) yes
checking for ld used by GCC… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… no
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -p
checking how to recognise dependant libraries… file_magic Mach-O dynamically linked shared library
checking command to parse /usr/bin/nm -p output… ok
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… no
checking dlfcn.h presence… no
checking for dlfcn.h… no
checking for ranlib… ranlib
checking for strip… strip
checking for objdir… .libs
checking for gcc option to produce PIC… -fno-common
checking if gcc PIC flag -fno-common works… yes
checking if gcc static flag -static works… no
checking if gcc supports -c -o file.o… yes
checking if gcc supports -c -o file.lo… yes
checking if gcc supports -fno-rtti -fno-exceptions… yes
checking whether the linker (/usr/bin/ld) supports shared libraries… yes
checking how to hardcode library paths into programs… unsupported
checking whether stripping libraries is possible… no
checking dynamic linker characteristics… darwin6.6 dyld
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
creating libtool
checking for ANSI C header files… (cached) yes
checking for stdint.h… (cached) yes
checking for unistd.h… (cached) yes
checking sys/int_types.h usability… no
checking sys/int_types.h presence… no
checking for sys/int_types.h… no
checking for dlfcn.h… (cached) no
checking for inttypes.h… (cached) yes
checking sys/inttypes.h usability… no
checking sys/inttypes.h presence… no
checking for sys/inttypes.h… no
checking for memory.h… (cached) yes
checking ndir.h usability… no
checking ndir.h presence… no
checking for ndir.h… no
checking for stdlib.h… (cached) yes
checking for strings.h… (cached) yes
checking for string.h… (cached) yes
checking sys/mman.h usability… yes
checking sys/mman.h presence… yes
checking for sys/mman.h… yes
checking sys/param.h usability… yes
checking sys/param.h presence… yes
checking for sys/param.h… yes
checking for sys/stat.h… (cached) yes
checking for sys/types.h… (cached) yes
checking malloc.h usability… no
checking malloc.h presence… no
checking for malloc.h… no
checking for off_t… yes
checking size of short… 2
checking size of int… 4
checking size of long… 4
checking pthread.h usability… yes
checking pthread.h presence… yes
checking for pthread.h… yes
checking zlib.h usability… yes
checking zlib.h presence… yes
checking for zlib.h… yes
checking bzlib.h usability… yes
checking bzlib.h presence… yes
checking for bzlib.h… yes
checking for bzReadOpen in -lbz2… no
checking libmilter/mfapi.h usability… no
checking libmilter/mfapi.h presence… no
checking for libmilter/mfapi.h… no
checking syslog.h usability… yes
checking syslog.h presence… yes
checking for syslog.h… yes
/dev/(u)random detected.
Checking /etc/passwd…
checking for gcc option to accept ANSI C… none needed
checking for an ANSI C-conforming const… yes
checking whether byte ordering is bigendian… yes
configure: creating ./config.status
config.status: creating libclamav/Makefile
config.status: creating clamscan/Makefile
config.status: creating database/Makefile
config.status: creating docs/Makefile
config.status: creating clamd/Makefile
config.status: creating clamdscan/Makefile
config.status: creating clamav-milter/Makefile
config.status: creating freshclam/Makefile
config.status: creating sigtool/Makefile
config.status: creating etc/Makefile
config.status: creating Makefile
config.status: executing depfiles commands
[/i:4e0f9130c8]
Make ends with:[i:4e0f9130c8]
/bin/sh ../libtool –mode=link gcc -g -O2 -o clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L../libclamav -lclamav
mkdir .libs
gcc -g -O2 -o .libs/clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L/clamav-0.60/libclamav -L/clamav-0.60/libclamav/.libs -lclamav -lz -lbz2
ld: table of contents for archive: /usr/lib/libbz2.a is out of date; rerun ranlib(1) (can’t load from it)
ld: warning multiple definitions of symbol _strcasecmp
/clamav-0.60/libclamav/.libs/libclamav.dylib(strc.lo) definition of _strcasecmp
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strcasecmp
make[1]: *** [clamscan] Error 1
make: *** [all-recursive] Error 1
[/i:4e0f9130c8]Myabe it is these lines causing trouble? but what…
/clamav-0.60/libclamav/.libs/libclamav.dylib(strc.lo) definition of _strcasecmp
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strcasecmpmake install gives me:
[i:4e0f9130c8]
udo make install
Making install in libclamav
/bin/sh ../mkinstalldirs /usr/local/lib
/bin/sh ../libtool –mode=install /usr/bin/install -c libclamav.la /usr/local/lib/libclamav.la
/usr/bin/install -c .libs/libclamav.1.0.3.dylib /usr/local/lib/libclamav.1.0.3.dylib
(cd /usr/local/lib && rm -f libclamav.1.dylib && ln -s libclamav.1.0.3.dylib libclamav.1.dylib)
(cd /usr/local/lib && rm -f libclamav.dylib && ln -s libclamav.1.0.3.dylib libclamav.dylib)
/usr/bin/install -c .libs/libclamav.lai /usr/local/lib/libclamav.la
/usr/bin/install -c .libs/libclamav.a /usr/local/lib/libclamav.a
ranlib /usr/local/lib/libclamav.a
chmod 644 /usr/local/lib/libclamav.a
———————————————————————-
Libraries have been installed in:
/usr/local/libIf 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 `DYLD_LIBRARY_PATH’ environment variable
during executionSee any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
———————————————————————-
/bin/sh ../mkinstalldirs /usr/local/include
/usr/bin/install -c -m 644 clamav.h /usr/local/include/clamav.h
Making install in clamscan
/bin/sh ../libtool –mode=link gcc -g -O2 -o clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L../libclamav -lclamav
gcc -g -O2 -o .libs/clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L/clamav-0.60/libclamav -L/clamav-0.60/libclamav/.libs -lclamav -lz -lbz2
ld: table of contents for archive: /usr/lib/libbz2.a is out of date; rerun ranlib(1) (can’t load from it)
ld: warning multiple definitions of symbol _strcasecmp
/clamav-0.60/libclamav/.libs/libclamav.dylib(strc.lo) definition of _strcasecmp
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strcasecmp
make[1]: *** [clamscan] Error 1
make: *** [install-recursive] Error 1[/i:4e0f9130c8]So is there something wrong with libbz2.a ?
I have it in /usr/lib/libbz2.aor what else can be wrong?
Thanks for the help , I just can’t seem to get anything to work 🙂
Oh yes to be sure:
perl –versionThis is perl, v5.8.0 built for darwin
Copyright 1987-2002, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl’ or `perldoc perl’. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.September 3, 2003 at 6:34 pm #356356ollio
Participant[quote:ac76a56737=”MacTroll”]sudo ranlib /usr/lib/libbz2.a
make
sudo make install
[/quote:ac76a56737]Great
thanks for the very quick reply, it worked.September 5, 2003 at 4:56 pm #356363ollio
Participantnow I am at the end of step 4
-I installed all perl modules:
all gave “already up to date” or ” /usr/bin/make install — OK” (i checked)
-I checked the amavis.conf,
I just filled in $mydomain and user/groupname
All else looked good default so I left the rest like it was (am i wrong doing this?)-I created some notify_xxx.txt files where the conf told me so and created an emailadres [email protected]
But then doing :
[i:70e5daf4ee]sudo su clamav
amavisd debug[/i:70e5daf4ee]I get
su-2.05a$ amavisd debug
[i:70e5daf4ee]dyld: perl Undefined symbols:
_Perl_sv_2pv
_perl_get_sv
Trace/BPT trap[/i:70e5daf4ee]What would that mean?
thx
PS
I used the update package from http://serverlogistics.com for installing perl 5.8 but that should be ok ?
I haven’t installed or used FinkI checked:
http://search.cpan.org/author/JHI/perl-5.8.0/pod/perldelta.pod#Mac_OS_X_dyld_undefined_symbolsBut I have no directory /Library/Perl/darwin/CORE
I only have /System/Library/Perl/darwin/CORE
I don’t think I should do the rename on libperl.dylib in that directory? -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed