Skip to Content.
Sympa Menu

freetds - Re: ld error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: ld error
  • Date: Mon, 19 Nov 2001 18:51:05 -0500 (EST)


The ODBC driver (and only the ODBC driver) requires glib
(http://www.gtk.org), the non-graphical piece of gtk. It's a library of
convience routines for C (things like dynamically sized arrays, hashes,
that sort of thing). Grab it and install (or there's probably a slack
package of it).

Brian

On Mon, 19 Nov 2001, giuliano tarallo wrote:

> on my slack 8.0 box
> with freetds-current
> I do:
>
> ./configure --with-tdsver=4.2 --with-unixodbc=/usr/local
> export LTCONFIG_VERSION='1.3.3.'
> make
>
> and I obtain
>
> ...
>
> Making all in odbc
> make[2]: Entering directory `/root/freetds/src/odbc'
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include `glib-config --cflags glib`
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -c odbc.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -Wp,-MD,.deps/odbc.pp -c
> -fPIC -DPIC odbc.c -o odbc.o
> odbc.c: In function `SQLBindParameter':
> odbc.c:401: warning: assignment from incompatible pointer type
> odbc.c: In function `SQLBindCol':
> odbc.c:508: warning: assignment from incompatible pointer type
> mv -f odbc.o .libs/odbc.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -Wp,-MD,.deps/odbc.pp -c
> odbc.c -o odbc.o >/dev/null 2>&1
> mv -f .libs/odbc.lo odbc.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include `glib-config --cflags glib`
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -c connectparams.c
> rm -f .libs/connectparams.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC
> -Wp,-MD,.deps/connectparams.pp -c -fPIC -DPIC connectparams.c -o
> connectparams.o
> mv -f connectparams.o .libs/connectparams.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC
> -Wp,-MD,.deps/connectparams.pp -c connectparams.c -o connectparams.o
> >/dev/null 2>&1
> mv -f .libs/connectparams.lo connectparams.lo
> /bin/sh ../../libtool --mode=link gcc -g -O2 -DTDS42 -DUNIXODBC -o
> libtdsodbc.la -rpath /usr/local/freetds/lib odbc.lo connectparams.lo
> ../tds/mem.lo ../tds/token.lo ../tds/util.lo ../tds/login.lo
> ../tds/read.lo ../tds/write.lo ../tds/convert.lo ../tds/numeric.lo
> ../tds/config.lo ../tds/query.lo ../tds/iconv.lo -lglib
> rm -fr .libs/libtdsodbc.la .libs/libtdsodbc.* .libs/libtdsodbc.*
> gcc -shared odbc.lo connectparams.lo ../tds/mem.lo ../tds/token.lo
> ../tds/util.lo ../tds/login.lo ../tds/read.lo ../tds/write.lo
> ../tds/convert.lo ../tds/numeric.lo ../tds/config.lo ../tds/query.lo
> ../tds/iconv.lo -lglib -lc -Wl,-soname -Wl,libtdsodbc.so.0 -o
> .libs/libtdsodbc.so.0.0.0
> /usr/lib/gcc-lib/i386-slackware-linux/3.0.2/../../../../i386-slackware-linux/bin/ld:
> cannot find -lglib
> collect2: ld returned 1 exit status
> make[2]: *** [libtdsodbc.la] Error 1
> make[2]: Leaving directory `/root/freetds/src/odbc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/freetds/src'
> make: *** [all-recursive] Error 1
>
> please, help me.
>
>
> ******* make output start **********************************
> Making all in include
> make[1]: Entering directory `/root/freetds/include'
> Making tds_configs.h
> make[1]: Leaving directory `/root/freetds/include'
> Making all in src
> make[1]: Entering directory `/root/freetds/src'
> Making all in tds
> make[2]: Entering directory `/root/freetds/src/tds'
> Making all in unittests
> make[3]: Entering directory `/root/freetds/src/tds/unittests'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/root/freetds/src/tds/unittests'
> make[3]: Entering directory `/root/freetds/src/tds'
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c mem.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/mem.pp -c -fPIC -DPIC mem.c -o mem.o
> mv -f mem.o .libs/mem.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/mem.pp -c mem.c -o mem.o >/dev/null 2>&1
> mv -f .libs/mem.lo mem.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c token.c
> rm -f .libs/token.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/token.pp -c -fPIC -DPIC token.c -o token.o
> mv -f token.o .libs/token.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/token.pp -c token.c -o token.o >/dev/null 2>&1
> mv -f .libs/token.lo token.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c util.c
> rm -f .libs/util.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/util.pp -c -fPIC -DPIC util.c -o util.o
> mv -f util.o .libs/util.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/util.pp -c util.c -o util.o >/dev/null 2>&1
> mv -f .libs/util.lo util.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c login.c
> rm -f .libs/login.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/login.pp -c -fPIC -DPIC login.c -o login.o
> mv -f login.o .libs/login.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/login.pp -c login.c -o login.o >/dev/null 2>&1
> mv -f .libs/login.lo login.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c read.c
> rm -f .libs/read.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/read.pp -c -fPIC -DPIC read.c -o read.o
> mv -f read.o .libs/read.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/read.pp -c read.c -o read.o >/dev/null 2>&1
> mv -f .libs/read.lo read.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c write.c
> rm -f .libs/write.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/write.pp -c -fPIC -DPIC write.c -o write.o
> mv -f write.o .libs/write.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/write.pp -c write.c -o write.o >/dev/null 2>&1
> mv -f .libs/write.lo write.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c convert.c
> rm -f .libs/convert.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/convert.pp -c -fPIC -DPIC convert.c -o convert.o
> mv -f convert.o .libs/convert.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/convert.pp -c convert.c -o convert.o >/dev/null
> 2>&1
> mv -f .libs/convert.lo convert.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c numeric.c
> rm -f .libs/numeric.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/numeric.pp -c -fPIC -DPIC numeric.c -o numeric.o
> mv -f numeric.o .libs/numeric.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/numeric.pp -c numeric.c -o numeric.o >/dev/null
> 2>&1
> mv -f .libs/numeric.lo numeric.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c config.c
> rm -f .libs/config.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/config.pp -c -fPIC -DPIC config.c -o config.o
> mv -f config.o .libs/config.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/config.pp -c config.c -o config.o >/dev/null 2>&1
> mv -f .libs/config.lo config.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c query.c
> rm -f .libs/query.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/query.pp -c -fPIC -DPIC query.c -o query.o
> mv -f query.o .libs/query.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/query.pp -c query.c -o query.o >/dev/null 2>&1
> mv -f .libs/query.lo query.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c iconv.c
> rm -f .libs/iconv.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/iconv.pp -c -fPIC -DPIC iconv.c -o iconv.o
> mv -f iconv.o .libs/iconv.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/iconv.pp -c iconv.c -o iconv.o >/dev/null 2>&1
> mv -f .libs/iconv.lo iconv.lo
> /bin/sh ../../libtool --mode=link gcc -g -O2 -DTDS42 -DUNIXODBC -o
> libtds.la -rpath /usr/local/freetds/lib mem.lo token.lo util.lo login.lo
> read.lo write.lo convert.lo numeric.lo config.lo query.lo iconv.lo
> rm -fr .libs/libtds.la .libs/libtds.* .libs/libtds.*
> gcc -shared mem.lo token.lo util.lo login.lo read.lo write.lo convert.lo
> numeric.lo config.lo query.lo iconv.lo -lc -Wl,-soname -Wl,libtds.so.0
> -o .libs/libtds.so.0.0.0
> (cd .libs && rm -f libtds.so.0 && ln -s libtds.so.0.0.0 libtds.so.0)
> (cd .libs && rm -f libtds.so && ln -s libtds.so.0.0.0 libtds.so)
> ar cru .libs/libtds.a mem.o token.o util.o login.o read.o write.o
> convert.o numeric.o config.o query.o iconv.o
> ranlib .libs/libtds.a
> creating libtds.la
> (cd .libs && rm -f libtds.la && ln -s ../libtds.la libtds.la)
> make[3]: Leaving directory `/root/freetds/src/tds'
> make[2]: Leaving directory `/root/freetds/src/tds'
> Making all in ctlib
> make[2]: Entering directory `/root/freetds/src/ctlib'
> Making all in unittests
> make[3]: Entering directory `/root/freetds/src/ctlib/unittests'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/root/freetds/src/ctlib/unittests'
> make[3]: Entering directory `/root/freetds/src/ctlib'
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c ct.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/ct.pp -c -fPIC -DPIC ct.c -o ct.o
> mv -f ct.o .libs/ct.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/ct.pp -c ct.c -o ct.o >/dev/null 2>&1
> mv -f .libs/ct.lo ct.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c cs.c
> rm -f .libs/cs.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/cs.pp -c -fPIC -DPIC cs.c -o cs.o
> mv -f cs.o .libs/cs.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/cs.pp -c cs.c -o cs.o >/dev/null 2>&1
> mv -f .libs/cs.lo cs.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c blk.c
> rm -f .libs/blk.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/blk.pp -c -fPIC -DPIC blk.c -o blk.o
> mv -f blk.o .libs/blk.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/blk.pp -c blk.c -o blk.o >/dev/null 2>&1
> mv -f .libs/blk.lo blk.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c ctutil.c
> rm -f .libs/ctutil.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/ctutil.pp -c -fPIC -DPIC ctutil.c -o ctutil.o
> mv -f ctutil.o .libs/ctutil.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/ctutil.pp -c ctutil.c -o ctutil.o >/dev/null 2>&1
> mv -f .libs/ctutil.lo ctutil.lo
> /bin/sh ../../libtool --mode=link gcc -g -O2 -DTDS42 -DUNIXODBC -o
> libct.la -rpath /usr/local/freetds/lib ct.lo cs.lo blk.lo ctutil.lo
> ../tds/mem.lo ../tds/token.lo ../tds/util.lo ../tds/login.lo
> ../tds/read.lo ../tds/write.lo ../tds/convert.lo ../tds/numeric.lo
> ../tds/config.lo ../tds/query.lo ../tds/iconv.lo
> rm -fr .libs/libct.la .libs/libct.* .libs/libct.*
> gcc -shared ct.lo cs.lo blk.lo ctutil.lo ../tds/mem.lo ../tds/token.lo
> ../tds/util.lo ../tds/login.lo ../tds/read.lo ../tds/write.lo
> ../tds/convert.lo ../tds/numeric.lo ../tds/config.lo ../tds/query.lo
> ../tds/iconv.lo -lc -Wl,-soname -Wl,libct.so.0 -o .libs/libct.so.0.0.0
> (cd .libs && rm -f libct.so.0 && ln -s libct.so.0.0.0 libct.so.0)
> (cd .libs && rm -f libct.so && ln -s libct.so.0.0.0 libct.so)
> ar cru .libs/libct.a ct.o cs.o blk.o ctutil.o ../tds/mem.o ../tds/token.o
> ../tds/util.o ../tds/login.o ../tds/read.o ../tds/write.o ../tds/convert.o
> ../tds/numeric.o ../tds/config.o ../tds/query.o ../tds/iconv.o
> ranlib .libs/libct.a
> creating libct.la
> (cd .libs && rm -f libct.la && ln -s ../libct.la libct.la)
> make[3]: Leaving directory `/root/freetds/src/ctlib'
> make[2]: Leaving directory `/root/freetds/src/ctlib'
> Making all in dblib
> make[2]: Entering directory `/root/freetds/src/dblib'
> Making all in unittests
> make[3]: Entering directory `/root/freetds/src/dblib/unittests'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/root/freetds/src/dblib/unittests'
> make[3]: Entering directory `/root/freetds/src/dblib'
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c dblib.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/dblib.pp -c -fPIC -DPIC dblib.c -o dblib.o
> mv -f dblib.o .libs/dblib.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/dblib.pp -c dblib.c -o dblib.o >/dev/null 2>&1
> mv -f .libs/dblib.lo dblib.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c dbutil.c
> rm -f .libs/dbutil.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/dbutil.pp -c -fPIC -DPIC dbutil.c -o dbutil.o
> mv -f dbutil.o .libs/dbutil.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/dbutil.pp -c dbutil.c -o dbutil.o >/dev/null 2>&1
> mv -f .libs/dbutil.lo dbutil.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c rpc.c
> rm -f .libs/rpc.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/rpc.pp -c -fPIC -DPIC rpc.c -o rpc.o
> mv -f rpc.o .libs/rpc.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/rpc.pp -c rpc.c -o rpc.o >/dev/null 2>&1
> mv -f .libs/rpc.lo rpc.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c bcp.c
> rm -f .libs/bcp.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/bcp.pp -c -fPIC -DPIC bcp.c -o bcp.o
> mv -f bcp.o .libs/bcp.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/bcp.pp -c bcp.c -o bcp.o >/dev/null 2>&1
> mv -f .libs/bcp.lo bcp.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include -g -O2 -DTDS42 -DUNIXODBC -c xact.c
> rm -f .libs/xact.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/xact.pp -c -fPIC -DPIC xact.c -o xact.o
> mv -f xact.o .libs/xact.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -DTDS42
> -DUNIXODBC -Wp,-MD,.deps/xact.pp -c xact.c -o xact.o >/dev/null 2>&1
> mv -f .libs/xact.lo xact.lo
> /bin/sh ../../libtool --mode=link gcc -g -O2 -DTDS42 -DUNIXODBC -o
> libsybdb.la -rpath /usr/local/freetds/lib -version-info 1 0 0 dblib.lo
> dbutil.lo rpc.lo bcp.lo xact.lo ../tds/mem.lo ../tds/token.lo
> ../tds/util.lo ../tds/login.lo ../tds/read.lo ../tds/write.lo
> ../tds/convert.lo ../tds/numeric.lo ../tds/config.lo ../tds/query.lo
> ../tds/iconv.lo
> rm -fr .libs/libsybdb.la .libs/libsybdb.* .libs/libsybdb.*
> gcc -shared dblib.lo dbutil.lo rpc.lo bcp.lo xact.lo ../tds/mem.lo
> ../tds/token.lo ../tds/util.lo ../tds/login.lo ../tds/read.lo
> ../tds/write.lo ../tds/convert.lo ../tds/numeric.lo ../tds/config.lo
> ../tds/query.lo ../tds/iconv.lo -lc -Wl,-soname -Wl,libsybdb.so.1 -o
> .libs/libsybdb.so.1.0.0
> (cd .libs && rm -f libsybdb.so.1 && ln -s libsybdb.so.1.0.0 libsybdb.so.1)
> (cd .libs && rm -f libsybdb.so && ln -s libsybdb.so.1.0.0 libsybdb.so)
> ar cru .libs/libsybdb.a dblib.o dbutil.o rpc.o bcp.o xact.o ../tds/mem.o
> ../tds/token.o ../tds/util.o ../tds/login.o ../tds/read.o ../tds/write.o
> ../tds/convert.o ../tds/numeric.o ../tds/config.o ../tds/query.o
> ../tds/iconv.o
> ranlib .libs/libsybdb.a
> creating libsybdb.la
> (cd .libs && rm -f libsybdb.la && ln -s ../libsybdb.la libsybdb.la)
> make[3]: Leaving directory `/root/freetds/src/dblib'
> make[2]: Leaving directory `/root/freetds/src/dblib'
> Making all in odbc
> make[2]: Entering directory `/root/freetds/src/odbc'
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include `glib-config --cflags glib`
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -c odbc.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -Wp,-MD,.deps/odbc.pp -c
> -fPIC -DPIC odbc.c -o odbc.o
> odbc.c: In function `SQLBindParameter':
> odbc.c:401: warning: assignment from incompatible pointer type
> odbc.c: In function `SQLBindCol':
> odbc.c:508: warning: assignment from incompatible pointer type
> mv -f odbc.o .libs/odbc.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -Wp,-MD,.deps/odbc.pp -c
> odbc.c -o odbc.o >/dev/null 2>&1
> mv -f .libs/odbc.lo odbc.lo
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include `glib-config --cflags glib`
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC -c connectparams.c
> rm -f .libs/connectparams.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC
> -Wp,-MD,.deps/connectparams.pp -c -fPIC -DPIC connectparams.c -o
> connectparams.o
> mv -f connectparams.o .libs/connectparams.lo
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> -I/usr/local//include -g -O2 -DTDS42 -DUNIXODBC
> -Wp,-MD,.deps/connectparams.pp -c connectparams.c -o connectparams.o
> >/dev/null 2>&1
> mv -f .libs/connectparams.lo connectparams.lo
> /bin/sh ../../libtool --mode=link gcc -g -O2 -DTDS42 -DUNIXODBC -o
> libtdsodbc.la -rpath /usr/local/freetds/lib odbc.lo connectparams.lo
> ../tds/mem.lo ../tds/token.lo ../tds/util.lo ../tds/login.lo
> ../tds/read.lo ../tds/write.lo ../tds/convert.lo ../tds/numeric.lo
> ../tds/config.lo ../tds/query.lo ../tds/iconv.lo -lglib
> rm -fr .libs/libtdsodbc.la .libs/libtdsodbc.* .libs/libtdsodbc.*
> gcc -shared odbc.lo connectparams.lo ../tds/mem.lo ../tds/token.lo
> ../tds/util.lo ../tds/login.lo ../tds/read.lo ../tds/write.lo
> ../tds/convert.lo ../tds/numeric.lo ../tds/config.lo ../tds/query.lo
> ../tds/iconv.lo -lglib -lc -Wl,-soname -Wl,libtdsodbc.so.0 -o
> .libs/libtdsodbc.so.0.0.0
> /usr/lib/gcc-lib/i386-slackware-linux/3.0.2/../../../../i386-slackware-linux/bin/ld:
> cannot find -lglib
> collect2: ld returned 1 exit status
> make[2]: *** [libtdsodbc.la] Error 1
> make[2]: Leaving directory `/root/freetds/src/odbc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/freetds/src'
> make: *** [all-recursive] Error 1
> ******* make output end **********************************
>
> ******* configure output start **********************************
> checking for a BSD compatible install... /usr/bin/ginstall -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for gcc... gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking how to run the C preprocessor... gcc -E
> checking whether make sets ${MAKE}... (cached) yes
> checking for a BSD compatible install... /usr/bin/ginstall -c
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for ld used by GCC... /usr/i386-slackware-linux/bin/ld
> checking if the linker (/usr/i386-slackware-linux/bin/ld) is GNU ld... yes
> checking for /usr/i386-slackware-linux/bin/ld option to reload object
> files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependant libraries... pass_all
> checking command to parse /usr/bin/nm -B output... ok
> checking for dlfcn.h... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc static flag -static works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo...
> checking if gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/i386-slackware-linux/bin/ld) supports
> shared libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking if libtool supports shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> creating libtool
> checking for iconv... yes
> checking for iconv declaration...
> extern size_t iconv (iconv_t cd, char * *inbuf, size_t
> *inbytesleft, char * *outbuf, size_t *outbytesleft);
> checking for socket in -lsocket... no
> checking for ANSI C header files... yes
> checking for malloc.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for unistd.h... yes
> checking for char... yes
> checking size of char... 1
> checking for short... yes
> checking size of short... 2
> checking for long... yes
> checking size of long... 4
> checking for int... yes
> checking size of int... 4
> checking for float... yes
> checking size of float... 4
> checking for double... yes
> checking size of double... 8
> checking is FIONBIO defined... yes
> checking whether byte ordering is bigendian... no
> configure: creating ./config.status
> config.status: creating include/tdsver.h
> config.status: creating include/tds.h
> config.status: creating Makefile
> config.status: creating include/Makefile
> config.status: creating src/Makefile
> config.status: creating src/tds/Makefile
> config.status: creating src/tds/unittests/Makefile
> config.status: creating src/dblib/Makefile
> config.status: creating src/dblib/unittests/Makefile
> config.status: creating src/ctlib/Makefile
> config.status: creating src/ctlib/unittests/Makefile
> config.status: creating src/server/Makefile
> config.status: creating src/odbc/Makefile
> config.status: creating include/config.h
> ******* configure output end **********************************
>
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>




  • Re: ld error, Brian Bruns, 11/19/2001
    • <Possible follow-up(s)>
    • ld error, giuliano tarallo, 11/19/2001

Archive powered by MHonArc 2.6.24.

Top of Page