Folks,

I have Perl 5.8.0 installed, am using fink, have the libxml2 and libxslt libraries installed from source. To install XML::LibXML::Common and XML::LibXML, I found I had to copy the fink-installed libiconv* files to '/usr/lib' and 'iconv.h' to '/usr/include'. The modules then installed just fine.

This is probably bad practice but I was frustrated. Should I add something to .tcshrc to set LD_LIBRARY_PATH so the fink libraries are available?

setenv LD_LIBRARY_PATH /sw/lib:$LD_LIBRARY_PATH

I would have thought fink would have taken this into account. I see PATH, MANPATH, and CLASSPATH being set in init.csh but not LD_LIBRARY_PATH which doesn't exist.

My problem is that I cannot install XML::LibXSLT and the error isn't obvious to me in the output below. The warnings about 'weak library' appeared during the successful install of XML::LibXML, so I figure it wasn't an issue. I'm hoping someone might have a suggestion. Thanks in advance.

Paul

---
% date; sw_vers;
Mon Jul 14 09:02:53 EDT 2003
ProductName:    Mac OS X
ProductVersion: 10.2.6
BuildVersion:   6L60
---
% perl -v | grep 'built for'
This is perl, v5.8.0 built for darwin
% fink --version | grep version
Package manager version: 0.13.2
Distribution version: 0.5.3
---
% which xsltproc; xsltproc --version
/usr/local/bin/xsltproc
Using libxml 20507, libxslt 10031 and libexslt 721
xsltproc was compiled against libxml 20507, libxslt 10031 and libexslt 721
libxslt 10031 was compiled against libxml 20507
libexslt 721 was compiled against libxml 20507
---
[Using CPAN to install XML::LibXSLT. Removed many lines noting
download and expansion...]

CPAN.pm: Going to build M/MS/MSERGEANT/XML-LibXSLT-1.53.tar.gz

running xslt-config... ok
looking for -lxslt... yes
looking for -lexslt... yes
Checking if your kit is complete...
Looks good
Writing Makefile for XML::LibXSLT
cp benchmark.pl blib/lib/XML/benchmark.pl
cp LibXSLT.pm blib/lib/XML/LibXSLT.pm
/usr/bin/perl /Library/Perl/ExtUtils/xsubpp  -typemap
/Library/Perl/ExtUtils/typemap -typemap typemap  LibXSLT.xs >
LibXSLT.xsc && mv LibXSLT.xsc LibXSLT.c
cc -c  -I/usr/local/include -I/usr/local/include/libxml2 -pipe
-fno-common -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
-O3   -DVERSION=\"1.53\" -DXS_VERSION=\"1.53\"
"-I/Library/Perl/darwin/CORE"  -DHAVE_BLANK -DHAVE_BLANK -DHAVE_EXSLT
LibXSLT.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
cc -c  -I/usr/local/include -I/usr/local/include/libxml2 -pipe
-fno-common -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
-O3   -DVERSION=\"1.53\" -DXS_VERSION=\"1.53\"
"-I/Library/Perl/darwin/CORE"  -DHAVE_BLANK -DHAVE_BLANK -DHAVE_EXSLT
perl-libxml-mm.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
Running Mkbootstrap for XML::LibXSLT ()
chmod 644 LibXSLT.bs
rm -f blib/arch/auto/XML/LibXSLT/LibXSLT.bundle
LD_RUN_PATH="/usr/local/lib:/usr/lib" cc  -flat_namespace -bundle
-undefined suppress -L/usr/local/lib LibXSLT.o perl-libxml-mm.o  -o
blib/arch/auto/XML/LibXSLT/LibXSLT.bundle   -L/usr/local/lib -lxslt
-lexslt -lxml2 -lz -lpthread -liconv -lm
ld: warning dynamic shared library: /usr/lib/libz.dylib not made a
weak library in output with MACOSX_DEPLOYMENT_TARGET environment
variable set to: 10.1
ld: warning dynamic shared library: /usr/lib/libiconv.dylib not made
a weak library in output with MACOSX_DEPLOYMENT_TARGET environment
variable set to: 10.1
chmod 755 blib/arch/auto/XML/LibXSLT/LibXSLT.bundle
cp LibXSLT.bs blib/arch/auto/XML/LibXSLT/LibXSLT.bs
chmod 644 blib/arch/auto/XML/LibXSLT/LibXSLT.bs
Manifying blib/man3/XML::LibXSLT.3
   /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basic........ok
t/02dromeds......ok
t/03input........ok
t/04params.......ok
t/05quick........ok
t/06output.......ok
t/07blankdoc.....ok
t/08literal......ok
t/09exslt........ok
t/10functions....dubious
         Test returned status 0 (wstat 10, 0xa)
DIED. FAILED tests 8-14
         Failed 7/14 tests, 50.00% okay
Failed Test     Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/10functions.t    0    10    14    7  50.00%  8-14
Failed 1/10 test scripts, 90.00% okay. 7/94 subtests failed, 92.55% okay.
make: *** [test_dynamic] Error 2
   /usr/bin/make test -- NOT OK
Running make install
   make test had returned bad status, won't install without force

cpan>
---

Reply via email to