Hi, I had to make some changes to Makefile.PL to make DBD::ODBC 1.06 compile on Redhat 7.3 with Perl 5.8 and ODBC lib from SAP DB 7.4.3.25.
1) Makefile.PL assumed Config{lib_ext} returns extension without '.', but
that is not the case on my system. I changed line 163:
if !$myodbc && -f "$odbchome/lib/libsqlod.$arext";
to:
if !$myodbc && -f "$odbchome/lib/libsqlod$arext";
I have not changed line 166 and 169 in my patch, but they should
probably be changed too.
2) I had to add -lpthread to link options. The pthread library
is used by SAP DB ODBC library.
I Added:
$opts{LIBS} = "-lpthread";
after line 347:
$opts{LDFROM} = "\$(OBJECT) $odbchome/lib/libsqlod.a";
3) make reported error in genererated Makefile because space characters
where used instead of tab character before @$(NOOP). This has
been reported on this mailing list before.
Patch file against DBD::ODBC 1.06 enclosed.
Even after changes to Makefile.PL, 02simple test 13, 20 and 21
fails. The tests probably fail because SAP DB ODBC on Linux does
not support the used functions, so there is not much to do about it.
# schoen
--
Borago.Net (http://stroida.borago.net)
DBD-ODBC-1.06.patch
Description: Binary data
