Skip to Content.
Sympa Menu

freetds - RE: Shared libraries not installing on AIX

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: RWilbert AT exchange.webmd.net
  • To: freetds AT franklin.metalab.unc.edu
  • Subject: RE: Shared libraries not installing on AIX
  • Date: Thu, 31 Oct 2002 14:27:32 -0500


Thanks for the quick response.

make install throws no errors.
and here is what is in $SYBASE/lib

bash-2.05# ls -l /usr/local/freetds/lib
total 3832
-rwxr-xr-x 1 root system 630040 Oct 31 12:39 libct.a
-rwxr-xr-x 1 root system 687 Oct 31 12:39 libct.la
-rwxr-xr-x 1 root system 731428 Oct 31 12:39 libsybdb.a
-rwxr-xr-x 1 root system 702 Oct 31 12:39 libsybdb.la
-rwxr-xr-x 1 root system 484061 Oct 31 12:39 libtds.a
-rwxr-xr-x 1 root system 692 Oct 31 12:39 libtds.la
-rwxr-xr-x 1 root system 90392 Oct 31 12:39 libtdssrv.a
-rwxr-xr-x 1 root system 693 Oct 31 12:39 libtdssrv.la

I added /usr/local/freetds/lib to the LD_LIBRARY_PATH and that did not help.

I does look like make is building them because there are *.so.o files in
$SRC/*/.lib/. I am stumped as to why it is not copying them over to
$SYBASE/.

##########################################################################
bash-2.05# ls -l */.libs/
apps/.libs/:
total 640
-rwxr-xr-x 1 root system 165662 Oct 31 12:37 freebcp
-rwxr-xr-x 1 root system 155875 Oct 31 12:37 tsql

ctlib/.libs/:
total 2952
-rw-r--r-- 1 root system 49079 Oct 31 12:37 blk.o
-rw-r--r-- 1 root system 58628 Oct 31 12:37 cs.o
-rw-r--r-- 1 root system 88254 Oct 31 12:37 ct.o
-rw-r--r-- 1 root system 47881 Oct 31 12:37 ctutil.o
-rw-r--r-- 1 root system 630040 Oct 31 12:37 libct.a
-rw-r--r-- 1 root system 2864 Oct 31 12:37 libct.exp
lrwxrwxrwx 1 root system 11 Oct 31 12:37 libct.la ->
../libct.la
-rw-r--r-- 1 root system 687 Oct 31 12:37 libct.lai
-rwxr-xr-x 1 root system 619277 Oct 31 12:37 libct.so.o

dblib/.libs/:
total 3696
-rw-r--r-- 1 root system 110238 Oct 31 12:37 bcp.o
-rw-r--r-- 1 root system 164264 Oct 31 12:37 dblib.o
-rw-r--r-- 1 root system 47412 Oct 31 12:37 dbutil.o
-rw-r--r-- 1 root system 731428 Oct 31 12:37 libsybdb.a
-rw-r--r-- 1 root system 4264 Oct 31 12:37 libsybdb.exp
lrwxrwxrwx 1 root system 14 Oct 31 12:37 libsybdb.la ->
../libsybdb.la
-rw-r--r-- 1 root system 702 Oct 31 12:37 libsybdb.lai
-rwxr-xr-x 1 root system 715443 Oct 31 12:37 libsybdb.so.o
-rw-r--r-- 1 root system 48025 Oct 31 12:37 rpc.o
-rw-r--r-- 1 root system 52029 Oct 31 12:37 xact.o

server/.libs/:
total 680
-rw-r--r-- 1 root system 90392 Oct 31 12:37 libtdssrv.a
-rw-r--r-- 1 root system 294 Oct 31 12:37 libtdssrv.exp
lrwxrwxrwx 1 root system 15 Oct 31 12:37 libtdssrv.la ->
../libtdssrv.la
-rw-r--r-- 1 root system 693 Oct 31 12:37 libtdssrv.lai
-rwxr-xr-x 1 root system 88203 Oct 31 12:37 libtdssrv.so.o
-rw-r--r-- 1 root system 51040 Oct 31 12:37 login.o
-rw-r--r-- 1 root system 43482 Oct 31 12:37 query.o
-rw-r--r-- 1 root system 54986 Oct 31 12:37 server.o

tds/.libs/:
total 3680
-rw-r--r-- 1 root system 30222 Oct 31 12:37 asprintf.o
-rw-r--r-- 1 root system 40553 Oct 31 12:37 challenge.o
-rw-r--r-- 1 root system 76639 Oct 31 12:37 config.o
-rw-r--r-- 1 root system 121645 Oct 31 12:37 convert.o
-rw-r--r-- 1 root system 47699 Oct 31 12:37 iconv.o
-rw-r--r-- 1 root system 484061 Oct 31 12:37 libtds.a
-rw-r--r-- 1 root system 2283 Oct 31 12:37 libtds.exp
lrwxrwxrwx 1 root system 12 Oct 31 12:37 libtds.la ->
../libtds.la
-rw-r--r-- 1 root system 692 Oct 31 12:37 libtds.lai
-rwxr-xr-x 1 root system 475105 Oct 31 12:37 libtds.so.o
-rw-r--r-- 1 root system 46785 Oct 31 12:37 locale.o
-rw-r--r-- 1 root system 66304 Oct 31 12:37 login.o
-rw-r--r-- 1 root system 65074 Oct 31 12:37 mem.o
-rw-r--r-- 1 root system 46316 Oct 31 12:37 numeric.o
-rw-r--r-- 1 root system 50005 Oct 31 12:37 query.o
-rw-r--r-- 1 root system 53112 Oct 31 12:37 read.o
-rw-r--r-- 1 root system 46036 Oct 31 12:37 threadsafe.o
-rw-r--r-- 1 root system 88513 Oct 31 12:37 token.o
-rw-r--r-- 1 root system 54284 Oct 31 12:37 util.o
-rw-r--r-- 1 root system 52237 Oct 31 12:37
write.o#####################################################################
########

I tried coping the *.so.o files to $SYBASE/lib/*.so (Poke It With A Stick)
and that also failed.





-----Original Message-----
From: Lowden, James K [mailto:LowdenJK AT bernstein.com]
Sent: Thursday, October 31, 2002 1:24 PM
To: TDS Development Group
Subject: [freetds] RE: Shared libraries not installing on AIX


> From: rogerw AT webmd.net [mailto:rogerw AT webmd.net]
> Sent: October 31, 2002 12:47 PM
>
> I am having trouble getting the shared libraries installed on
> AIX. From
> what I can see make is building them, but 'make install' does not copy
> them over to $SYBASE/lib directory.

That's true. "make install" will put the libraries in PREFIX/lib, where
"PREFIX" is determined by --with-prefix when you run the configure script.
It's /usr/local by default.

> After a make install it does not have any .so file or links
> to those files

What says "ls -l /usr/local/freetds/lib" and does "make install" return any
errors?

> LD_LIBRARY_PATH=/usr/local/freetds:/usr/local/lib

Is that right? I would expect /usr/local/freetds/lib:[...]

--jkl

> Can someone point out what I am missing or what file should be where ?
> TIA
>
>
> Some other info:
> Freetds version 0.60
> gcc for compiling (although I get the same using AIX's cc)
> SYBASE=/usr/local/freetds
> LD_LIBRARY_PATH=/usr/local/freetds:/usr/local/lib
> configure: ./configure --enable-shared --prefix=/usr/local/freetds
> --with-tdsver=4.2 --with-tdsver=5.0 --with-tdsver=7.0
>
> from the configure:
> checking whether the linker (/usr/bin/ld) supports shared
> libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... no
> checking dynamic linker characteristics... aix4.3.3.0 ld.so
> checking command to parse /usr/bin/nm -B output... ok
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
>
>
> from make:
> gcc -shared -o .libs/libct.so.o .libs/ct.o .libs/cs.o .libs/blk.o
> .libs/ctutil.o ../tds/.libs/mem.o ../tds/.libs/token.o ../tds
> /.libs/util.o ../tds/.libs/login.o ../tds/.libs/read.o
> ../tds/.libs/write.o ../tds/.libs/convert.o
> ../tds/.libs/numeric.o ../tds
> /.libs/config.o ../tds/.libs/query.o ../tds/.libs/iconv.o
> ../tds/.libs/locale.o ../tds/.libs/threadsafe.o ../tds/.libs/challenge
> .o -lnsl -liconv -lc -Wl,-bE:.libs/libct.exp -Wl,-bnoentry
> ${wl}-berok
> ar cru .libs/libct.a .libs/libct.so.o
> creating libct.la
> (cd .libs && rm -f libct.la && ln -s ../libct.la libct.la)
> Target "all-am" is up to date.
> Target "all" is up to date.
>
> There are no listings of libct.so or any so files in the
> 'make install'
>
> and in /usr/local/freetds I have
> bash-2.05# find ./ -name "*so*"
> ./include/tdsodbc.h
>
>
>
>
>
>
> ---
> You are currently subscribed to freetds as: [LowdenJK AT bernstein.com]
> To unsubscribe, forward this message to
> $subst('Email.Unsub')
>


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.



---
You are currently subscribed to freetds as: [rogerw AT webmd.net]
To unsubscribe, forward this message to
$subst('Email.Unsub')




Archive powered by MHonArc 2.6.24.

Top of Page