[freetds] Unable to compile on Solaris [NC]

Frediano Ziglio freddy77 at gmail.com
Fri Oct 23 10:28:11 EDT 2009


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



More information about the FreeTDS mailing list