Menu

#25 iODBC's libtool broken on AIX 5.3 with Gnu 4.1.1

closed-fixed
None
5
2007-10-07
2007-09-13
Mark Haynie
No

iODBC 3.52.5 version includes an old libtool that doesn't correctly make shared libraries under Gnu gcc 4.1.1 on AIX 5.3. simply replacing iODBC's libtool with the one built from libtool-1.5.24 resolves the problem.

Detailed description: AIX 5.3 with gcc 4.1.1 builds libiodbc-3.52.5 libiodbc_common.a using ar and ranlib. However, AIX ld command will not pull in external references from this since it thinks all .a files are shared libraries. it leaves SQLGetPrivateProfileString, the trace libraries, etc. resolved to 0x00000000. So, segmentation violation occurs when running iodbctest. gdb backtrace on the core file shows SQLValidDSN() as unresolved. Using dump -Tv shows SQLValidDSN as an EXTref, which is only found in libiodbc_common.a.

Solution: Upgrade iODBC ./configure to use a newer libtool or allow as other tools have --with-libtool-path=dirname ./configure option.

Discussion

  • iODBC Maintainer

    • assigned_to: nobody --> iodbc
    • status: open --> closed-fixed
     
  • iODBC Maintainer

    Logged In: YES
    user_id=872639
    Originator: NO

    This can always happen when a machine needs a newer or local version of autoconf, automake and or libtool.

    Solution: use the supplied bootstrap.sh script to update the configure/libtool script with the latest version available on your machine. Then run ./configure as per usual.