Skip to Content.
Sympa Menu

freetds - RE: [freetds] Mac OSX make error Undefined symbols

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Mac OSX make error Undefined symbols
  • Date: Thu, 23 Oct 2003 12:33:00 +0200

>
> Hi All,
>
> I am trying to install freetds on Mac-OSX for the past few
> days with no success. Anyways, as each day passon, I feel
> like I am more closer to the solution.
>
> This is what I have done till now.
>
> dowloaded current version(CVS) of freetds from
> ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/current/freetds-
> current.tgz
>
> Installed the following to /usr/local/bin
>
> automake (GNU automake) 1.7.3
> autoconf (GNU Autoconf) 2.57
> libiconv-1.9.1
>
> Then changed the PATH variable such that /usr/local/bin come
> before /usr/bin (this folder have got the defaul apple older
> versions). Then applied the 'patch' available from
> http://www.lilback.com/misc/ltmain.diff to
> /usr/share/libtool/ltmain.sh Ran ln -s /usr/bin/glibtoolize
> /usr/local/bin/libtoolize
>
> Then
> ./autogen.sh --with-iodbc --with-tdsver=8.0
> --with-libiconv-prefix=/usr/loca l/ --with-pic
> --enable-msdblib --enable-shared --disable-static
> --disable-th readsafe
>
> And this is what I got...
>
> processing .
> Running libtoolize...
> You should update your `aclocal.m4' by running aclocal.
> Running aclocal ...
> aclocal: configure.in: 54: macro `AM_PROG_LIBTOOL' not found
> in library <lots of config here....> <something that i
> thought have relation with the following make result here>
> checking for SQLGetPrivateProfileString in -liodbcinst... yes
> checking threadsafety... disabled checking for which type of
> gethostbyname_r... six checking for which type of
> getservbyname_r... six checking for which type of
> gethostbyaddr_r... seven checking for which type of
> getpwuid_r... five checking for which type of localtime_r... struct
>
> Then I ran make and got this
> <lots of stuffs here....>
> depmode=gcc /bin/sh ../../depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIB
> RARY_SOURCE -DIODBC -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
> -Wall -Wstrict-pro totypes -Wmissing-prototypes
> -Wno-long-long -g -O2 -c `test -f 'tsql.c' || echo './'`tsql.c
> /bin/sh ../../libtool --mode=link gcc -g -O2 -o tsql
> tsql.o -lncurses
> ../tds/libtds.la
> mkdir .libs
> gcc -g -O2 -o .libs/tsql
> tsql.o -lncurses -L../tds/.libs -ltds -L/usr/local/lib -liconv
> ld: Undefined symbols:
> _gethostbyaddr_r
> _gethostbyname_r
> _getservbyname_r
> make[2]: *** [tsql] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>

I fixed detection on Max OS X (see patch) and libtool 1.5.5 should avoid
patch. If you want I can send you a snapshot (privately) so you can make
a test (without autogen, only configure) ...

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page