On Mon, Dec 20, 2010 at 03:19:02PM +1100, Adwin Singh wrote:
> Hi All,
>
> We've double checked. The --with-unixodbc option is not on by default,
> so was not in the original freetds installation. We have rebuilt but
> hitting an issue because the software assumes "malloc_options" is always
> available. Issue is that "malloc_options" is only available on FreeBSD
> and Linux, not Solaris.
>
> FYI we are running Solaris SPARC 64bit. Is it possible to get around
> this issue or get a precompiled version for Solaris ?
...
> root@ofdev # LDFLAGS=-L/opt/csw/lib CFLAGS=-I/opt/csw/include
> ./configure --with-unixodbc=/opt/csw/lib --prefix=/opt/freetds/
>
> This fails because of an assumption within the freetds software that
> "malloc_options" is always available.
>
> configure:20732: checking whether malloc_options variable is present
> configure:20758: cc -o conftest -I/opt/csw/include
> -D_FREETDS_LIBRARY_SOURCE -L/opt/csw/lib -lmalloc conftest.c -lpthread
> >&5
> Undefined first referenced
> symbol in file
> malloc_options conftest.o
Adwin, the configure script is generated by these tools:
autoconf (GNU Autoconf) 2.59
automake (GNU automake) 1.9.5
ltmain.sh (GNU libtool) 1.5.24 (1.1220.2.455 2007/06/24 02:13:29)
My guess: the autoconf/libtool used is too old for your setup.
Your options:
1. Install above tools, get source from CVS, and build your own tarball with "make dist". You can do this on any system; I use NetBSD.
2. Hack the configure script to bypass that test, since it's obviously spurious in your environment.
3. Borrow a binary.
4. Hope for an updated tarball.
If you go with option #1 and succeed, please mention it here on the list. It would be incentive for option #4.
HTH.
--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.