I'm trying to install DBD::ODBC on a Mac 10.3.7 OS X Server with the
pre-installed Perl 5.8.1. I've overwritten the pre-installed iodbc
driver manager with a freshly downloaded copy of iodbc 3.52.2. I've
installed the FreeTDS drivers specifying --with-iodbc to make sure that
it linked against iodbc that I installed. I tested the installation
with the iodbctest application, and I was able to connect to a MS SQL
server and query the database.
When I built the DBI version 1.48 on this system it reminded me that
the Perl that was installed on the Server was a threaded version, but
it built fine.
I downloaded DBD::ODBC 1.13 and issued a make distclean, read the
README, set and exported all of my environment variables, including
manually setting and exporting LD_LIBRARY_PATH.
When I run the Makefile.PL, it reports that it found a unixodbc type of
driver mananger, not the iodbc driver that I installed. Make test fails
with the following errors. Any advice on how to proceed would be
appreciated:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01base.........dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay
t/02simple.......dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 3-36
Failed 34/36 tests, 5.56% okay
t/03dbatt........dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 3-24
Failed 22/24 tests, 8.33% okay
t/05meth.........dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 2-8
Failed 7/8 tests, 12.50% okay
t/07bind.........dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 2-11
Failed 10/11 tests, 9.09% okay
t/08bind2........dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 3-5
Failed 3/5 tests, 40.00% okay
t/09multi........dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 4-7
Failed 4/7 tests, 42.86% okay
t/20SqlServer....dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 3-37
Failed 35/37 tests, 5.41% okay
t/30Oracle.......dyld: /usr/bin/perl Undefined symbols:
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetConfigMode expected to be
defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLGetPrivateProfileString expected
to be defined in a dynamic image
/Users/admin/.cpan/build/DBD-ODBC-1.13/blib/arch/auto/DBD/ODBC/
ODBC.bundle undefined reference to _SQLSetConfigMode expected to be
defined in a dynamic image
dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 3-4
Failed 2/4 tests, 50.00% okay
Failed 9/9 test scripts, 0.00% okay. 119/137 subtests failed, 13.14%
okay.
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------
-------
t/01base.t 0 5 5 4 80.00% 4-5
t/02simple.t 0 5 36 68 188.89% 3-36
t/03dbatt.t 0 5 24 44 183.33% 3-24
t/05meth.t 0 5 8 14 175.00% 2-8
t/07bind.t 0 5 11 20 181.82% 2-11
t/08bind2.t 0 5 5 6 120.00% 3-5
t/09multi.t 0 5 7 8 114.29% 4-7
t/20SqlServer.t 0 5 37 70 189.19% 3-37
t/30Oracle.t 0 5 4 4 100.00% 3-4
make: *** [test_dynamic] Error 2