Subject: graphics/tiff fails on MacOSX 10.3.7 (libtool error)
To: None <tech-pkg@netbsd.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: tech-pkg
Date: 01/13/2005 11:33:49
graphics/tiff fails on MacOSX 10.3.7 with
spock# pwd
/usr/pkgsrc/graphics/tiff/work/tiff-3.7.1/libtiff
spock# bmake libtiffcxx.la
/bin/sh ../libtool --tag=CXX --mode=link g++ -O2 -I/Volumes/misc/pkg/include -L/Volumes/misc/pkg/lib -o libtiffcxx.la -rpath /Volumes/misc/pkg/lib -no-undefined -version-number 3:7:1 libtiff.la -ljpeg -lz -lc
rm -fr .libs/libtiffcxx.3.7.1.dylib .libs/libtiffcxx.3.dylib .libs/libtiffcxx.dylib
g++ -dynamiclib -single_module -o .libs/libtiffcxx.3.7.1.dylib -L/Volumes/misc/pkgsrc/graphics/tiff/work/.buildlink/lib ./.libs/libtiff.dylib /Volumes/misc/pkgsrc/graphics/tiff/work/.buildlink/lib/libjpeg.dylib /Volumes/misc/pkgsrc/graphics/tiff/work/.buildlink/lib/libz.dylib -lc -install_name /Volumes/misc/pkg/lib/libtiffcxx.3.dylib -Wl,-compatibility_version -Wl,11 -Wl,-current_version -Wl,11.1
(cd .libs && rm -f libtiffcxx.3.dylib && ln -s libtiffcxx.3.7.1.dylib libtiffcxx.3.dylib)
(cd .libs && rm -f libtiffcxx.dylib && ln -s libtiffcxx.3.7.1.dylib libtiffcxx.dylib)
ar cru .libs/libtiffcxx.a
ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/graphics/tiff/work/tiff-3.7.1/libtiff
spock#
I tracked it down to '/usr/pkg/bin/libtool'. This command fails somehow.
I don't know much about libtool. I suppose somebody with libtool knowledge
knows why there are no object files in the ar command.
The last lines of libtool with sh -x are:
+ cmds=$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs~$RANLIB $oldlib
+ save_ifs=
+ IFS=~
+ eval 'cmd="$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs"'
++ cmd=ar cru .libs/libtiffcxx.a
+ IFS=
+ echo 'ar cru .libs/libtiffcxx.a '
ar cru .libs/libtiffcxx.a
+ eval 'ar cru .libs/libtiffcxx.a '
++ ar cru .libs/libtiffcxx.a
ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
+ exit 1
spock#
I did a re-install of libtool. I also removed and cvs-ed graphics/tiff.
I did not help.
spock# cat /usr/pkgsrc/graphics/tiff/CVS/Entries
/DESCR/1.1/Wed Oct 31 23:54:10 2001//
/Makefile/1.64/Tue Jan 11 05:29:55 2005//
/PLIST/1.6/Tue Jan 11 05:29:55 2005//
/buildlink3.mk/1.11/Tue Jan 11 05:29:55 2005//
/distinfo/1.21/Tue Jan 11 05:29:55 2005//
D/patches////
spock#
rvdp