Opened 18 years ago

Closed 18 years ago

#9436 closed defect (fixed)

BUG clamav 0.88.2 fails to compile

Reported by: gpf@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

barkley:~ sjcarr$ sudo port -vd install clamav DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/sysutils/clamav DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/sysutils/clamav DEBUG: Requested variant darwin is not provided by port clamav. DEBUG: Requested variant i386 is not provided by port clamav. DEBUG: Requested variant macosx is not provided by port clamav. DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/gmp DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/gmp DEBUG: Searching for dependency: gmp DEBUG: Found Dependency: receipt exists for gmp DEBUG: Skipping completed com.apple.main (clamav) DEBUG: Skipping completed com.apple.unarchive (clamav) DEBUG: Skipping completed com.apple.fetch (clamav) DEBUG: Skipping completed com.apple.checksum (clamav) DEBUG: Skipping completed com.apple.extract (clamav) DEBUG: Skipping completed com.apple.patch (clamav) DEBUG: Skipping completed com.apple.configure (clamav) ---> Building clamav with target all DEBUG: Executing com.apple.build (clamav) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_sysutils_clamav/work/clamav-0.88.2" && make all' make all-recursive Making all in libclamav /bin/sh ../libtool --mode=link gcc -g -O2 -L/opt/local/lib -o libclamav.la -rpath /opt/local/lib -version-info 1:17:0 -no-undefined matcher-ac.lo matcher-bm.lo matcher.lo md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo filetypes.lo unrarlib.lo zzip-dir.lo zzip-err.lo zzip-file.lo zzip-info.lo zzip-io.lo zzip-stat.lo zzip-zip.lo strc.lo blob.lo mbox.lo message.lo snprintf.lo strrcpy.lo table.lo text.lo ole2_extract.lo vba_extract.lo msexpand.lo pe.lo cabd.lo lzxd.lo mszipd.lo qtmd.lo system.lo upx.lo htmlnorm.lo chmunpack.lo rebuildpe.lo petite.lo fsg.lo line.lo untar.lo special.lo binhex.lo is_tar.lo tnef.lo uuencode.lo -lz -lbz2 -lgmp

* Warning: This system can not link to static lib archive /opt/local/lib/libgmp.la. * I have the capability to make that library automatically link in when * you link to this library. But I can only do this if you have a * shared version of the library, which you do not appear to have. rm -fr .libs/libclamav.la .libs/libclamav.* .libs/libclamav.* gcc -dynamiclib -o .libs/libclamav.1.0.17.dylib matcher-ac.lo matcher-bm.lo matcher.lo md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo filetypes.lo unrarlib.lo zzip-dir.lo zzip-err.lo zzip-file.lo zzip-info.lo zzip-io.lo zzip-stat.lo zzip-zip.lo strc.lo blob.lo mbox.lo message.lo snprintf.lo strrcpy.lo table.lo text.lo ole2_extract.lo vba_extract.lo msexpand.lo pe.lo cabd.lo lzxd.lo mszipd.lo qtmd.lo system.lo upx.lo htmlnorm.lo chmunpack.lo rebuildpe.lo petite.lo fsg.lo line.lo untar.lo special.lo binhex.lo is_tar.lo tnef.lo uuencode.lo -L/opt/local/lib -lz -lbz2 -lc -install_name /opt/local/lib/libclamav.1.dylib -compatibility_version 2 -current_version 2.17 ld: Undefined symbols: _gmpz_add _gmpz_clear _gmpz_init _gmpz_init_set_str _gmpz_mul_2exp _gmpz_powm _gmpz_set_ui _gmpz_tdiv_qr_ui /usr/bin/libtool: internal link edit command failed make[2]: * [libclamav.la] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2 Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_sysutils_clamav/work/clamav-0.88.2" && make all" returned error 2 Command output: make all-recursive Making all in libclamav /bin/sh ../libtool --mode=link gcc -g -O2 -L/opt/local/lib -o libclamav.la -rpath /opt/local/lib -version-info 1:17:0 -no-undefined matcher-ac.lo matcher-bm.lo matcher.lo md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo filetypes.lo unrarlib.lo zzip-dir.lo zzip-err.lo zzip-file.lo zzip-info.lo zzip-io.lo zzip-stat.lo zzip-zip.lo strc.lo blob.lo mbox.lo message.lo snprintf.lo strrcpy.lo table.lo text.lo ole2_extract.lo vba_extract.lo msexpand.lo pe.lo cabd.lo lzxd.lo mszipd.lo qtmd.lo system.lo upx.lo htmlnorm.lo chmunpack.lo rebuildpe.lo petite.lo fsg.lo line.lo untar.lo special.lo binhex.lo is_tar.lo tnef.lo uuencode.lo -lz -lbz2 -lgmp

* Warning: This system can not link to static lib archive /opt/local/lib/libgmp.la. * I have the capability to make that library automatically link in when * you link to this library. But I can only do this if you have a * shared version of the library, which you do not appear to have. rm -fr .libs/libclamav.la .libs/libclamav.* .libs/libclamav.* gcc -dynamiclib -o .libs/libclamav.1.0.17.dylib matcher-ac.lo matcher-bm.lo matcher.lo md5.lo others.lo readdb.lo cvd.lo dsig.lo str.lo scanners.lo filetypes.lo unrarlib.lo zzip-dir.lo zzip-err.lo zzip-file.lo zzip-info.lo zzip-io.lo zzip-stat.lo zzip-zip.lo strc.lo blob.lo mbox.lo message.lo snprintf.lo strrcpy.lo table.lo text.lo ole2_extract.lo vba_extract.lo msexpand.lo pe.lo cabd.lo lzxd.lo mszipd.lo qtmd.lo system.lo upx.lo htmlnorm.lo chmunpack.lo rebuildpe.lo petite.lo fsg.lo line.lo untar.lo special.lo binhex.lo is_tar.lo tnef.lo uuencode.lo -L/opt/local/lib -lz -lbz2 -lc -install_name /opt/local/lib/libclamav.1.dylib -compatibility_version 2 -current_version 2.17 ld: Undefined symbols: _gmpz_add _gmpz_clear _gmpz_init _gmpz_init_set_str _gmpz_mul_2exp _gmpz_powm _gmpz_set_ui _gmpz_tdiv_qr_ui /usr/bin/libtool: internal link edit command failed make[2]: * [libclamav.la] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Warning: the following items did not execute (for clamav): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.

--- other bits n bobs

barkley:~ sjcarr$ uname -a Darwin barkley 8.6.1 Darwin Kernel Version 8.6.1: Tue Mar 7 16:55:45 PST 2006; root:xnu-792.9.22.obj~1/RELEASE_I386 i386 i386

barkley:~ sjcarr$ sudo port info clamav clamav 0.88.2, sysutils/clamav (Variants: clamav-milter) http://www.clamav.net

Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The main purpose of this software is the integration with mail servers (attachment scanning).

Library Dependencies: gmp Platforms: darwin Maintainers: dluke@…

Change History (6)

comment:1 Changed 18 years ago by danielluke (Daniel J. Luke)

Owner: changed from darwinports-bugs@… to dluke@…

Looks like

comment:2 Changed 18 years ago by danielluke (Daniel J. Luke)

Status: newassigned

comment:3 Changed 18 years ago by danielluke (Daniel J. Luke)

Looks like clamav is failing because of problems with the gmp port.

What version/revision of gmp do you have installed?

comment:4 Changed 18 years ago by gpf@…

barkley:~ sjcarr$ sudo port info gmp Password: gmp 4.2.1, devel/gmp (Variants: test, darwin_x86, darwin_i386) http://www.swox.com/gmp/

GNU MP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. It has a rich set of functions, and the functions have a regular interface. GNU MP is designed to be as fast as possible, both for small operands and for huge operands. The speed is achieved by using fullwords as the basic arithmetic type, by using fast algorithms, by carefully optimized assembly code for the most common inner loops for a lots of CPUs, and by a general emphasis on speed (instead of simplicity or elegance).

Platforms: darwin freebsd Maintainers: gwright@…

comment:5 Changed 18 years ago by danielluke (Daniel J. Luke)

(In reply to comment #3)

barkley:~ sjcarr$ sudo port info gmp Password: gmp 4.2.1, devel/gmp (Variants: test, darwin_x86, darwin_i386)

That actually just tells me what your PortIndex says is the version of gmp available.

you really want to run port installed | grep gmp

... but I can tell already that that is your problem as the current gmp version is 4.2.1 revision 4

Please update your ports tree, install the newer gmp and let me know if it fixes the build for you.

Thanks.

comment:6 Changed 18 years ago by gpf@…

Resolution: fixed
Status: assignedclosed

Apologies I thought I'd sync'd the ports tree before install. Compiles fine.

Note: See TracTickets for help on using tickets.