Skip to Content.
Sympa Menu

freetds - [freetds] Problem building FreeTDS on Solaris 9

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Daniel Berger <djberge AT qwest.com>
  • To: FreeTDS AT lists.ibiblio.org
  • Cc:
  • Subject: [freetds] Problem building FreeTDS on Solaris 9
  • Date: Tue, 22 Jun 2004 14:35:22 -0600

Hi,

Solaris 9
gcc 3.3.3 (package from blastwave.org)
Sun's ld
readline 4.2 (package from blastwave.org)
FreeTDS 0.62.4 (and 0.63)
CC = gcc -Wall -fno-strict-aliasing
CPPFLAGS and LDFLAGS - not set

>ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.343

readline headers & libs are under /opt/csw/. Definitely in my PATH.

I'm having difficulty building FreeTDS on this box. It looks like a
linker issue of some sort. The configure script seems to go alright,
but when I do make I end up with:

if gcc -Wall -fno-strict-aliasing -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 -g -O2 -MT tsql.o -MD -MP -MF ".deps/tsql.Tpo" \
-c -o tsql.o `test -f 'tsql.c' || echo './'`tsql.c; \
then mv ".deps/tsql.Tpo" ".deps/tsql.Po"; \
else rm -f ".deps/tsql.Tpo"; exit 1; \
fi
tsql.c:38:31: readline/readline.h: No such file or directory
tsql.c:39:30: readline/history.h: No such file or directory
tsql.c: In function `slurp_input_file':
tsql.c:444: warning: implicit declaration of function `add_history'
tsql.c: In function `main':
tsql.c:498: warning: implicit declaration of function `readline'
tsql.c:498: warning: assignment makes pointer from integer without a
cast
*** Error code 1
make: Fatal error: Command failed for target `tsql.o'
Current working directory /usr/local/src/freetds-0.62.4/src/apps
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/freetds-0.62.4/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Looking in the config log I see this bit:

configure:19031: gcc -Wall -fno-strict-aliasing -o conftest -g -O2
-D_FREETDS_LIBRARY_SOURCE conft
est.c -lreadline >&5
Undefined first referenced
symbol in file
tgetnum /opt/csw/lib/libreadline.so
tgetstr /opt/csw/lib/libreadline.so
tgoto /opt/csw/lib/libreadline.so
tputs /opt/csw/lib/libreadline.so
tgetent /var/tmp//ccueasJb.o
tgetflag /opt/csw/lib/libreadline.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:19034: $? = 1

I tried futzing with LDFLAGS and CPPFLAGS variables with no luck. Any
ideas? Will I be forced to install binutils and use the GNU ld?

Regards,

Dan




Archive powered by MHonArc 2.6.24.

Top of Page