freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Installing on MacOSX (Panther) woes....
- From: Frediano Ziglio <freddyz77 AT tin.it>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Installing on MacOSX (Panther) woes....
- Date: Mon, 28 Jun 2004 21:05:59 +0200
Il lun, 2004-06-28 alle 20:02, Craig Jurney ha scritto:
> Freddy,
>
> Following advice from Daniel I was able to build from the current
> (nightly, freetds-0.63.dev.20040628) build this morning like so (I
> don't need odbc right now) --
>
> ./configure --disable-odbc && make && sudo make install
>
> But if I try it without disabling odbc, the build fails like so --
>
> [snip]
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -DIODBC -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -g -O2
> -MT odbc_checks.lo -MD -MP -MF .deps/odbc_checks.Tpo -c odbc_checks.c
> -fno-common -DPIC -o .libs/odbc_checks.o
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -DIODBC -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -g -O2
> -MT odbc_checks.lo -MD -MP -MF .deps/odbc_checks.Tpo -c odbc_checks.c
> -o odbc_checks.o >/dev/null 2>&1
Ok
> /bin/sh ../../libtool --mode=link gcc -g -O2 -o libtdsodbc.la -rpath
> /usr/local/lib -export-symbols-regex '^(SQL|ODBCINST).*' -module
> odbc.lo connectparams.lo convert_tds2sql.lo descriptor.lo
> prepare_query.lo odbc_util.lo native.lo sql2tds.lo error.lo
> odbc_checks.lo ../tds/libtds_objects.la -liodbcinst -liconv
> ../replacements/libreplacements.la -static-libgcc
I don't understand why iodbc library is not included...
-module seems required (so iodbc can load driver).
> generating symbol list for `libtdsodbc.la'
> /usr/bin/nm -p .libs/odbc.o .libs/connectparams.o
> .libs/convert_tds2sql.o .libs/descriptor.o .libs/prepare_query.o
> .libs/odbc_util.o .libs/native.o .libs/sql2tds.o .libs/error.o
> .libs/odbc_checks.o ../tds/.libs/libtds_objects.a
> ../replacements/.libs/libreplacements.a | sed -n -e 's/^.*[
> ]\([BCDEGRST][BCDEGRST]*\)[ ][
> ]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | /usr/bin/sed 's/.*
> //' | sort | uniq > .libs/libtdsodbc.exp
> grep -E -e "^(SQL|ODBCINST).*" ".libs/libtdsodbc.exp" >
> ".libs/libtdsodbc.expT"
> mv -f ".libs/libtdsodbc.expT" ".libs/libtdsodbc.exp"
> sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," <
> .libs/libtdsodbc.exp > .libs/libtdsodbc-symbols.expsym
Here it build symbol list (not used...)
> gcc -flat_namespace -undefined suppress -o .libs/libtdsodbc.0.0.so
> -bundle .libs/odbc.o .libs/connectparams.o .libs/convert_tds2sql.o
> .libs/descriptor.o .libs/prepare_query.o .libs/odbc_util.o
> .libs/native.o .libs/sql2tds.o .libs/error.o .libs/odbc_checks.o
> -all_load ../tds/.libs/libtds_objects.a
> ../replacements/.libs/libreplacements.a -liodbcinst
> /usr/lib/libiconv.dylib
Again, no -liodbc. However the problem is that linker did not find
bundle1.o !!! It should find it (it's in /usr/lib). Try to add a
-L/usr/lib. Some weeks ago I compiled without changes under Mac OS X
10.2 (from Sourceforge compile farm).
> ld: can't locate file for: -lbundle1.o
> make[3]: *** [libtdsodbc.la] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> Craig
>
freddy77
-
[freetds] Installing on MacOSX (Panther) woes....,
Craig Jurney, 06/24/2004
- [freetds] Re: Installing on MacOSX (Panther) woes...., Daniel Fazekas, 06/24/2004
- <Possible follow-up(s)>
-
RE: [freetds] Installing on MacOSX (Panther) woes....,
Lowden, James K, 06/24/2004
- Re: [freetds] Installing on MacOSX (Panther) woes...., Pete Prodoehl, 06/24/2004
-
RE: [freetds] Installing on MacOSX (Panther) woes....,
Lowden, James K, 06/24/2004
-
Re: [freetds] Installing on MacOSX (Panther) woes....,
Daniel Fazekas, 06/24/2004
- Re: [freetds] Installing on MacOSX (Panther) woes...., freddyz77, 06/25/2004
-
Re: [freetds] Installing on MacOSX (Panther) woes....,
Daniel Fazekas, 06/24/2004
-
RE: [freetds] Installing on MacOSX (Panther) woes....,
ZIGLIO, Frediano, VF-IT, 06/25/2004
-
Re: [freetds] Installing on MacOSX (Panther) woes....,
Craig Jurney, 06/28/2004
- Re: [freetds] Installing on MacOSX (Panther) woes...., Frediano Ziglio, 06/28/2004
-
Re: [freetds] Installing on MacOSX (Panther) woes....,
Craig Jurney, 06/28/2004
Archive powered by MHonArc 2.6.24.