DBD::Sybase and Sybase::CTlib build problems w/ 5.8.1, Solaris, gcc 3.x

From: Michael Peppler (mpeppler_at_peppler.org)
Date: 10/16/03

  • Next message: Srinivas Thutika: "problem in Stored procedure Returning curser"
    To: dbi-users@perl.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
    

  • Next message: Srinivas Thutika: "problem in Stored procedure Returning curser"

    Relevant Pages

    • about building release 6.0
      ... Build a threading Perl? ... Checking for optional libraries... ... Let me guess what the preprocessor flags are... ... Checking your choice of C compiler and flags for coherency... ...
      (freebsd-questions)
    • Re: why the perl docs suck
      ... It stands to reason that perl ... > allocation-copy-free sitting on top of block memory fragmented ... FLAGS = ... The fact that an upgrade results in a fresh allocation instead of an ...
      (comp.lang.perl.misc)
    • Re: Perl Performance Tuning
      ... o> This should be required reading for all Perl hackers, ... who in their right mind uses lots of bit flags for booleans in perl? ... use undef instead of 0 makes no sense. ... fix bugs when they were used outside their very tiny design envelope. ...
      (comp.lang.perl.misc)
    • Re: WinCE socket select/recv fails when peer sends less than 4 byt
      ... send is defined in Perl like this: ... but uses the third parameter for the FLAGS. ... > sent as OOB data while the WinCE client was just waiting for normal data. ... >> Paul T. ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Perl Performance Tuning
      ... o> This should be required reading for all Perl hackers, ... That's an excellent reason to use bit flags. ... Typically you store your flags in a hash, which adds more overhead, so ... you may waste on the order of 1000 bits for each bit of information. ...
      (comp.lang.perl.misc)