Skip to Content.
Sympa Menu

freetds - [freetds] Can make freeTDS 0.82 on Solaris

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Richard Mo <richardyanmo AT gmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Can make freeTDS 0.82 on Solaris
  • Date: Sun, 21 Oct 2012 12:05:50 +0100

Hi -

I am having trouble to building freetds 0.82 on Solaris 10. I am using gcc
4.02 and Solaris default make and ld which is located at /usr/ccs/bin.


Here is the output of running ./configure:

checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for style of include used by make... GNU
checking for gcc... /opt/csw/gcc4/bin/gcc -m64
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/csw/gcc4/bin/gcc -m64 accepts -g... yes
checking for /opt/csw/gcc4/bin/gcc -m64 option to accept ANSI C... none
needed
checking dependency style of /opt/csw/gcc4/bin/gcc -m64... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for gcc... (cached) /opt/csw/gcc4/bin/gcc -m64
checking whether we are using the GNU C compiler... (cached) yes
checking whether /opt/csw/gcc4/bin/gcc -m64 accepts -g... (cached) yes
checking for /opt/csw/gcc4/bin/gcc -m64 option to accept ANSI C... (cached)
none needed
checking dependency style of /opt/csw/gcc4/bin/gcc -m64... (cached) gcc3
checking how to run the C preprocessor... /opt/csw/gcc4/bin/gcc -m64 -E
checking whether /opt/csw/gcc4/bin/gcc -m64 and cc understand -c and -o
together... yes
checking for a sed that does not truncate output... /opt/csw/bin/gsed
checking for egrep... egrep
checking for ld used by /opt/csw/gcc4/bin/gcc -m64... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/ccs/bin/nm -p output from
/opt/csw/gcc4/bin/gcc -m64 object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if /opt/csw/gcc4/bin/gcc -m64 static flag works... yes
checking if /opt/csw/gcc4/bin/gcc -m64 supports -fno-rtti
-fno-exceptions... no
checking for /opt/csw/gcc4/bin/gcc -m64 option to produce PIC... -fPIC
checking if /opt/csw/gcc4/bin/gcc -m64 PIC flag -fPIC works... yes
checking if /opt/csw/gcc4/bin/gcc -m64 supports -c -o file.o... yes
checking whether the /opt/csw/gcc4/bin/gcc -m64 linker (/usr/ccs/bin/ld)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
checking for windres... no
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... no, consider installing GNU libiconv
checking for doxygen... no


but when I run the make, I get the:


/opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT bcp.lo -MD
-MP -MF .deps/bcp.Tpo -c bcp.c -o bcp.o >/dev/null 2>&1

if /bin/bash ../../libtool --tag=CC --mode=compile /opt/csw/gcc4/bin/gcc
-DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -D_REENTRANT
-pthreads -m64 -Wdeclaration-after-statement -MT xact.lo -MD -MP -MF
".deps/xact.Tpo" -c -o xact.lo xact.c; \

then mv -f ".deps/xact.Tpo" ".deps/xact.Plo"; else rm -f ".deps/xact.Tpo";
exit 1; fi

/opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT xact.lo -MD
-MP -MF .deps/xact.Tpo -c xact.c -fPIC -DPIC -o .libs/xact.o

/opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT xact.lo -MD
-MP -MF .deps/xact.Tpo -c xact.c -o xact.o >/dev/null 2>&1

/bin/bash ../../libtool --tag=CC --mode=link /opt/csw/gcc4/bin/gcc
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -o
libsybdb.la-rpath /usr/local/lib -version-info 5:0:0
-export-symbols-regex
'^(db|bcp_|tdsdump_open|tdsdbopen|.*_xact|close_commit|open_commit|.?asprintf).*'
-Wl,-Bsymbolic dblib.lo dbutil.lo rpc.lo bcp.lo xact.lo
../tds/libtds.la../replacements/
libreplacements.la -lnsl -lsocket

generating symbol list for `libsybdb.la'

/usr/ccs/bin/nm -p .libs/dblib.o .libs/dbutil.o .libs/rpc.o .libs/bcp.o
.libs/xact.o ../tds/.libs/libtds.a ../replacements/.libs/libreplacements.a
| sed -n -e 's/^.*[ ]\([BDRT][BDRT]*\)[ ][
]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /opt/csw/bin/gsed 's/.* //' |
sort | uniq > .libs/libsybdb.exp

egrep -e
"^(db|bcp_|tdsdump_open|tdsdbopen|.*_xact|close_commit|open_commit|.?asprintf).*"
".libs/libsybdb.exp" > ".libs/libsybdb.expT"

mv -f ".libs/libsybdb.expT" ".libs/libsybdb.exp"

echo "{ global:" > .libs/libsybdb.so.5.0.0.exp

cat .libs/libsybdb.exp | /opt/csw/bin/gsed -e "s/\(.*\)/\1;/" >>
.libs/libsybdb.so.5.0.0.exp

echo "local: *; };" >> .libs/libsybdb.so.5.0.0.exp

/opt/csw/gcc4/bin/gcc -shared -Wl,-M -Wl,.libs/libsybdb.so.5.0.0.exp -Wl,-h
-Wl,libsybdb.so.5 -o .libs/libsybdb.so.5.0.0 .libs/dblib.o .libs/dbutil.o
.libs/rpc.o .libs/bcp.o .libs/xact.o -Wl,-z -Wl,allextract
../tds/.libs/libtds.a ../replacements/.libs/libreplacements.a -Wl,-z
-Wl,defaultextract -lnsl -lsocket -lc -pthreads -m64 -Wl,-Bsymbolic

rm -f .libs/libsybdb.so.5.0.0.exp

(cd .libs && rm -f libsybdb.so.5 && ln -s libsybdb.so.5.0.0 libsybdb.so.5)

(cd .libs && rm -f libsybdb.so && ln -s libsybdb.so.5.0.0 libsybdb.so)

rm -fr .libs/libsybdb.lax

mkdir .libs/libsybdb.lax

rm -fr .libs/libsybdb.lax/libtds.a

mkdir .libs/libsybdb.lax/libtds.a

(cd .libs/libsybdb.lax/libtds.a && ar x
/apps/dbeng_build/freetds/source/src/dblib/../tds/.libs/libtds.a)

rm -fr .libs/libsybdb.lax/libreplacements.a

mkdir .libs/libsybdb.lax/libreplacements.a

(cd .libs/libsybdb.lax/libreplacements.a && ar x
/apps/dbeng_build/freetds/source/src/dblib/../replacements/.libs/libreplacements.a)

ar cru .libs/libsybdb.a dblib.o dbutil.o rpc.o bcp.o xact.o
.libs/libsybdb.lax/libtds.a/mem.o .libs/libsybdb.lax/libtds.a/token.o
.libs/libsybdb.lax/libtds.a/util.o .libs/libsybdb.lax/libtds.a/login.o
.libs/libsybdb.lax/libtds.a/read.o .libs/libsybdb.lax/libtds.a/write.o
.libs/libsybdb.lax/libtds.a/convert.o .libs/libsybdb.lax/libtds.a/numeric.o
.libs/libsybdb.lax/libtds.a/config.o .libs/libsybdb.lax/libtds.a/query.o
.libs/libsybdb.lax/libtds.a/iconv.o .libs/libsybdb.lax/libtds.a/locale.o
.libs/libsybdb.lax/libtds.a/challenge.o
.libs/libsybdb.lax/libtds.a/threadsafe.o
.libs/libsybdb.lax/libtds.a/vstrbuild.o .libs/libsybdb.lax/libtds.a/md4.o
.libs/libsybdb.lax/libtds.a/md5.o .libs/libsybdb.lax/libtds.a/des.o
.libs/libsybdb.lax/libtds.a/tdsstring.o
.libs/libsybdb.lax/libtds.a/getmac.o .libs/libsybdb.lax/libtds.a/data.o
.libs/libsybdb.lax/libtds.a/net.o .libs/libsybdb.lax/libtds.a/tds_checks.o
.libs/libsybdb.lax/libtds.a/log.o .libs/libsybdb.lax/libtds.a/gssapi.o
.libs/libsybdb.lax/libreplacements.a/iconv.o
.libs/libsybdb.lax/libreplacements.a/gettimeofday.o
.libs/libsybdb.lax/libreplacements.a/asprintf.o
.libs/libsybdb.lax/libreplacements.a/vasprintf.o
.libs/libsybdb.lax/libreplacements.a/readpassphrase.o

ranlib .libs/libsybdb.a

rm -fr .libs/libsybdb.lax

creating libsybdb.la

(cd .libs && rm -f libsybdb.la && ln -s ../libsybdb.la libsybdb.la)

Making all in apps

Making all in fisql

cd ../../.. && make am--refresh

if /opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
-I../../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT fisql.o -MD
-MP -MF ".deps/fisql.Tpo" -c -o fisql.o fisql.c; \

then mv -f ".deps/fisql.Tpo" ".deps/fisql.Po"; else rm -f
".deps/fisql.Tpo"; exit 1; fi

if /opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
-I../../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT terminal.o
-MD -MP -MF ".deps/terminal.Tpo" -c -o terminal.o terminal.c; \

then mv -f ".deps/terminal.Tpo" ".deps/terminal.Po"; else rm -f
".deps/terminal.Tpo"; exit 1; fi

if /opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
-I../../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT edit.o -MD
-MP -MF ".deps/edit.Tpo" -c -o edit.o edit.c; \

then mv -f ".deps/edit.Tpo" ".deps/edit.Po"; else rm -f ".deps/edit.Tpo";
exit 1; fi

if /opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
-I../../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT handlers.o
-MD -MP -MF ".deps/handlers.Tpo" -c -o handlers.o handlers.c; \

then mv -f ".deps/handlers.Tpo" ".deps/handlers.Po"; else rm -f
".deps/handlers.Tpo"; exit 1; fi

if /opt/csw/gcc4/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
-I../../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
-DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-D_REENTRANT -pthreads -m64 -Wdeclaration-after-statement -MT interrupt.o
-MD -MP -MF ".deps/interrupt.Tpo" -c -o interrupt.o interrupt.c; \

then mv -f ".deps/interrupt.Tpo" ".deps/interrupt.Po"; else rm -f
".deps/interrupt.Tpo"; exit 1; fi

/opt/csw/gcc4/bin/gcc -D_REENTRANT -pthreads -m64
-Wdeclaration-after-statement -o fisql fisql.o terminal.o edit.o
handlers.o interrupt.o ../../dblib/libsybdb.la ../../replacements/
libreplacements.la -lnsl -lsocket

*ld: fatal: file ../../dblib/libsybdb.la: unknown file type*

*ld: fatal: File processing errors. No output written to fisql*

*collect2: ld returned 1 exit status*


I am out of ideas, your help is much appreicated.


Many thanks,


David


*
*




Archive powered by MHonArc 2.6.24.

Top of Page