[EMAIL PROTECTED] wrote:
Feel free to send me the output of "perl Makefile.PL DEBUG=1".

Tom


Hi, Tom,

I'd experimented setting the LD_LIBRARY_PATH environment variable already with those values and it didn't appear to make much difference.

Attached below is the output with DEBUG=1 (never run that before) - I'm not sure I can spot the immediate problem from it. All pointers gratefully received!

Cheers,

Peter.

sams:/home/samwise/Documents/src/perlmodules/XML-LibXML-Common-0.13 # export 
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
sams:/home/samwise/Documents/src/perlmodules/XML-LibXML-Common-0.13 # echo 
$LD_LIBRARY_PATH
/usr/local/lib:
sams:/home/samwise/Documents/src/perlmodules/XML-LibXML-Common-0.13 # perl Makefile.PL 
INC=/usr/local/include/libxml2 DEBUG=1
enable native perl UTF8
running xml2-config... xml2-config --version
xml2-config --libs
ok
looking for -lxml2... /usr/bin/perl Makefile.PL 'LIBS=-L/usr/local/lib -lxml2 -liconv 
-lm -lz' 'INC=/usr/local/include/libxml2' 'DEFINE= -DHAVE_UTF8'
LIBS = -L/usr/local/lib -lxml2 -liconv -lm -lz
INC = /usr/local/include/libxml2
DEFINE =  -DHAVE_UTF8
Writing Makefile for Conftest
make test 'OTHERLDFLAGS='
cp Conftest.pm blib/lib/Conftest.pm
/usr/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp  -typemap 
/usr/local/lib/perl5/5.8.3/ExtUtils/typemap  Conftest.xs > Conftest.xsc && mv 
Conftest.xsc Conftest.c
cc -c  /usr/local/include/libxml2 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O3   -DVERSION=\"1\" -DXS_VERSION=\"1\" -fpic 
"-I/usr/local/lib/perl5/5.8.3/i686-linux/CORE"  -DHAVE_UTF8 Conftest.c
cc: /usr/local/include/libxml2: linker input file unused because linking not done
Running Mkbootstrap for Conftest ()
chmod 644 Conftest.bs
rm -f blib/arch/auto/Conftest/Conftest.so
LD_RUN_PATH="/usr/local/lib:/lib" cc  -shared -L/usr/local/lib Conftest.o  -o 
blib/arch/auto/Conftest/Conftest.so   -L/usr/local/lib -lxml2 -liconv -lm -lz
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: cannot find 
-lz
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Conftest/Conftest.so] Error 1
system call to 'make test 'OTHERLDFLAGS='' failed at Makefile.PL line 168.
no
looking for -llibxml2... /usr/bin/perl Makefile.PL 'LIBS=-L/usr/local/lib -lxml2 
-liconv -lm -lz' 'INC=/usr/local/include/libxml2' 'DEFINE= -DHAVE_UTF8'
LIBS = -L/usr/local/lib -lxml2 -liconv -lm -lz
INC = /usr/local/include/libxml2
DEFINE =  -DHAVE_UTF8
Writing Makefile for Conftest
make test 'OTHERLDFLAGS='
cp Conftest.pm blib/lib/Conftest.pm
/usr/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp  -typemap 
/usr/local/lib/perl5/5.8.3/ExtUtils/typemap  Conftest.xs > Conftest.xsc && mv 
Conftest.xsc Conftest.c
cc -c  /usr/local/include/libxml2 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O3   -DVERSION=\"1\" -DXS_VERSION=\"1\" -fpic 
"-I/usr/local/lib/perl5/5.8.3/i686-linux/CORE"  -DHAVE_UTF8 Conftest.c
cc: /usr/local/include/libxml2: linker input file unused because linking not done
Running Mkbootstrap for Conftest ()
chmod 644 Conftest.bs
rm -f blib/arch/auto/Conftest/Conftest.so
LD_RUN_PATH="/usr/local/lib:/lib" cc  -shared -L/usr/local/lib Conftest.o  -o 
blib/arch/auto/Conftest/Conftest.so   -L/usr/local/lib -lxml2 -liconv -lm -lz
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: cannot find 
-lz

There's the problem you don't have zlib installed !!!!!!!!! Install the devel-package and try again. The error-messag procuded by perl Makefile.PL is misleading because the include/lib-paths are set appropiately.


I'd guess that this has always been your problem?

collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Conftest/Conftest.so] Error 1
system call to 'make test 'OTHERLDFLAGS='' failed at Makefile.PL line 168.
no
libxml2 not found
Try setting LIBS and INC values on the command line
Or get libxml2 from
  http://www.libxml.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
sams:/home/samwise/Documents/src/perlmodules/XML-LibXML-Common-0.13 #

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to