Hi, Nigel Horne reported that building shared libraries fails on Darwin 5.5 Power Macintosh with a libtool error.
It incorrectly detects that -single_module is supported (see below, the compiler gave an error, but configure says yes) .... checking for dsymutil... no checking for nmedit... nmedit checking for -single_module linker flag... cc: unrecognized option `-single_module' yes checking for -exported_symbols_list linker flag... no checking if cc supports -fno-rtti -fno-exceptions... yes ... Later the link fails: /bin/sh ../libtool --tag=CC --mode=link cc -O2 -Wall -W -Wformat=2 -pipe -version-info 3:3:0 -no-undefined -o libclamunrar.la -rpath /usr/local/lib unrar15.lo unrar.lo unrar20.lo unrarppm.lo unrarvm.lo unrarcmd.lo unrarfilter.lo unrarhlp.lo cc -dynamiclib -o .libs/libclamunrar.3.0.3.dylib .libs/unrar15.o .libs/unrar.o .libs/unrar20.o .libs/unrarppm.o .libs/unrarvm.o .libs/unrarcmd.o .libs/unrarfilter.o .libs/unrarhlp.o -install_name /usr/local/lib/libclamunrar.3.dylib -compatibility_version 4 -current_version 4.3 -Wl,-single_module /usr/bin/libtool: unknown option character `i' in: -single_module Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sac] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-all_load] [-noall_load] make[2]: *** [libclamunrar.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Another problem is that the failure is not logged in config.log: ... configure:6594: checking for nmedit configure:6610: found /usr/bin/nmedit configure:6621: result: nmedit configure:6648: checking for -single_module linker flag configure:6669: result: yes configure:6671: checking for -exported_symbols_list linker flag ... This is the relevant portion in configure (which comes from libtool.m4): echo "int foo(void){return 1;}" > conftest.c $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib ${wl}-single_module conftest.c if test -f libconftest.dylib; then lt_cv_apple_cc_single_mod=yes rm -rf libconftest.dylib* fi rm conftest.c fi It is missing a >&5 redirect, and an exit status check. Full config.log, and build log attached as logs.tar.gz. [does this mailing list accept attachments?] To reproduce, download the latest ClamAV devel snapshot, and build it on a Darwin 5.5 Power Macintosh: http://www.clamav.net/snapshot/clamav-devel-latest.tar.gz Let me know if you need further info. $ libtool --version ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1 (1.1220.2.493 2008/02/01 16:58:18) Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE Best regards, --Edwin
logs.tar.gz
Description: GNU Zip compressed data
_______________________________________________ Bug-libtool mailing list Bug-libtool@gnu.org http://lists.gnu.org/mailman/listinfo/bug-libtool