Skip to Content.
Sympa Menu

freetds - Compiling on Solaris 2.6

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: jbravo102 AT yahoo.com
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Compiling on Solaris 2.6
  • Date: Thu, 8 Mar 2001 14:03:16 -0500


Hello,

I seem to have hit a wall trying to compile freetds-0.51 on a Solaris 2.6
Sparc station. Do I require a patch to fix these problems? If so,
where can I find one?

Thanks in advance.
SJD

I run the following configure command which seems to work fine:
./configure --prefix=/usr/local/freetds --enable-msdblib --enable-dbmfix
--with-tdsver=7.0
I receive the following output:

creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -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... missing
checking for gcc... /usr/local/bin/g++
checking whether the C compiler (/usr/local/bin/g++ ) works... yes
checking whether the C compiler (/usr/local/bin/g++ ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether /usr/local/bin/g++ accepts -g... yes
checking how to run the C preprocessor... /usr/local/bin/g++ -E
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... ./install-sh -c
checking for ranlib... ranlib
checking host system type... sparc-sun-solaris2.6
checking build system type... sparc-sun-solaris2.6
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for /usr/local/bin/g++ option to produce PIC... -fPIC
checking if /usr/local/bin/g++ PIC flag -fPIC works... yes
checking if /usr/local/bin/g++ supports -c -o file.o... yes
checking if /usr/local/bin/g++ supports -c -o file.lo... yes
checking if /usr/local/bin/g++ supports -fno-rtti -fno-exceptions ... yes
checking if /usr/local/bin/g++ static flag -static works... -static
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
yes
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.6 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for socket in -lsocket... no
checking for ANSI C header files... yes
checking is FIONBIO defined... need -DBSD_COMP
checking whether byte ordering is bigendian... yes
updating cache ./config.cache
creating ./config.status
creating include/tdsver.h
creating Makefile
creating include/Makefile
creating src/Makefile
creating src/tds/Makefile
creating src/tds/unittests/Makefile
creating src/dblib/Makefile
creating src/dblib/unittests/Makefile
creating src/ctlib/Makefile
creating src/ctlib/unittests/Makefile
creating src/server/Makefile
creating src/odbc/Makefile

When I run make, i receive:

# make
Making all in include
make[1]: Entering directory `/export/home/zip/freetds-0.51/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/export/home/zip/freetds-0.51/include'
Making all in src
make[1]: Entering directory `/export/home/zip/freetds-0.51/src'
Making all in tds
make[2]: Entering directory `/export/home/zip/freetds-0.51/src/tds'
Making all in unittests
make[3]: Entering directory
`/export/home/zip/freetds-0.51/src/tds/unittests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/export/home/zip/freetds-0.51/src/tds/unittests'
/bin/sh ../../libtool --mode=compile /usr/local/bin/g++
-DPACKAGE=\"freetds\" -DVERSION=\"0.51\" -DSTDC_HEADERS=1 -DBSD_COMP=1
-DWORDS_BIGENDIAN=1 -I. -I. -I../../include -g -O2 -DTDS70 -DMSDBLIB
-DDBMFIX -c mem.c
rm -f .libs/mem.lo
/usr/local/bin/g++ "-DPACKAGE=\"freetds\"" "-DVERSION=\"0.51\""
-DSTDC_HEADERS=1 -DBSD_COMP=1 -DWORDS_BIGENDIAN=1 -I. -I. -I../../include
-g -O2 -DTDS70 -DMSDBLIB -DDBMFIX -c -fPIC -DPIC mem.c -o .libs/mem.lo
/usr/local/bin/g++ "-DPACKAGE=\"freetds\"" "-DVERSION=\"0.51\""
-DSTDC_HEADERS=1 -DBSD_COMP=1 -DWORDS_BIGENDIAN=1 -I. -I. -I../../include
-g -O2 -DTDS70 -DMSDBLIB -DDBMFIX -c mem.c -o mem.o >/dev/null 2>&1
mv -f .libs/mem.lo mem.lo
/bin/sh ../../libtool --mode=compile /usr/local/bin/g++
-DPACKAGE=\"freetds\" -DVERSION=\"0.51\" -DSTDC_HEADERS=1 -DBSD_COMP=1
-DWORDS_BIGENDIAN=1 -I. -I. -I../../include -g -O2 -DTDS70 -DMSDBLIB
-DDBMFIX -c token.c
rm -f .libs/token.lo
/usr/local/bin/g++ "-DPACKAGE=\"freetds\"" "-DVERSION=\"0.51\""
-DSTDC_HEADERS=1 -DBSD_COMP=1 -DWORDS_BIGENDIAN=1 -I. -I. -I../../include
-g -O2 -DTDS70 -DMSDBLIB -DDBMFIX -c -fPIC -DPIC token.c -o
.libs/token.lo
token.c: In function `int tds_process_default_tokens(TDSSOCKET *, int)':
token.c:94: implicit declaration of function `int tds_get_int(...)'
token.c: In function `int tds_process_col_info(TDSSOCKET *)':
token.c:464: ANSI C++ forbids implicit conversion from `void *' in
assignment
token.c: In function `int tds7_process_result(TDSSOCKET *)':
token.c:638: ANSI C++ forbids implicit conversion from `void *' in
assignment
token.c: In function `int tds_process_result(TDSSOCKET *)':
token.c:716: ANSI C++ forbids implicit conversion from `void *' in
assignment
token.c: In function `int tds_process_row(TDSSOCKET *)':
token.c:871: ANSI C++ forbids implicit conversion from `void *' in
assignment
token.c: In function `int tds_client_msg(TDSSOCKET *, int, int, int, int,
char *)':
token.c:964: too many arguments to function
token.c: In function `int tds_submit_query(TDSSOCKET *, char *)':
token.c:1024: passing `unsigned char *' as argument 2 of
`tds7_ascii2unicode(const char *, char *, int)' changes signedness
token.c: In function `int tds_process_msg(TDSSOCKET *, int)':
token.c:1223: too many arguments to function
token.c:1225: too many arguments to function
make[2]: *** [token.lo] Error 1
make[2]: Leaving directory `/export/home/zip/freetds-0.51/src/tds'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/zip/freetds-0.51/src'
make: *** [all-recursive] Error 1




Archive powered by MHonArc 2.6.24.

Top of Page