I am having a problem similar to something I saw on this
list.
*** PANIC *** The C compiler can no longer build working executables.
*** PANIC *** Please examine the tail of config.log for runtime errors.
*** PANIC *** The most likely reason for this problem is that configure
*** PANIC *** links with shared libraries, but those libraries cannot be
*** PANIC *** found at run time.
*** PANIC ***
*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig.
*** PANIC *** On other systems, try telling configure where to find the
*** PANIC *** shared libraries using the --site-runtime-libraries option
*** PANIC ***
*** PANIC *** Another way to shoot yourself in the foot is to specify
*** PANIC *** --with-FEATURE when FEATURE is not actually installed
*** PANIC *** on your system. Don't do that.
this is on a linux from scratch system which deffinately has ncurses
and does not have termcap. I'm not sure when this broke but everything was
building fine a couple of weeks ago.
here is what seems to be the relevant portion of config.log:
configure:13267: checking for TTY-related features
configure:13283: checking for tgetent in -lncurses
configure:13299: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wshadow -Wsign-compare -I/usr/X11R6/include
-L/usr/X11R6/lib conftest.c -lncurses -lXmu -lXt -lXext -lX11 -lSM
-lICE -lm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool -lgcc
-lc -lgcc /usr/lib/crtn.o 1>&5
/usr/bin/ld: cannot find -lwinspool
collect2: ld returned 1 exit status
configure: failed program was:
#line 13288 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char tgetent();
int main() {
tgetent()
; return 0; }
configure:13588: checking for gpm.h
configure:13596: gcc -E -I/usr/X11R6/include conftest.c >/dev/null
2>conftest.out
configure:13592: gpm.h: No such file or directory
configure: failed program was:
#line 13591 "configure"
#include "confdefs.h"
#include <gpm.h>
configure:13685: checking for database support
configure:13690: checking for ndbm.h
configure:13698: gcc -E -I/usr/X11R6/include conftest.c >/dev/null
2>conftest.out
configure:13694: ndbm.h: No such file or directory
configure: failed program was:
#line 13693 "configure"
#include "confdefs.h"
#include <ndbm.h>
configure:13874: checking for Berkeley db.h
configure:13899: gcc -c -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wshadow -Wsign-compare -I/usr/X11R6/include conftest.c 1>&5
configure:13892: db/db.h: No such file or directory
configure: failed program was:
#line 13877 "configure"
#include "confdefs.h"
#include <stdlib.h>
#if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
#ifdef HAVE_INTTYPES_H
#define __BIT_TYPES_DEFINED__
#include <inttypes.h>
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
#ifdef WE_DONT_NEED_QUADS
typedef uint64_t u_int64_t;
#endif
#endif
#endif
#include <db/db.h>
int main() {
; return 0; }
configure:13899: gcc -c -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wshadow -Wsign-compare -I/usr/X11R6/include conftest.c 1>&5
configure:13915: checking for Berkeley DB version
configure:13956: checking for db_create
configure:13982: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wshadow -Wsign-compare -I/usr/X11R6/include
-L/usr/X11R6/lib conftest.c -lXmu -lXt -lXext -lX11 -lSM -lICE -ltermcap
-lcurses -lm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool
-lgcc -lc -lgcc /usr/lib/crtn.o 1>&5
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 13959 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char db_create(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char db_create();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_db_create) || defined (__stub___db_create)
choke me
#else
db_create();
#endif
; return 0; }
configure:14001: checking for db_create in -ldb
configure:14017: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wshadow -Wsign-compare -I/usr/X11R6/include
-L/usr/X11R6/lib conftest.c -ldb -lXmu -lXt -lXext -lX11 -lSM -lICE
-ltermcap -lcurses -lm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32
-lwinspool -lgcc -lc -lgcc /usr/lib/crtn.o 1>&5
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 14006 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char db_create();
int main() {
db_create()
; return 0; }
configure:14152: checking for module support
configure:14346: checking how to build dynamic libraries for i686-pc-linux
configure:14398: checking how to produce PIC code
configure:14499: checking if PIC flag -fPIC really works
configure:14510: gcc -c -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wshadow -Wsign-compare -fPIC -DPIC -I/usr/X11R6/include conftest.c 1>&5
configure: In function `main':
configure:14506: warning: unused variable `x'
configure:14541: checking if C compiler can produce shared libraries
configure:14599: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wshadow -Wsign-compare -I/usr/X11R6/include
-shared -L/usr/X11R6/lib conftest.c 1>&5
configure: In function `main':
configure:14595: warning: unused variable `x'
configure:14624: checking for ld used by GCC
configure:14687: checking if the linker is GNU ld
GNU ld version 2.10.1 (with BFD 2.10.1)
configure:14926: checking for dlerror
configure:14952: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wshadow -Wsign-compare -I/usr/X11R6/include
-L/usr/X11R6/lib conftest.c -lXmu -lXt -lXext -lX11 -lSM -lICE -ltermcap
-lcurses -lm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool
-lgcc -lc -lgcc /usr/lib/crtn.o 1>&5
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 14929 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char dlerror(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dlerror();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_dlerror) || defined (__stub___dlerror)
choke me
#else
dlerror();
#endif
; return 0; }
configure:14926: checking for _dlerror
configure:14952: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wshadow -Wsign-compare -I/usr/X11R6/include
-L/usr/X11R6/lib conftest.c -lXmu -lXt -lXext -lX11 -lSM -lICE -ltermcap
-lcurses -lm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool
-lgcc -lc -lgcc /usr/lib/crtn.o 1>&5
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 14929 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _dlerror(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _dlerror();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub__dlerror) || defined (__stub____dlerror)
choke me
#else
_dlerror();
#endif
; return 0; }
configure:14995: gcc -o conftest -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wshadow -Wsign-compare -I/usr/X11R6/include
-L/usr/X11R6/lib conftest.c -lXmu -lXt -lXext -lX11 -lSM -lICE -ltermcap
-lcurses -lm -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool
-lgcc -lc -lgcc /usr/lib/crtn.o 1>&5
/usr/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure: failed program was:
#line 14991 "configure"
#include "confdefs.h"
int main(int c,char *v[]){return 0;}