autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_SEARCH_LIBS problems


From: Sam Steingold
Subject: AC_SEARCH_LIBS problems
Date: 08 Aug 2002 12:22:47 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

AC_SEARCH_LIBS(tgetent, ncurses curses termcap)
successfully detects that ncurses defines tgetent(), but it does not
check that it "works":

$ gcc  curs.c 
Undefined                       first referenced
 symbol                             in file
tgetent                             /var/tmp/ccIgsY1w.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
$ gcc  curs.c -lncurses
$ ./a.out 
ld.so.1: ./a.out: fatal: libncurses.so.5: open failed: No such file or directory
Killed
$

(ncurses is in /usr/local/lib, gcc finds it but ld.so does not:
$ gcc  curs.c -lncurses -R /usr/local/lib
$ ./a.out
this is probably due to misconfiguration of the solaris box,
but this is beyond the point)

I.e., AC_SEARCH_LIBS successfully links with "-lncurses" but does not
make sure that the resulting binary actually works.
Is it possible to tell AC_SEARCH_LIBS to make sure that the linked
binary is actually runnable?
If this is not the case now, maybe it is possible to do it in the
future?

thanks.

-- 
Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
PI seconds is a nanocentury





reply via email to

[Prev in Thread] Current Thread [Next in Thread]