Subject: graphics/xsane build failure on MacOS X
To: None <rh@NetBSD.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 04/07/2004 17:58:31
Trying to build 'graphics/xsane' on MacOX X 10.1.5 and 10.2.8, I ran
into the following:

[...]
gcc -L/usr/pkg/lib -liconv -L/usr/X11R6/lib -L/usr/pkg/lib -o xsane xsane-back-gtk.o xsane-front-gtk.o xsane-gamma.o xsane-preview.o xsane-viewer.o xsane-rc-io.o xsane-device-preferences.o xsane-batch-scan.o xsane-preferences.o xsane-setup.o xsane-save.o xsane-scan.o xsane-icons.o xsane.o \
        ../lib/liblib.a -lsane -lusb -lm  -framework CoreFoundation -framework IOKit -ljpeg  -L/usr/pkg/lib -lgimpui -lgimp -Wl,-L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lintl -liconv -lXi -lXext -lX11 -lm -lgimp   -L/usr/pkg/lib -lintl -L/usr/pkg/lib -liconv -lpng -ltiff -ljpeg -lz -lm  -L/usr/pkg/lib -lintl -L/usr/pkg/lib -liconv
ld: archive: ../lib/liblib.a has no table of contents, add one with ranlib(1) (can't load from it)
gnumake[1]: *** [xsane] Error 1
gnumake: *** [all-recursive] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/graphics/xsane
[...]


This would appear to be a problem in the build machinery.


Workaround:  change directory to

    /usr/pkgsrc/graphics/xsane/work/xsane-0.90/lib

run 'ranlib liblib.a' manually, then restart the build.

-- 
John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!