Re: Unable to compile on Solaris [NC]

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
2009/10/21 Cedric ROUVRAIS <[email protected]>:
> 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 mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.