GOT IT. For anyone interested:
(Maybe some of these options are irrelevant - feel free to correct me)o conf make /usr/sfw/bin/gmake o conf make_arg '' o conf make_install_arg '' o conf make_install_make_command '/usr/sfw/bin/gmake' o conf mbuild_arg '' o conf mbuild_install_arg '' o conf tar /usr/sfw/bin/gtar
So, this incantation should work:
o conf makepl_arg 'LDDLFLAGS="-G -Wl,-rpath,/your_unixodbc_home/lib" -o /your_unixodbc_home'Note: in my setup, I had to issue o conf commit, exit the shell and run it again for these changes to work. Don't ask.
Note 2: Turns out that the relocation error happened because ld.so.1 was loading the *wrong* library from /my_unixodbc_home/lib. I got the clue from 'Enabling ODBC support in Perl with Perl DBI and DBD::ODBC' by Easysoft:
The undefined symbol SQLParamData is reported by the dynamic linker as the first symbol it looked for but could not find.
This happens when building DBD::ODBC with unixODBC because the Makefile.PL is now incompatible with newer unixODBC releases. The Makefile.PL searches ODBCHOME/lib for *odbc*.* and finds libodbc.so AND libodbcinst.so. It then goes on to choose libodbcinst.so which is the incorrect shared object.
In reply to Re^3: "referenced symbol not found" testing DBD::ODBC against unixODBC
by arielCo
in thread "referenced symbol not found" testing DBD::ODBC against unixODBC
by arielCo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |