Forum
Hallo,
bin in der Zwischenzeit etwas weitergekommen. Ich habe mir die DB2 PE unter Linux installiert und die libs nach OS X kopiert. Es wird soweit auch (fast) alles gefunden…
Da die neueste Version nur als Windows-Binaries vorliegt, habe ich auf die DBD-DB2-0.78-Quellen zurückgrreifen müssen.
Vielleicht helfen ja die folgende Zeilen:
——-8< —–schnipp——-8<———
douglas:~/DownUnder/DBD-DB2-0.78 itzinger$ perl Makefile.PL
Configuring DBD::DB2…
Remember to actually read the README and CAVEATS files!
Using DB2 in "/optimal/DB2/V81"
System: perl5.008001 DBI1.50 darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25 16:58:41 pdt 2003; root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh powerpc darwin-thread-multi-2level dl_dyld.xs
Compiler: cc -Os -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include
Includes: -I"/optimal/DB2/V81/include" -I"/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI" -I"/Network/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI"
Libraries: -L/optimal/DB2/V81/lib -ldb2
Checking if your kit is complete…
Looks good
Note (probably harmless): No library found for -ldb2
Checking if your kit is complete…
Looks good
Writing Makefile for DBD::DB2::Constants
Writing Makefile for DBD::DB2
douglas:~/DownUnder/DBD-DB2-0.78 itzinger$ make
cp DB2.pod blib/lib/DBD/DB2.pod
cp DB2.pm blib/lib/DBD/DB2.pm
cp lib/Bundle/DBD/DB2.pm blib/lib/Bundle/DBD/DB2.pm
cp Constants.pm ../blib/lib/DBD/DB2/Constants.pm
AutoSplitting ../blib/lib/DBD/DB2/Constants.pm (../blib/lib/auto/DBD/DB2/Constants)
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap /System/Library/Perl/5.8.1/ExtUtils/typemap Constants.xs > Constants.xsc && mv Constants.xsc Constants.c
cc -c -I"/optimal/DB2/V81/include" -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION="0.22" -DXS_VERSION="0.22" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" Constants.c
Running Mkbootstrap for DBD::DB2::Constants ()
chmod 644 Constants.bs
rm -f ../blib/arch/auto/DBD/DB2/Constants/Constants.bundle
LD_RUN_PATH="" MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib Constants.o -o ../blib/arch/auto/DBD/DB2/Constants/Constants.bundle
chmod 755 ../blib/arch/auto/DBD/DB2/Constants/Constants.bundle
cp Constants.bs ../blib/arch/auto/DBD/DB2/Constants/Constants.bs
chmod 644 ../blib/arch/auto/DBD/DB2/Constants/Constants.bs
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap /System/Library/Perl/5.8.1/ExtUtils/typemap DB2.xs > DB2.xsc && mv DB2.xsc DB2.c
cc -c -I"/optimal/DB2/V81/include" -I"/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI" -I"/Network/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI" -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION="0.78" -DXS_VERSION="0.78" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" DB2.c
cc -c -I"/optimal/DB2/V81/include" -I"/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI" -I"/Network/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI" -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION="0.78" -DXS_VERSION="0.78" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" dbdimp.c
Running Mkbootstrap for DBD::DB2 ()
chmod 644 DB2.bs
rm -f blib/arch/auto/DBD/DB2/DB2.bundle
LD_RUN_PATH="" MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib DB2.o dbdimp.o -o blib/arch/auto/DBD/DB2/DB2.bundle
ld: multiple definitions of symbol _sql_state
DB2.o definition of _sql_state in section (__DATA,__common)
dbdimp.o definition of _sql_state in section (__DATA,__common)
make: *** [blib/arch/auto/DBD/DB2/DB2.bundle] Error 1
——-8< —–schnapp——-8<———
Irgentetwas scheint ihm nicht zu schmecken, nur was?
Gruß,
Ortwin