[freetds] Undefined symbols building sqsh with freetds (Solaris 8)

Tom Millar Tom.Millar at optusnet.com.au
Fri May 28 06:43:26 EDT 2004


Hope someone here can help me?
- I've built FreeTDS on Solaris 8 and verified thru tsql ... all works
OK.
- I've built SQSH on same box with Sybase Open Client 12.5 and verified
... again all seems OK.
- Then I tried to build SQSH (same host) using FreeTDS ... link fails
with some udefined symbols:

Undefined                       first referenced
 symbol                             in file
setsockopt                         
/dba/opt/freetds/0.62.3/lib/libct.a(login.o)
connect                            
/dba/opt/freetds/0.62.3/lib/libct.a(login.o)
getservbyname_r                    
/dba/opt/freetds/0.62.3/lib/libct.a(threadsafe.o)
socket                             
/dba/opt/freetds/0.62.3/lib/libct.a(login.o)

Also here's the configure output, if it adds any value:

checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for gcc... cc
checking for C compiler default output... 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... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for library containing strerror... none required
checking whether cc supports volatile keyword... yes
checking Open Client installation... /dba/opt/freetds/0.62.3
checking Open Client libraries...  -lct -ltds
checking Open Client needs net libraries... no (version FreeTDS)
checking Open Client OS libraries... -lnsl -ldl -lm
checking for libreadline... /dba/opt/readline/default/lib
checking for readline/readline.h... /dba/opt/readline/default/include
checking for readline link... -lreadline -lcurses
checking for rl_completion_matches in -lreadline... yes
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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... no
checking for unistd.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for an ANSI C-conforming const... yes
checking for mode_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for sigaction... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for cftime... yes
checking for strftime... yes
checking for memcpy... yes
checking for memmove... yes
checking for localtime... yes
checking for timelocal... no
checking for strchr... yes
checking for gettimeofday... yes
checking for get_process_stats... no
checking for crypt... yes
checking for poll... yes
checking for sigsetjmp... yes
checking signal behaviour... SYSV
checking for a BSD-compatible install... autoconf/install-sh -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating scripts/install.sh
config.status: creating scripts/make_wrapper.sh
config.status: creating src/config.h

Thanks for any assistance.

Tom.




More information about the FreeTDS mailing list