[freetds] Getting it to all work on HPUX
Frediano Ziglio
freddy77 at gmail.com
Tue Feb 10 04:30:12 EST 2009
2009/2/9 Michael Warchut <mike at warchut.com>:
> Is there anything I can send you guys to help diagnose this?
>
???
Doing make libct.la on src/ctlib
$ make libct.la
/bin/sh ../../libtool --tag=CC --mode=link hppa64-hp-hpux11.00-gcc
-D_REENTRANT -g -O2 -Wdeclaration-after-statement -version-info 4:0:0
-export-symbols-regex '^(cs_|ct_|blk_).*' -Wl,-Bsymbolic -o
libct.la -rpath /opt/freetds/lib ct.lo cs.lo blk.lo ctutil.lo
../tds/libtds.la ../replacements/libreplacements.la -lxnet
-static-libgcc -lpthread
rm -fr .libs/libct.a .libs/libct.exp .libs/libct.la .libs/libct.lai
.libs/libct.sl .libs/libct.sl.4 .libs/libct.sl.4.0
*** Warning: linker path does not have real file for library -lxnet.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libxnet but no candidates were found. (...for file magic test)
...
hppa64-hp-hpux11.00-gcc -shared .libs/ct.o .libs/cs.o .libs/blk.o
.libs/ctutil.o -Wl,--whole-archive ../tds/.libs/libtds.a
../replacements/.libs/libreplacements.a -Wl,--no-whole-archive
-Wl,-Bsymbolic -Wl,-soname -Wl,libct.sl.4 -Wl,-retain-symbols-file
-Wl,.libs/libct.exp -o .libs/libct.sl.4.0
...
Damn.... libtool does not detect libraries. After doing a manual patch
I got proper library linked to libct.sl... Could you please post your
libct.sl library so I could see if you had the same problem during
linking??
In my environment this problem cause -lxnet to be ignored so library
use libc version instead of X/Open...
$ ../../libtool --version
ltmain.sh (GNU libtool) 1.5.24 (1.1220.2.456 2007/06/24 02:25:32)
freddy77
More information about the FreeTDS
mailing list