PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Philip Chan" <philipc at i-cable dot com>
Subject: Re: Unresolved symbols during "make test" for Sybperl 2.17
Date: Nov 29 2004 11:59PM

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" 
To: 
Cc: "Sybperl-L Mailing List" 
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.
> mpeppler@peppler.org                       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 "
> to majordomo@isug.com.
>
>