Forwarded to perl5-porters for the record. I think Alan Burlison added the extra Solaris linker options. Tim. ----- Forwarded message from Michael Peppler <mpeppler@peppler.org> ----- Delivered-To: tim.bunce@pobox.com Mailing-List: contact dbi-users-help@perl.org; run by ezmlm Delivered-To: mailing list dbi-users@perl.org Delivered-To: dbi-users@perl.org Subject: DBD::Sybase and Sybase::CTlib build problems w/ 5.8.1, Solaris, gcc 3.x From: Michael Peppler <mpeppler@peppler.org> To: dbi-users@perl.org Cc: Sybperl-L Mailing List <sybperl-l@peppler.org> Date: Wed, 15 Oct 2003 17:04:16 -0700 FYI DBD::Sybase and Sybase::CTlib fail at the "make test" stage on Solaris (and possibly other platforms) with perl 5.8.1 and gcc 3.x. The problem is the default LDDLFLAGS configuration value that is used with 5.8.1, which includes the following flags: -z ignore -z lazyload -z combreloc For some reason these linker flags cause Sybase's -ltcl to NOT get linked in to the .so file, with the result that DBD::Sybase and Sybase::CTlib fail to load with relocation errors when trying to load Sybase's libct.so (I've seen symbols "com_tds_maptoken" and "dcl_result_drop" mentioned in the error message). I'm going to try to figure out why these -z flags inhibit linking Sybase's libtcl.so, but in the meantime the work-around is to edit the Makefile after running "perl Makefile.PL" and remove the offending entries from the LDDLFLAGS macro. Michael -- Michael Peppler Data Migrations, Inc. mpeppler@peppler.org http://www.mbay.net/~mpeppler Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or long term contract positions - http://www.mbay.net/~mpeppler/resume.html ----- End forwarded message -----