[Top][All Lists]

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


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 ./a.out: fatal: open failed: No such file or directory

(ncurses is in /usr/local/lib, gcc finds it but 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


Sam Steingold ( running RedHat7.3 GNU/Linux
<> <> <>
<> <>
PI seconds is a nanocentury

reply via email to

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