Operating System - HP-UX
1833873 Members
3280 Online
110063 Solutions
New Discussion

Re: still have problem comiling XML::Parser

 
Kam Cheung
Occasional Contributor

still have problem comiling XML::Parser

Guy Mengel posted a comment on this forum on 10/12/2000 saying I must download the perl source and recompile with flags -lcl -lthread which I have not done. I am not a sys admin person so I tried to avoid compile the whole perl. May be I need to do this. I am not using apache server. I think it's just part of a directory path name. I tried compiling with another perl and got the same error. I downloaded the XML:Parser from cpan.org. To install this you all so need expat. When you compile, it will tell you in case you have not installed expat.

Thanks very much.

============================
Mengel wrote: I have had the same exact problem using the Oracle DBI drivers for perl.
Simply add the pthread and cl libraries when building perl. Note:
You MUST rebuild perl to get rid of this issue, if you are using a binary
then you must get the sources and recompile adding the libraries
-lpthread -lcl when asked for the library information. Note2: This is NOT building
a "threaded" perl either, unless you need threads you should be answering "no" to
building a threaded perl.


2 REPLIES 2
Ralph Grothe
Honored Contributor

Re: still have problem comiling XML::Parser

Although I'm not using the CPAN module XML::Parser, I'm quite sure you mixed something up here.
As far as I know does the newbuilding of Perl from sources with the -lcl -lpthread flags only relate to specific HP-UX problems with the DBD::Oracle driver installation (and running) when you need to connect to an Oracle DBMS instance from a client on HP-UX.
If you don't intend to connect to an Oracle DB through the DBI and DBD::Oracle interface there should absolutely be no need for you to build Perl anew.
You were right though, in that you first have to have installed the expat library (so the readme of XML::Parser on CPAN says)
Just follow the instructions in that Readme.
Madness, thy name is system administration
Kam Cheung
Occasional Contributor

Re: still have problem comiling XML::Parser

Thanks for your comment. The original problem was :
I keep on getting the error message (when I compile XML::Parser perl module), /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libc.2.
/lur/lib/dld.sl: Exec format error.

Susan Markley posted similar problem on 10/10/2000 on compiling another perl module. She followed Guy Mengel's suggestion and recompile Perl with -lcl and -lthread and was able to get rid of the problem. You might be right about the Oracle DBI drivers. I am still lost as how to get around the problem of compiling this XML::Parser problem.

Thanks.