[freetds] Installing on MacOSX (Panther) woes....

Frediano Ziglio freddyz77 at tin.it
Mon Jun 28 15:05:59 EDT 2004


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





More information about the FreeTDS mailing list