Skip to Content.
Sympa Menu

freetds - Re: [freetds] Getting it to all work on HPUX

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Michael Warchut" <mike AT warchut.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Getting it to all work on HPUX
  • Date: Tue, 10 Feb 2009 18:33:31 -0800

Here is my make libct.la


RWOrac01\:/var/tmp/mwwsources/freetds-0.82/src/ctlib# make libct.la
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../include -I../../include -D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE
-D_XOPEN_SOURCE_EXTENDED -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H
-DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include
-D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-long-long -D_REENTRANT -pthread -mlp64
-Wdeclaration-after-statement -MT ct.lo -MD -MP -MF ".deps/ct.Tpo" -c -o
ct.lo ct.c; \
then mv -f ".deps/ct.Tpo" ".deps/ct.Plo"; else rm -f ".deps/ct.Tpo";
exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT ct.lo -MD -MP
-MF .deps/ct.Tpo -c ct.c -DPIC -o .libs/ct.o
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT ct.lo -MD -MP
-MF .deps/ct.Tpo -c ct.c -o ct.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../include -I../../include -D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE
-D_XOPEN_SOURCE_EXTENDED -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H
-DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include
-D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-long-long -D_REENTRANT -pthread -mlp64
-Wdeclaration-after-statement -MT cs.lo -MD -MP -MF ".deps/cs.Tpo" -c -o
cs.lo cs.c; \
then mv -f ".deps/cs.Tpo" ".deps/cs.Plo"; else rm -f ".deps/cs.Tpo";
exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT cs.lo -MD -MP
-MF .deps/cs.Tpo -c cs.c -DPIC -o .libs/cs.o
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT cs.lo -MD -MP
-MF .deps/cs.Tpo -c cs.c -o cs.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../include -I../../include -D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE
-D_XOPEN_SOURCE_EXTENDED -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H
-DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include
-D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-long-long -D_REENTRANT -pthread -mlp64
-Wdeclaration-after-statement -MT blk.lo -MD -MP -MF ".deps/blk.Tpo" -c -o
blk.lo blk.c; \
then mv -f ".deps/blk.Tpo" ".deps/blk.Plo"; else rm -f
".deps/blk.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT blk.lo -MD
-MP -MF .deps/blk.Tpo -c blk.c -DPIC -o .libs/blk.o
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT blk.lo -MD
-MP -MF .deps/blk.Tpo -c blk.c -o blk.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../include -I../../include -D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE
-D_XOPEN_SOURCE_EXTENDED -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H
-DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include
-D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-long-long -D_REENTRANT -pthread -mlp64
-Wdeclaration-after-statement -MT ctutil.lo -MD -MP -MF ".deps/ctutil.Tpo"
-c -o ctutil.lo ctutil.c; \
then mv -f ".deps/ctutil.Tpo" ".deps/ctutil.Plo"; else rm -f
".deps/ctutil.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT ctutil.lo -MD
-MP -MF .deps/ctutil.Tpo -c ctutil.c -DPIC -o .libs/ctutil.o
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG
-DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthread -mlp64 -Wdeclaration-after-statement -MT ctutil.lo -MD
-MP -MF .deps/ctutil.Tpo -c ctutil.c -o ctutil.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -D_REENTRANT -pthread -mlp64
-Wdeclaration-after-statement -L/usr/local/lib -o libct.la -rpath
/usr/local/lib -version-info 4:0:0 -export-symbols-regex '^(cs_|ct_|blk_).*'
-Wl,-Bsymbolic ct.lo cs.lo blk.lo ctutil.lo ../tds/libtds.la
../replacements/libreplacements.la -lxnet
generating symbol list for `libct.la'
/usr/bin/nm -p .libs/ct.o .libs/cs.o .libs/blk.o .libs/ctutil.o
../tds/.libs/libtds.a ../replacements/.libs/libreplacements.a | sed -n -e
's/^.*[ ]\([ABCDEGRST][ABCDEGRST]*\)[ ][
]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed 's/.* //' | sort |
uniq > .libs/libct.exp
grep -E -e "^(cs_|ct_|blk_).*" ".libs/libct.exp" > ".libs/libct.expT"
mv -f ".libs/libct.expT" ".libs/libct.exp"
rm -fr .libs/libct.lax
mkdir .libs/libct.lax
rm -fr .libs/libct.lax/libtds.a
mkdir .libs/libct.lax/libtds.a
(cd .libs/libct.lax/libtds.a && ar x
/var/tmp/mwwsources/freetds-0.82/src/ctlib/../tds/.libs/libtds.a)
rm -fr .libs/libct.lax/libreplacements.a
mkdir .libs/libct.lax/libreplacements.a
(cd .libs/libct.lax/libreplacements.a && ar x
/var/tmp/mwwsources/freetds-0.82/src/ctlib/../replacements/.libs/libreplacem
ents.a)
gcc -shared -Wl,+h -Wl,libct.so.4 -o .libs/libct.so.4.0 .libs/ct.o
.libs/cs.o .libs/blk.o .libs/ctutil.o .libs/libct.lax/libtds.a/mem.o
.libs/libct.lax/libtds.a/token.o .libs/libct.lax/libtds.a/util.o
.libs/libct.lax/libtds.a/login.o .libs/libct.lax/libtds.a/read.o
.libs/libct.lax/libtds.a/write.o .libs/libct.lax/libtds.a/convert.o
.libs/libct.lax/libtds.a/numeric.o .libs/libct.lax/libtds.a/config.o
.libs/libct.lax/libtds.a/query.o .libs/libct.lax/libtds.a/iconv.o
.libs/libct.lax/libtds.a/locale.o .libs/libct.lax/libtds.a/challenge.o
.libs/libct.lax/libtds.a/threadsafe.o .libs/libct.lax/libtds.a/vstrbuild.o
.libs/libct.lax/libtds.a/md4.o .libs/libct.lax/libtds.a/md5.o
.libs/libct.lax/libtds.a/des.o .libs/libct.lax/libtds.a/tdsstring.o
.libs/libct.lax/libtds.a/getmac.o .libs/libct.lax/libtds.a/data.o
.libs/libct.lax/libtds.a/net.o .libs/libct.lax/libtds.a/tds_checks.o
.libs/libct.lax/libtds.a/log.o .libs/libct.lax/libtds.a/gssapi.o
.libs/libct.lax/libreplacements.a/iconv.o
.libs/libct.lax/libreplacements.a/gettimeofday.o
.libs/libct.lax/libreplacements.a/asprintf.o
.libs/libct.lax/libreplacements.a/vasprintf.o
.libs/libct.lax/libreplacements.a/readpassphrase.o
.libs/libct.lax/libreplacements.a/strlcpy.o
.libs/libct.lax/libreplacements.a/strlcat.o -L/usr/local/lib -lxnet -lc
-pthread -mlp64 -Wl,-Bsymbolic
(cd .libs && rm -f libct.so.4 && ln -s libct.so.4.0 libct.so.4)
(cd .libs && rm -f libct.so && ln -s libct.so.4.0 libct.so)
rm -fr .libs/libct.lax
mkdir .libs/libct.lax
rm -fr .libs/libct.lax/libtds.a
mkdir .libs/libct.lax/libtds.a
(cd .libs/libct.lax/libtds.a && ar x
/var/tmp/mwwsources/freetds-0.82/src/ctlib/../tds/.libs/libtds.a)
rm -fr .libs/libct.lax/libreplacements.a
mkdir .libs/libct.lax/libreplacements.a
(cd .libs/libct.lax/libreplacements.a && ar x
/var/tmp/mwwsources/freetds-0.82/src/ctlib/../replacements/.libs/libreplacem
ents.a)
ar cru .libs/libct.a ct.o cs.o blk.o ctutil.o
.libs/libct.lax/libtds.a/mem.o .libs/libct.lax/libtds.a/token.o
.libs/libct.lax/libtds.a/util.o .libs/libct.lax/libtds.a/login.o
.libs/libct.lax/libtds.a/read.o .libs/libct.lax/libtds.a/write.o
.libs/libct.lax/libtds.a/convert.o .libs/libct.lax/libtds.a/numeric.o
.libs/libct.lax/libtds.a/config.o .libs/libct.lax/libtds.a/query.o
.libs/libct.lax/libtds.a/iconv.o .libs/libct.lax/libtds.a/locale.o
.libs/libct.lax/libtds.a/challenge.o .libs/libct.lax/libtds.a/threadsafe.o
.libs/libct.lax/libtds.a/vstrbuild.o .libs/libct.lax/libtds.a/md4.o
.libs/libct.lax/libtds.a/md5.o .libs/libct.lax/libtds.a/des.o
.libs/libct.lax/libtds.a/tdsstring.o .libs/libct.lax/libtds.a/getmac.o
.libs/libct.lax/libtds.a/data.o .libs/libct.lax/libtds.a/net.o
.libs/libct.lax/libtds.a/tds_checks.o .libs/libct.lax/libtds.a/log.o
.libs/libct.lax/libtds.a/gssapi.o .libs/libct.lax/libreplacements.a/iconv.o
.libs/libct.lax/libreplacements.a/gettimeofday.o
.libs/libct.lax/libreplacements.a/asprintf.o
.libs/libct.lax/libreplacements.a/vasprintf.o
.libs/libct.lax/libreplacements.a/readpassphrase.o
.libs/libct.lax/libreplacements.a/strlcpy.o
.libs/libct.lax/libreplacements.a/strlcat.o
ranlib .libs/libct.a
rm -fr .libs/libct.lax .libs/libct.lax
creating libct.la
(cd .libs && rm -f libct.la && ln -s ../libct.la libct.la)


I couldn't find a libct.sl on there.




-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Frediano Ziglio
Sent: Tuesday, February 10, 2009 1:30 AM
To: FreeTDS Development Group
Subject: Re: [freetds] Getting it to all work on HPUX

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
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds





Archive powered by MHonArc 2.6.24.

Top of Page