freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Unable to compile on Solaris [NC]
- Date: Fri, 23 Oct 2009 16:28:11 +0200
2009/10/21 Cedric ROUVRAIS <cedric.rouvrais AT sgcib.com>:
> Hi guys,
>
> I can't compile on Solaris, I am getting the following error on make
> execution:
>
>
> gcc -D_REENTRANT -pthreads -g -O2 -Wdeclaration-after-statement -o
> .libs/fisql fisql.o terminal.o edit.o handlers.o interrupt.o
> ../../dblib/.libs/libsybdb.so ../../replacements/.libs/libreplacements.a
> -lnsl -lsocket -lncurses -lreadline -R/homedir/crouvrai/freetds/lib
> Undefined first referenced
> symbol in file
> tgoto /tools/prod/apps/lib/libreadline.so
> tputs /tools/prod/apps/lib/libreadline.so
> tgetent /tools/prod/apps/lib/libreadline.so
> tgetnum /tools/prod/apps/lib/libreadline.so
> tgetstr /tools/prod/apps/lib/libreadline.so
> tgetflag /tools/prod/apps/lib/libreadline.so
> ld: fatal: Symbol referencing errors. No output written to .libs/fisql
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `fisql'
> Current working directory /homedir/crouvrai/freetds-sol-0.82/src/apps/fisql
> *** Error code 1
>
>
> Does anyone have any ideas?
>
> a++ Cedric
>
It's quite strange... configure should detect this problem... from
configure.ac
if test $tds_mingw = no; then
# readline test
# Readline is needed by the tty session. Set up a special
READLINE_LIBS
# substitution for it.
OLDLIBS="$LIBS"
# Readline is linked with curses, and on some systems termcap must be
# linked in. Others (inc debian) have termcap built into ncurses.
LIBS=""
AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap])
AC_CHECK_LIB([readline], [readline], [LIBS="$LIBS -lreadline"
AC_DEFINE(HAVE_READLINE, 1, [Define to 1 if you have the GNU
Readline library.])], [LIBS=""] )
the only problem I see can occur if tgetent is not in any of listed
libraries (readline ncurses curses termcap).
freddy77
-
[freetds] Win32 client replacing Sybase net libraries,
Elliman, David, 10/21/2009
-
[freetds] Unable to compile on Solaris [NC],
Cedric ROUVRAIS, 10/21/2009
-
Re: [freetds] Unable to compile on Solaris [NC],
Frediano Ziglio, 10/23/2009
- Re: [freetds] Unable to compile on Solaris [NC], Cedric ROUVRAIS, 10/23/2009
-
Re: [freetds] Unable to compile on Solaris [NC],
Frediano Ziglio, 10/23/2009
- Re: [freetds] Win32 client replacing Sybase net libraries, Elliman, David, 10/23/2009
-
[freetds] Unable to compile on Solaris [NC],
Cedric ROUVRAIS, 10/21/2009
Archive powered by MHonArc 2.6.24.