I'm trying to setup my Perl and DBI/DBD:Sybase development
environment for the first time on Mac OS X (Tiger v10.4).
I get errors running MAKE after the make Makefile.PL in DBD-Sybase-1.08
I installed XCode to get the C compilers, Make, etc.
I installed Perl 5.8.6
I Installed Sybase OpenClient 12.5.1 ASE Edition and added the
appropriate environment variables for Sybase. I can connect to my
database using jSQL.
I downloaded the DBI 1.602 module and did the make Makefile.PL ,
MAKE, make test, and make install (all went well)
I downloaded DBD-Sybase-1.08 and did the make Makefile.PL , but when
I try to run MAKE with the MAKEFILE that was generated, I get this
error:
cc -c -I/Applications/Sybase/System/OCS-12_5/include -I/Library/Perl/
5.8.6/darwin-thread-multi-2level/auto/DBI -g -pipe -fno-common -
DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/
include -O3 -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" "-I/System/
Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"
Sybase.cSybase.xsi: In function
'XS_DBD__Sybase__db_disconnect':Sybase.xsi:277: error: invalid lvalue
in assignmentSybase.xsi: In function
'XS_DBD__Sybase__db_DESTROY':Sybase.xsi:336: error: invalid lvalue in
assignmentmake: *** [Sybase.o] Error 1
Does anyone know what I'm missing?
I tried adding "-framework CoreFoundation" to the EXTRALIBS and
LDLOADLIBS lines in the MAKEFILE that was generated, but it had no
effect.