Skip to Content.
Sympa Menu

freetds - RE: [freetds] trying to build odbc driver on hpux

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: freddyz77 AT tin.it
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] trying to build odbc driver on hpux
  • Date: Thu, 24 Jun 2004 09:10:21 +0200


>
>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

Currently I'm attempting a HP-UX corse at HP (HP-UX System and Network
Administration
I). I reproduced your issue, it's caused by an error detecting libtds. I'm
unable to provide a fix (I don't have CVS access here) however you can open
src/odbc/Makefile and remove libtds.la file occurency to link correctly
libtdsodbc.sl.
Next week I'll fix this problem (I have already fixed the code at work)

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page