<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Linking problem while building XML::Parser against libexpat in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464416#M704050</link>
    <description>&lt;BR /&gt;Yup, gcc is required. &lt;BR /&gt;&lt;BR /&gt;Also, read the HPUX.install document and make sure you set your LDOPTS, usually something like export LDOPTS="+s -s -L/usr/local/lib -L/usr/local/lib/hpux32"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
    <pubDate>Tue, 18 Jan 2005 09:20:14 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2005-01-18T09:20:14Z</dc:date>
    <item>
      <title>Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464412#M704046</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;I need to install the CPAN module XML::Parser as a prerequisite for SOAP::Lite, as I wish to use this toolkit for scripting an XMLRPC Webservice.&lt;BR /&gt;Well, the issue rose as a side-effect during the installation of SOAP::Lite and all dependencies through the CPAN interface.&lt;BR /&gt;This usually goes automagically but the process stops if CPAN.pm cannot run the make test of each module on the way successfully and bails out for manual intervention.&lt;BR /&gt;I knew I would need to install the libexpat first which is used by XML::Parser&lt;BR /&gt;(although SOAP::Lite would run its Perl-only XML parser if didn't find libexpat, so it's said).&lt;BR /&gt;The first hurdle was getting libexpat.&lt;BR /&gt;At Sourceforge I only found a CVS repository.&lt;BR /&gt;This is usually no problem as you would only have to login and check out the source tree with a cvs client.&lt;BR /&gt;Unfortunately I'm sitting behind a proxy, and I haven't found any hints in the cvs manpage how to make the cvs client use a proxy (like environment settings such as http_proxy etc. with wget, lynx, LWP etc.)&lt;BR /&gt;Luckily I found an older source tarball of libexpat, grabbed that and compiled it with HP ANSI C.&lt;BR /&gt;As it looks the build resulted in 32Bit shared libs&lt;BR /&gt;  &lt;BR /&gt;[root@gouda:/root/.cpan/build/XML-Parser-2.34]&lt;BR /&gt;# ldd /usr/local/lib/libexpat.sl.4.0&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;My problems start when I try to make the XML::Parser (where CPAN.pm bailed out).&lt;BR /&gt;During the make of libexpat this note got displayed amongst the usual output:&lt;BR /&gt;  &lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;Libraries have been installed in:&lt;BR /&gt;   /usr/local/lib&lt;BR /&gt; &lt;BR /&gt;If you ever happen to want to link against installed libraries&lt;BR /&gt;in a given directory, LIBDIR, you must either use libtool, and&lt;BR /&gt;specify the full pathname of the library, or use the `-LLIBDIR'&lt;BR /&gt;flag during linking and do at least one of the following:&lt;BR /&gt;   - add LIBDIR to the `SHLIB_PATH' environment variable&lt;BR /&gt;     during execution&lt;BR /&gt;   - use the `-Wl,+b -Wl,LIBDIR' linker flag&lt;BR /&gt;  &lt;BR /&gt;See any operating system documentation about shared libraries for&lt;BR /&gt;more information, such as the ld(1) and ld.so(8) manual pages.&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Hm, so I tried passing the latter as additional LDDLFLAGs to Perl MakeMaker&lt;BR /&gt;  &lt;BR /&gt;# perl Makefile.PL LDDLFLAGS="-Wl,+b -Wl,/usr/local/lib" &lt;BR /&gt;Checking if your kit is complete...&lt;BR /&gt;Looks good&lt;BR /&gt;Writing Makefile for XML::Parser::Expat&lt;BR /&gt;Writing Makefile for XML::Parser&lt;BR /&gt;  &lt;BR /&gt;# grep LDDLFLAGS Makefile&lt;BR /&gt;#   MakeMaker ARGV: (q[LDDLFLAGS=-Wl,+b -Wl,/usr/local/lib])&lt;BR /&gt;LDDLFLAGS = -Wl,+b -Wl,/usr/local/lib&lt;BR /&gt;        $(PERLRUN) Makefile.PL "LDDLFLAGS=-Wl,+b -Wl,/usr/local/lib"&lt;BR /&gt;                LDDLFLAGS='-Wl,+b -Wl,/usr/local/lib'&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;But when I run the make I got this 32-64Bit mismatch error from the linker&lt;BR /&gt; &lt;BR /&gt;        LD_RUN_PATH="/usr/local/lib" /usr/bin/ld  -b +vnocompatwarnings -L/usr/local/lib -L/lib/pa20_6&lt;BR /&gt;4 Expat.o  -o ../blib/arch/auto/XML/Parser/Expat/Expat.sl   -lexpat   &lt;BR /&gt;ld: Mismatched ABI (not an ELF file) for -lexpat&lt;BR /&gt;Fatal error.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;I also changed the LIBC not to use the pa20_64 subdir, and any +DD64 from the CCFLAGS&lt;BR /&gt;as opposed to these &lt;BR /&gt; &lt;BR /&gt;# grep -E '^(LDFLAGS|LDDLFLAGS|LIBC|CCFLAGS)' Makefile &lt;BR /&gt;LDDLFLAGS = -Wl,+b -Wl,/usr/local/lib&lt;BR /&gt;LDFLAGS =  +DD64 -L/usr/local/lib -L/lib/pa20_64&lt;BR /&gt;LIBC = /lib/pa20_64/libc.sl&lt;BR /&gt;CCFLAGS = +z -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/usr/local/include -D_LARGEFILE_SOURCE &lt;BR /&gt;-D_FILE_OFFSET_BITS=64&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;But all was in vain, and now I'm a bit stuck&lt;BR /&gt; &lt;BR /&gt;Rgds&lt;BR /&gt;Ralph&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2005 06:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464412#M704046</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-17T06:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464413#M704047</link>
      <description>Hm, no one here who tried to build libexpat with HP ANSI cc and ran into the same trouble when linking XML::Parser?&lt;BR /&gt;  &lt;BR /&gt;I found several postings in other forums on the WWW regarding this issue, but all remained unanswered.&lt;BR /&gt;This is so frustrating.&lt;BR /&gt; &lt;BR /&gt;To top all this there is a release note concerning HP's built of Perl 5.8.2 for HP-UX 11i where they laconically state that if you want XML::Parser you just need to install Expat before.&lt;BR /&gt;Ha, Ha...&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5672,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5672,00.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;This may work with a gcc build?&lt;BR /&gt;But I don't wan't to carry around several Perl builds just to please singular modules and use up filesystem space.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2005 08:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464413#M704047</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-18T08:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464414#M704048</link>
      <description>&lt;BR /&gt;Have you tried the expat package from &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Development/Tools/expat-1.95.8/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Development/Tools/expat-1.95.8/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I just installed it and the XML::Parser last week without difficulties.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 18 Jan 2005 08:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464414#M704048</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-01-18T08:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464415#M704049</link>
      <description>Hello Harry,&lt;BR /&gt; &lt;BR /&gt;yes I did, though I used the German mirror of the HP-UX Porting Centre for the download.&lt;BR /&gt;But even at the URL you posted it says in the description that the depot was built with GCC.&lt;BR /&gt;Since the Perl depot released from HP also is a GCC built I can imagine that the installation under these circumstances is pretty seamless.&lt;BR /&gt; &lt;BR /&gt;Looks I will have to spare a little more space in /opt to install Merijn's GCC build of Perl (he even may have already included XML::Parser)</description>
      <pubDate>Tue, 18 Jan 2005 08:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464415#M704049</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-18T08:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464416#M704050</link>
      <description>&lt;BR /&gt;Yup, gcc is required. &lt;BR /&gt;&lt;BR /&gt;Also, read the HPUX.install document and make sure you set your LDOPTS, usually something like export LDOPTS="+s -s -L/usr/local/lib -L/usr/local/lib/hpux32"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 18 Jan 2005 09:20:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464416#M704050</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-01-18T09:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464417#M704051</link>
      <description>Harry,&lt;BR /&gt; &lt;BR /&gt;thanks for the hint.&lt;BR /&gt;I untarred the docs from the HP Porters' depot (after already having swremoved this expat) just to revisit HPUX.Install where this is quoted.&lt;BR /&gt; &lt;BR /&gt;I used this linker options for a new build of libexpat, and I also used the linker options libexpat's Makefile issued during make install&lt;BR /&gt; &lt;BR /&gt;&lt;QUOTE_FROM_MAKE_INSTALL_OUTPUT&gt;&lt;BR /&gt; &lt;BR /&gt;Libraries have been installed in:&lt;BR /&gt;   /usr/local/lib&lt;BR /&gt; &lt;BR /&gt;If you ever happen to want to link against installed libraries&lt;BR /&gt;in a given directory, LIBDIR, you must either use libtool, and&lt;BR /&gt;specify the full pathname of the library, or use the `-LLIBDIR'&lt;BR /&gt;flag during linking and do at least one of the following:&lt;BR /&gt;   - add LIBDIR to the `SHLIB_PATH' environment variable&lt;BR /&gt;     during execution&lt;BR /&gt;   - use the `-Wl,+b -Wl,LIBDIR' linker flag&lt;BR /&gt;&lt;BR /&gt;See any operating system documentation about shared libraries for&lt;BR /&gt;more information, such as the ld(1) and ld.so(8) manual pages.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;/QUOTE_FROM_MAKE_INSTALL_OUTPUT&gt;&lt;BR /&gt; &lt;BR /&gt;I think to have tried all quirks known to me but the mismatch persists.&lt;BR /&gt; &lt;BR /&gt;I can even trace down the problematic object files as the files' magic No. identifies,&lt;BR /&gt;both the XML::Parser's object files and the libexpat identify differently&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# file Expat/Expat.o /usr/local/lib/libexpat.sl.5.0 &lt;BR /&gt;Expat/Expat.o:  ELF-64 relocatable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;/usr/local/lib/libexpat.sl.5.0: PA-RISC2.0 shared library&lt;BR /&gt; &lt;BR /&gt;Do you have any ideas what compiler flags I need to pass or place in the Makefile so that Expat.o won't be compiled as an ELF-64 object?&lt;BR /&gt;If I could make it into a PA-RISC2.0 like libexpat than I think the linker wouldn't moan.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jan 2005 08:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464417#M704051</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-19T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464418#M704052</link>
      <description>/usr/local/lib/libexpat.sl.5.0: PA-RISC2.0 shared library&lt;BR /&gt;&lt;BR /&gt;That's NOT a 64bit lib&lt;BR /&gt;&lt;BR /&gt;So far I've not (yet) seen libexpat available as a binary 64bit port, so you will&lt;BR /&gt;&lt;BR /&gt;1. have to port it yourself&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;2. ask me nicely to give it to you (I already compiled it for 64bit on 11.11)&lt;BR /&gt;&lt;BR /&gt;r3:/wrk/pa20_64/lib 103 &amp;gt; ll libexpat*&lt;BR /&gt;    988 -rw-r--r--    1 merijn   softwr     400516 Sep  6 14:04 libexpat.a&lt;BR /&gt;    986 lrwxrwxrwx    1 merijn   softwr         15 Sep  6 14:04 libexpat.sl -&amp;gt; libexpat.sl.5.0&lt;BR /&gt;    985 lrwxrwxrwx    1 merijn   softwr         15 Sep  6 14:04 libexpat.sl.5 -&amp;gt; libexpat.sl.5.0&lt;BR /&gt;    984 -r-xr-xr-x    1 merijn   softwr     229160 Sep  6 14:04 libexpat.sl.5.0&lt;BR /&gt;r3:/wrk/pa20_64/lib 104 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 19 Jan 2005 09:52:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464418#M704052</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-01-19T09:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464419#M704053</link>
      <description>Hello Merijn,&lt;BR /&gt; &lt;BR /&gt;I would like to take your generous offer, and ask if you could supply me with the libs for 64Bit 11.00?&lt;BR /&gt; &lt;BR /&gt;If the 11.11 libs cannot be used on 11.00 then don't bother.&lt;BR /&gt;Soap::Lite is clever enough to use a pure Perl parser for the XML if a libexpat isn't available.&lt;BR /&gt;It should just cost a little performance.&lt;BR /&gt; &lt;BR /&gt;Finally there would be another option for me&lt;BR /&gt;to download your gcc Perl builds.&lt;BR /&gt;Other people who use these don't seem to run into this problem.</description>
      <pubDate>Thu, 20 Jan 2005 04:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464419#M704053</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-20T04:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464420#M704054</link>
      <description>For /you/, I built it :)&lt;BR /&gt;&lt;BR /&gt;rw-rw-rw-    1 merijn   softwr     222364 Jan 20 11:32 expat-1.95.8-elf64.tgz&lt;BR /&gt;&lt;BR /&gt;-rwxrwxrwx merijn/softwr 43648 2005-01-20 11:30:37 /usr/local/pa20_64/bin/xmlwf&lt;BR /&gt;-rw-r--r-- merijn/softwr 40115 2005-01-20 11:30:37 /usr/local/pa20_64/include/expat.h&lt;BR /&gt;-r-xr-xr-x merijn/softwr 229272 2005-01-20 11:30:37 /usr/local/pa20_64/lib/libexpat.sl.5.0&lt;BR /&gt;lrwxrwxrwx merijn/softwr      0 2005-01-20 11:30:37 /usr/local/pa20_64/lib/libexpat.sl.5 -&amp;gt; libexpat.sl.5.0&lt;BR /&gt;lrwxrwxrwx merijn/softwr      0 2005-01-20 11:30:37 /usr/local/pa20_64/lib/libexpat.sl -&amp;gt; libexpat.sl.5.0&lt;BR /&gt;-rw-rw-rw- merijn/softwr    769 2005-01-20 11:30:37 /usr/local/pa20_64/lib/libexpat.la&lt;BR /&gt;-rw-r--r-- merijn/softwr 400628 2005-01-20 11:30:37 /usr/local/pa20_64/lib/libexpat.a&lt;BR /&gt;-rw-r--r-- merijn/softwr   7900 2005-01-20 11:30:37 /usr/local/pa20_64/man/man1/xmlwf.1&lt;BR /&gt;&lt;BR /&gt;libexpat.a:     archive file&lt;BR /&gt;libexpat.la:    ascii text&lt;BR /&gt;libexpat.sl:    ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;libexpat.sl.5:  ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;libexpat.sl.5.0:        ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/expat-1.95.8-elf64.tgz" target="_blank"&gt;http://www.cmve.net/~mbrand/expat-1.95.8-elf64.tgz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;tomorrow also on the mirrors&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 20 Jan 2005 05:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464420#M704054</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-01-20T05:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464421#M704055</link>
      <description>Many thanks Merijn,&lt;BR /&gt; &lt;BR /&gt;I downloaded the libs and untarred them beneath /usr/local&lt;BR /&gt; &lt;BR /&gt;Then I remade the Makefile of XML::Parser,&lt;BR /&gt;with these additional args&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;# CC=/opt/ansic/bin/cc perl Makefile.PL INC=-I/usr/local/pa20_64/include LDDLFLAGS=-L/usr/local/pa20_64/lib&lt;BR /&gt; &lt;BR /&gt;But the make yields the same error from the linker&lt;BR /&gt;  &lt;BR /&gt;# make&lt;BR /&gt;        rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.sl&lt;BR /&gt;        LD_RUN_PATH="/usr/local/lib" /usr/bin/ld  -b +vnocompatwarnings -L/usr/local/lib -L/lib/pa20_64&lt;BR /&gt; Expat.o  -o ../blib/arch/auto/XML/Parser/Expat/Expat.sl   -lexpat   &lt;BR /&gt;ld: Mismatched ABI (not an ELF file) for -lexpat&lt;BR /&gt;Fatal error.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt; &lt;BR /&gt;Stop.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt; &lt;BR /&gt;Stop.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Well it still was supplied with the same /usr/local/lib path with the invalid libexpat&lt;BR /&gt;It must have prepended the path from Perl's config.&lt;BR /&gt;In the %Config has I found these keys to hold the wrong search path for libraries &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# perl -MConfig -e 'print join"\n",@Config{qw(ccflags cppflags ldflags lddlflags lipth)},"\n"'&lt;BR /&gt; +z -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OF&lt;BR /&gt;FSET_BITS=64 &lt;BR /&gt;-Aa -D__STDC_EXT__ -D_HPUX_SOURCE +z -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/usr/local/inclu&lt;BR /&gt;de&lt;BR /&gt; +DD64 -L/usr/local/lib -L/lib/pa20_64&lt;BR /&gt;-b +vnocompatwarnings -L/usr/local/lib -L/lib/pa20_64&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Should I delete (or rename) the Expat stuff in /usr/local/lib so that the linker is forced to look in /usr/local/pa20_64?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 08:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464421#M704055</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-20T08:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464422#M704056</link>
      <description>don't REmove. just REname for now, but yes, that should help&lt;BR /&gt;&lt;BR /&gt;# mv /usr/local/lib /usr/local/_lib_&lt;BR /&gt;&lt;BR /&gt;You could also change the LD= line to have -L/usr/local/pa20_64/lib in front of the list, something like&lt;BR /&gt;&lt;BR /&gt;LD=$(LD) -L/usr/local/pa20_64/lib&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 20 Jan 2005 08:55:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464422#M704056</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-01-20T08:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem while building XML::Parser against libexpat</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464423#M704057</link>
      <description>Ah, moving of the wrong libexpat files out of /usr/local/lib revealed an interesting error message.&lt;BR /&gt; &lt;BR /&gt;# CC=/opt/ansic/bin/cc perl Makefile.PL INC=-I/usr/local/pa20_64/include LDDLFLAGS=-L/usr/local/pa20&amp;gt;&lt;BR /&gt;Note (probably harmless): No library found for -lexpat&lt;BR /&gt; &lt;BR /&gt;Expat must be installed prior to building XML::Parser and I can't find&lt;BR /&gt;it in the standard library directories. You can download expat from:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://sourceforge.net/projects/expat/" target="_blank"&gt;http://sourceforge.net/projects/expat/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;If expat is installed, but in a non-standard directory, then use the&lt;BR /&gt;following options to Makefile.PL:&lt;BR /&gt; &lt;BR /&gt;    EXPATLIBPATH=...  To set the directory in which to find libexpat&lt;BR /&gt; &lt;BR /&gt;    EXPATINCPATH=...  To set the directory in which to find expat.h&lt;BR /&gt; &lt;BR /&gt;For example:&lt;BR /&gt; &lt;BR /&gt;    perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include&lt;BR /&gt; &lt;BR /&gt;Note that if you build against a shareable library in a non-standard location&lt;BR /&gt;you may (on some platforms) also have to set your LD_LIBRARY_PATH environment&lt;BR /&gt;variable at run time for perl to find the library.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;So the Module provides an extra EXPATLIBPATH and EXPATINCPATH environment variable.&lt;BR /&gt;I thought I read the README?&lt;BR /&gt;To my apology, the README doesn't mention :-(&lt;BR /&gt; &lt;BR /&gt;Hey, but this works&lt;BR /&gt; &lt;BR /&gt;# CC=/opt/ansic/bin/cc perl Makefile.PL EXPATINCPATH=/usr/local/pa20_64/include EXPATLIBPATH=/usr/lo&amp;gt;&lt;BR /&gt;Checking if your kit is complete...&lt;BR /&gt;Looks good&lt;BR /&gt;Writing Makefile for XML::Parser::Expat&lt;BR /&gt;Writing Makefile for XML::Parser&lt;BR /&gt;[root@gouda:/root/.cpan/build/XML-Parser-2.34]&lt;BR /&gt;# make&lt;BR /&gt;cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc&lt;BR /&gt;cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc&lt;BR /&gt;cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm&lt;BR /&gt;cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc&lt;BR /&gt;cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc&lt;BR /&gt;cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README&lt;BR /&gt;cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc&lt;BR /&gt;cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc&lt;BR /&gt;cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc&lt;BR /&gt;cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc&lt;BR /&gt;cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc&lt;BR /&gt;cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg&lt;BR /&gt;cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm&lt;BR /&gt;cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc&lt;BR /&gt;cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc&lt;BR /&gt;cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc&lt;BR /&gt;cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc&lt;BR /&gt;cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc&lt;BR /&gt;cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc&lt;BR /&gt;cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl&lt;BR /&gt;cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm&lt;BR /&gt;cp Parser.pm blib/lib/XML/Parser.pm&lt;BR /&gt;cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm&lt;BR /&gt;cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc&lt;BR /&gt;cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm&lt;BR /&gt;cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc&lt;BR /&gt;cp Expat.pm ../blib/lib/XML/Parser/Expat.pm&lt;BR /&gt;        /usr/bin/perl /opt/cpan/lib/5.8.6/ExtUtils/xsubpp -noprototypes -typemap /opt/perl5/lib/5.8.6/E&lt;BR /&gt;xtUtils/typemap -typemap typemap  Expat.xs &amp;gt; Expat.xsc &amp;amp;&amp;amp; mv Expat.xsc Expat.c&lt;BR /&gt;        cc -c  -I/usr/local/pa20_64/include  +z -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +O2 +Onolimit    -DVERSION=\"2.34\"  -DXS_VERS&lt;BR /&gt;ION=\"2.34\" +Z "-I/opt/perl5/lib/5.8.6/PA-RISC2.0-LP64/CORE"   Expat.c&lt;BR /&gt;Running Mkbootstrap for XML::Parser::Expat ()&lt;BR /&gt;        chmod 644 Expat.bs&lt;BR /&gt;        rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.sl&lt;BR /&gt;        LD_RUN_PATH="/usr/local/pa20_64/lib" /usr/bin/ld  -b +vnocompatwarnings -L/usr/local/lib -L/lib&lt;BR /&gt;/pa20_64 Expat.o  -o ../blib/arch/auto/XML/Parser/Expat/Expat.sl   -L/usr/local/pa20_64/lib -lexpat   &lt;BR /&gt;        chmod 755 ../blib/arch/auto/XML/Parser/Expat/Expat.sl&lt;BR /&gt;        cp Expat.bs ../blib/arch/auto/XML/Parser/Expat/Expat.bs&lt;BR /&gt;        chmod 644 ../blib/arch/auto/XML/Parser/Expat/Expat.bs&lt;BR /&gt;Manifying ../blib/man3/XML::Parser::Expat.3&lt;BR /&gt;Manifying blib/man3/XML::Parser::Style::Objects.3&lt;BR /&gt;Manifying blib/man3/XML::Parser::Style::Debug.3&lt;BR /&gt;Manifying blib/man3/XML::Parser.3&lt;BR /&gt;Manifying blib/man3/XML::Parser::Style::Subs.3&lt;BR /&gt;Manifying blib/man3/XML::Parser::Style::Tree.3&lt;BR /&gt;Manifying blib/man3/XML::Parser::Style::Stream.3&lt;BR /&gt; &lt;BR /&gt;# make test&lt;BR /&gt;        rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.sl&lt;BR /&gt;        LD_RUN_PATH="/usr/local/pa20_64/lib" /usr/bin/ld  -b +vnocompatwarnings -L/usr/local/lib -L/lib&lt;BR /&gt;/pa20_64 Expat.o  -o ../blib/arch/auto/XML/Parser/Expat/Expat.sl   -L/usr/local/pa20_64/lib -lexpat   &lt;BR /&gt;        chmod 755 ../blib/arch/auto/XML/Parser/Expat/Expat.sl&lt;BR /&gt;        cp Expat.bs ../blib/arch/auto/XML/Parser/Expat/Expat.bs&lt;BR /&gt;        chmod 644 ../blib/arch/auto/XML/Parser/Expat/Expat.bs&lt;BR /&gt;        PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'bl&lt;BR /&gt;ib/arch')" t/*.t&lt;BR /&gt;t/astress.........ok                                                         &lt;BR /&gt;t/cdata...........ok                                                         &lt;BR /&gt;t/decl............ok                                                         &lt;BR /&gt;t/defaulted.......ok                                                         &lt;BR /&gt;t/encoding........"my" variable $p masks earlier declaration in same scope at t/encoding.t line 94.&lt;BR /&gt;t/encoding........ok                                                         &lt;BR /&gt;t/external_ent....ok                                                         &lt;BR /&gt;t/file............ok                                                         &lt;BR /&gt;t/finish..........ok                                                         &lt;BR /&gt;t/namespaces......ok                                                         &lt;BR /&gt;t/parament........ok                                                         &lt;BR /&gt;t/partial.........ok                                                         &lt;BR /&gt;t/skip............ok                                                         &lt;BR /&gt;t/stream..........ok                                                         &lt;BR /&gt;t/styles..........ok                                                         &lt;BR /&gt;All tests successful.&lt;BR /&gt;Files=14, Tests=130,  4 wallclock secs ( 2.56 cusr +  0.67 csys =  3.23 CPU)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;You saved my day :-)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 09:27:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem-while-building-xml-parser-against-libexpat/m-p/3464423#M704057</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-01-20T09:27:34Z</dc:date>
    </item>
  </channel>
</rss>

