Re: Unresolved symbols during "make test" for Sybperl 2.17

"Philip Chan" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <000901c4d66f$6db8ad70$f834fcda@toronto>
Thanks for your reply Michael.

It turns out one of the run-time library associated with libpthread was 
missing, which is "librt".   In HP-UX thread local storage cannot be loaded 
dynamically, so I had to set the "LD_PRELOAD" variable to pre-load librt 
instead.

Regards,
Philip


----- Original Message ----- 
From: "Michael Peppler" <[email protected]>
To: <[email protected]>
Cc: "Sybperl-L Mailing List" <[email protected]>
Sent: Sunday, November 28, 2004 9:44 PM
Subject: Re: Unresolved symbols during "make test" for Sybperl 2.17


> On Sat, 2004-11-27 at 02:47, Philip Chan wrote:
>> Hi all,
>>
>> While building Sybperl 2.17 onto my HP box I'm getting a number of
>> unresolved symbols, it looks like I missed a library or something.
>> Can someone please shed me any idea what was wrong there?
>
> This should probably go on the sybperl-l mailing list.
>
>>
>> The "make" command ran well, and error messages during "make test"
>> were attached.
>
>
>>         PERL_DL_NONLAZY=1 /opt/perl-5.8.5-acc/bin/perl
>> "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
>> 'blib/arch')" t/*.t
>> t/1_db_dblib...........ok
>> t/1_db_money...........ok
>> t/2_ct_ctlib.........../usr/lib/dld.sl: Unresolved symbol: sem_post
>> (code)  from /opt/sybase/OCS-12_0/lib/libcomn_r.sl
>> /usr/lib/dld.sl: Unresolved symbol: sem_destroy (code)  from
>> /opt/sybase/OCS-12_0/lib/libcomn_r.sl
>> /usr/lib/dld.sl: Unresolved symbol: sem_trywait (code)  from
>> /opt/sybase/OCS-12_0/lib/libcomn_r.sl
>> /usr/lib/dld.sl: Unresolved symbol: sem_wait (code)  from
>> /opt/sybase/OCS-12_0/lib/libcomn_r.sl
>> /usr/lib/dld.sl: Unresolved symbol: sem_init (code)  from
>> /opt/sybase/OCS-12_0/lib/libcomn_r.sl
>
> I've never seen this particular issue, though this appears to be linked
> to the multi-threading libraries.
>
> I would start by using nm in /usr/lib to see which library defines these
> symbols - on my linux box this is libpthread.a - so maybe the problem is
> that your perl binary isn't linked with -lpthread, or that you need to
> add -lpthread to the list of libraries that need to be linked on HP-UX.
>
> Michael
> -- 
> Michael Peppler                              Data Migrations, Inc.
> [email protected]                       http://www.peppler.org/
> Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
> long term contract positions - http://www.peppler.org/resume.html
>
> --
> Sybase/Linux FAQ: http://www.peppler.org/FAQ/linux.html
> To subscribe ...: complete the form at http://www.isug.com
> To unsubscribe .: send body "unsubscribe ase-linux-list <email address>"
> to [email protected].
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.