I'm porting a package to SFW (idzebra) that depends on the libraries
provided by another package (libyaz) that recently integrated. While
waiting for libyaz to integrate I did my builds on a machine that had
the libyaz package installed, and I was able to successfully build
idzebra and get the included tests to run without error.
libyaz is now integrated into SFW, so rather than needing to have
its package installed on the build server I should now be able
to build my package using the libyaz libraries that get built into
the proto area. I've managed to find the right Makefile changes
to get the idzebra code to build using the libraries in proto,
but the provided tests fail. Based on the following I think the
tests are actually building properly, but that they're trying to
do linking at runtime and that part is failing:
----------------------------------------------------------
[cut-down output of 'make -f Makefile.sfw test32' following a
successful 'make -f Makefile.sfw all32'
]
/bin/bash ../libtool --tag=CC --mode=link
/ws/onnv-tools/SUNWspro/SS12/bin/cc -xO3 -m32 -xchip=pentium -xspace
-Xa -xildoff -xc99=all -L/builds1/andrem/proto/root_i386/usr/lib -o
test_strmap test_strmap.o libidzebra-util.la -L/usr/local/lib
-lyaz_server -lyaz -lgnutls -lexslt -lxslt -lz -lpthread -lsocket -lnsl
-lm -lxml2 -lsocket -lnsl -lpthread -ldl -lm -lbz2 -lcrypt
libtool: link: /ws/onnv-tools/SUNWspro/SS12/bin/cc -xO3 -m32
-xchip=pentium -xspace -Xa -xildoff -xc99=all -o test_strmap
test_strmap.o -L/builds1/andrem/proto/root_i386/usr/lib
./.libs/libidzebra-util.a -L/usr/local/lib -lyaz_server -lyaz -lgnutls
-lexslt -lxslt -lz -lxml2 -lsocket -lnsl -lpthread -ldl -lm -lbz2 -lcrypt
/usr/ccs/bin/make check-TESTS
ld.so.1: tstcharmap: fatal: libyaz_server.so.3: open failed: No such
file or directory
bash: line 4: 11205 Killed ${dir}$tst
FAIL: tstcharmap
ld.so.1: tstflock: fatal: libyaz_server.so.3: open failed: No such file
or directory
bash: line 4: 11210 Killed ${dir}$tst
FAIL: tstflock
ld.so.1: tstlockscope: fatal: libyaz_server.so.3: open failed: No such
file or directory
bash: line 4: 11215 Killed ${dir}$tst
FAIL: tstlockscope
ld.so.1: tstpass: fatal: libyaz_server.so.3: open failed: No such file
or directory
bash: line 4: 11220 Killed ${dir}$tst
FAIL: tstpass
ld.so.1: tstres: fatal: libyaz_server.so.3: open failed: No such file or
directory
bash: line 4: 11225 Killed ${dir}$tst
FAIL: tstres
ld.so.1: test_strmap: fatal: libyaz_server.so.3: open failed: No such
file or directory
bash: line 4: 11230 Killed ${dir}$tst
FAIL: test_strmap
========================================
6 of 6 tests failed
Please report to zebra-help at indexdata.dk
========================================
----------------------------------------------------------
Has anyone else had a project like this that has built-in tests that
need to link to a library that's provided by a different package and
needs to be accessed under the proto area rather than under
/usr/lib?
Makefile.sfw for idzebra is attached if that helps any.
Thanks,
Andre
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile.sfw
URL:
<http://mail.opensolaris.org/pipermail/sfwnv-discuss/attachments/20090721/926ce92e/attachment.ksh>