blackart has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am trying to make DBD::Sybase. I have installed DBI and freetds 0.82. When I do make of DBD::Sybase I get following error: -

# make
cc -c -I/usr/local/include -DNO_BLK=1 -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.09\" -DXS_VERSION=\"1.09\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" Sybase.c
"Sybase.xs", line 83: warning: implicit function declaration: syb_ping
"Sybase.xs", line 95: warning: implicit function declaration: syb_st_cancel
cc -c -I/usr/local/include -DNO_BLK=1 -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.09\" -DXS_VERSION=\"1.09\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" dbdimp.c
"dbdimp.c", line 777: undefined symbol: BLK_VERSION_150
"dbdimp.c", line 781: undefined symbol: BLK_VERSION_125
"dbdimp.c", line 785: undefined symbol: BLK_VERSION_120
"dbdimp.c", line 4594: warning: statement not reached
"dbdimp.c", line 4639: warning: statement not reached
"dbdimp.c", line 4683: warning: statement not reached
cc: acomp failed for dbdimp.c
*** Error code 2
make: Fatal error: Command failed for target `dbdimp.o'

Thanks

Replies are listed 'Best First'.
Re: DBD::Sybase not compiling
by locked_user sundialsvc4 (Abbot) on Mar 06, 2009 at 17:20 UTC

    I am not an expert on this, but my first-blush assumption would be that you need some kind of environment-variable setting, to tell the make process where these Sybase-specific libraries and header files can be found.

    A Google search for BLK_VERSION_150 (e.g...) also appears to produce a reasonable number of fairly fruitful-looking “hits...” I would expect that whatever solutions they describe will be directly applicable to your case, as well.

      sundialsvc4 you are the man.
      I added the folowing before syb_init() function in dbdimp.c file and everything is fine.

      #undef CS_VERSION_150
      #undef CS_VERSION_125
      #undef CS_VERSION_120
      #undef CS_DATE_TYPE
      #undef CS_BIGINT_TYPE

      I found it after googling the string you gave me BLK_VERSION_15 and got this hit http://lists.ibiblio.org/pipermail/freetds/2006q3/020587.html


      domo arigato gozaimashita
Re: DBD::Sybase not compiling
by blackart (Initiate) on Mar 06, 2009 at 15:28 UTC
    I am usring solrais 10 with
    cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12 and
    perl5 (revision 5 version 8 subversion 4)