[freetds] trying to build odbc driver on hpux

Willy, Jeff jeff.willy at hp.com
Mon Jun 21 18:07:11 EDT 2004


Hi,

I am trying to use freetds to allow my php scripts on a machine running
HPUX 11.11 to query a remote MSSQL server.  However, libtdsodbc.so/sl is
not being built.  =/  With older versions (a few weeks old+) of freetds,
the configure script was determining that it should not build shared
libraries because libtool did not support them.  Freetds would build and
install without error, but no shared objects were built.  

That problem has gone away with the new version; configure determines
that my environment supports the creation of shared libraries.  Now I am
getting the following make error:  

/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output
file for symbol "tds_parse_conf_section" in input file
".libs/libtds.lax/libtds_objects.a/config.o"

I'm pretty sure this is because configure decided that my compiler (gcc)
does not support the -fPIC option, so is not using it, and
position-independant code is not being built.  My compiler _does_
support PIC, and when I hack the configure script to say it allows it,
make and make install execute without errors.  And even more
encouraging, some shared libraries are being built.

Unfortunately, libtdsodbc.so/sl is not.  =/  

-rw-r--r--   1 root       sys         448086 Jun 21 15:45 libsybdb.a
-rwxr-xr-x   1 root       sys            887 Jun 21 15:45 libsybdb.la
lrwxrwxrwx   1 root       sys             15 Jun 21 15:45 libsybdb.sl ->
libsybdb.sl.5.0
lrwxrwxrwx   1 root       sys             15 Jun 21 15:45 libsybdb.sl.5
-> libsybdb.sl.5.0
-r-xr-xr-x   1 root       sys         483328 Jun 21 15:45
libsybdb.sl.5.0
-rw-r--r--   1 root       sys         319210 Jun 21 15:45 libtds.a
-rwxr-xr-x   1 root       sys            873 Jun 21 15:45 libtds.la
lrwxrwxrwx   1 root       sys             13 Jun 21 15:45 libtds.sl ->
libtds.sl.3.0
lrwxrwxrwx   1 root       sys             13 Jun 21 15:45 libtds.sl.3 ->
libtds.sl.3.0
-r-xr-xr-x   1 root       sys         356352 Jun 21 15:45 libtds.sl.3.0
-rw-r--r--   1 root       sys         454684 Jun 21 15:45 libtdsodbc.a
-rwxr-xr-x   1 root       sys            871 Jun 21 15:45 libtdsodbc.la
-rw-r--r--   1 root       sys         338076 Jun 21 15:45 libtdssrv.a
-rwxr-xr-x   1 root       sys            894 Jun 21 15:45 libtdssrv.la
lrwxrwxrwx   1 root       sys             16 Jun 21 15:45 libtdssrv.sl
-> libtdssrv.sl.1.0
lrwxrwxrwx   1 root       sys             16 Jun 21 15:45 libtdssrv.sl.1
-> libtdssrv.sl.1.0
-r-xr-xr-x   1 root       sys         372736 Jun 21 15:45
libtdssrv.sl.1.0

I am not a makefile, compiler, or linker expert, so I don't know if .sl
and .so even work the same.  Has anyone tried building freetds' odbc
driver on HPUX 11.11?  If so, would you be willing to share the binary?


I have logs of the configure and make and can post them if needed.

Thanks in advance,
Jeff



More information about the FreeTDS mailing list