I am attempting to emerge dialog-1.0.20050206 (alsa-utils requires it) but it is exiting part way through the configure for the package giving this error: configure: error: Cannot link ncursesw library Reproducible: Always Steps to Reproduce: 1. emerge dialog Actual Results: exits with configure error Expected Results: Dialog should emerge. This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.52.20030208. Invocation command line was $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --with-ncursesw ## ---------- ## ## Platform. ## ## ---------- ## hostname = server uname -m = i686 uname -r = 2.6.14-gentoo-r4 uname -s = Linux uname -v = #10 Sat Dec 10 23:44:32 PST 2005 /usr/bin/uname -p = AMD Athlon(tm) XP 2400+ /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH = /sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/i386-pc-linux-gnu/gcc-bin/3.3.5-20050130:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin ## ------------ ## ## Core tests. ## ## ------------ ## configure:976: PATH=".;."; conftest.sh ./configure: line 977: conftest.sh: command not found configure:979: $? = 127 configure:991: checking for package version configure:1012: result: 1.0 configure:1015: checking for package patch date configure:1032: result: 20050206 configure:1074: checking for i686-pc-linux-gnu-gcc configure:1100: result: no configure:1109: checking for gcc configure:1124: found /usr/bin/gcc configure:1132: result: gcc configure:1360: checking for C compiler version configure:1363: gcc --version </dev/null >&5 gcc (GCC) 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1366: $? = 0 configure:1368: gcc -v </dev/null >&5 Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/specs Configured with: /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3.5-20050130 --includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130/info --with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/include/g++-v3 --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1) configure:1371: $? = 0 configure:1373: gcc -V </dev/null >&5 gcc: `-V' option must have argument configure:1376: $? = 1 configure:1396: checking for C compiler default output configure:1399: gcc -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 configure:1402: $? = 0 configure:1431: result: a.out configure:1436: checking whether the C compiler works configure:1442: ./a.out configure:1445: $? = 0 configure:1460: result: yes configure:1467: checking whether we are cross compiling configure:1469: result: no configure:1472: checking for executable suffix configure:1474: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 configure:1477: $? = 0 configure:1499: result: configure:1505: checking for object suffix configure:1523: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 configure:1526: $? = 0 configure:1545: result: o configure:1549: checking whether we are using the GNU C compiler configure:1570: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 configure:1573: $? = 0 configure:1576: test -s conftest.o configure:1579: $? = 0 configure:1591: result: yes configure:1597: checking whether gcc accepts -g configure:1615: gcc -c -g conftest.c >&5 configure:1618: $? = 0 configure:1621: test -s conftest.o configure:1624: $? = 0 configure:1634: result: yes configure:1661: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 conftest.c:2: error: syntax error before "me" configure:1664: $? = 1 configure: failed program was: #ifndef __cplusplus choke me #endif configure:1767: checking how to run the C preprocessor configure:1793: gcc -E conftest.c configure:1799: $? = 0 configure:1826: gcc -E conftest.c configure:1823:28: ac_nonexistent.h: No such file or directory configure:1832: $? = 1 configure: failed program was: #line 1822 "configure" #include "confdefs.h" #include <ac_nonexistent.h> configure:1869: result: gcc -E configure:1884: gcc -E conftest.c configure:1890: $? = 0 configure:1917: gcc -E conftest.c configure:1914:28: ac_nonexistent.h: No such file or directory configure:1923: $? = 1 configure: failed program was: #line 1913 "configure" #include "confdefs.h" #include <ac_nonexistent.h> configure:1963: checking whether gcc needs -traditional configure:1998: result: no configure:2005: checking whether make sets ${MAKE} configure:2025: result: yes configure:2037: checking for i686-pc-linux-gnu-ranlib configure:2063: result: no configure:2072: checking for ranlib configure:2087: found /usr/bin/ranlib configure:2096: result: ranlib configure:2145: checking for a BSD compatible install configure:2194: result: /bin/install -c configure:2208: checking for i686-pc-linux-gnu-ar configure:2234: result: no configure:2243: checking for ar configure:2258: found /usr/bin/ar configure:2267: result: ar configure:2279: checking for POSIXized ISC configure:2298: result: no configure:2303: checking for gcc option to accept ANSI C configure:2360: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 configure:2363: $? = 0 configure:2366: test -s conftest.o configure:2369: $? = 0 configure:2386: result: none needed configure:2394: checking for an ANSI C-conforming const configure:2458: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 configure:2461: $? = 0 configure:2464: test -s conftest.o configure:2467: $? = 0 configure:2477: result: yes configure:2487: checking for makeflags variable configure:2520: result: configure:2523: checking if filesystem supports mixed-case filenames configure:2550: result: yes configure:2558: checking for ctags configure:2582: result: no configure:2592: checking for etags configure:2616: result: no configure:2639: checking if you want to see long compiling messages configure:2673: result: yes configure:2682: checking build system type configure:2700: result: i686-pc-linux-gnu configure:2708: checking host system type configure:2722: result: i686-pc-linux-gnu configure:2747: result: Configuring for linux-gnu configure:2786: checking if this is really Intel compiler configure:2808: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -no-gcc conftest.c >&5 configure: In function `main': configure:2799: error: `make' undeclared (first use in this function) configure:2799: error: (Each undeclared identifier is reported only once configure:2799: error: for each function it appears in.) configure:2799: error: syntax error before "an" configure:2811: $? = 1 configure: failed program was: #line 2791 "configure" #include "confdefs.h" int main () { #ifdef __INTEL_COMPILER #else make an error #endif ; return 0; } configure:2828: result: no configure:2858: checking if we must define _GNU_SOURCE configure:2880: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer conftest.c >&5 configure: In function `main': configure:2872: error: `make' undeclared (first use in this function) configure:2872: error: (Each undeclared identifier is reported only once configure:2872: error: for each function it appears in.) configure:2872: error: syntax error before "an" configure:2883: $? = 1 configure: failed program was: #line 2865 "configure" #include "confdefs.h" #include <sys/types.h> int main () { #ifndef _XOPEN_SOURCE make an error #endif ; return 0; } configure:2913: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure: In function `main': configure:2905: error: `make' undeclared (first use in this function) configure:2905: error: (Each undeclared identifier is reported only once configure:2905: error: for each function it appears in.) configure:2905: error: syntax error before "an" configure:2916: $? = 1 configure: failed program was: #line 2898 "configure" #include "confdefs.h" #include <sys/types.h> int main () { #ifdef _XOPEN_SOURCE make an error #endif ; return 0; } configure:2937: result: yes configure:3191: checking version of gcc configure:3195: result: 3.3.5 configure:3351: checking for ANSI C header files configure:3365: gcc -E -D_GNU_SOURCE conftest.c configure:3371: $? = 0 configure:3458: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3461: $? = 0 configure:3463: ./conftest configure:3466: $? = 0 configure:3479: result: yes configure:3489: checking for inline configure:3506: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3509: $? = 0 configure:3512: test -s conftest.o configure:3515: $? = 0 configure:3526: result: inline configure:3547: checking for sys/types.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for sys/stat.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for stdlib.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for string.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for memory.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for strings.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for inttypes.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for stdint.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3547: checking for unistd.h configure:3559: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3562: $? = 0 configure:3565: test -s conftest.o configure:3568: $? = 0 configure:3578: result: yes configure:3588: checking for off_t configure:3609: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3612: $? = 0 configure:3615: test -s conftest.o configure:3618: $? = 0 configure:3628: result: yes configure:3640: checking for size_t configure:3661: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3664: $? = 0 configure:3667: test -s conftest.o configure:3670: $? = 0 configure:3680: result: yes configure:3694: checking for working alloca.h configure:3712: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3715: $? = 0 configure:3718: test -s conftest configure:3721: $? = 0 configure:3731: result: yes configure:3741: checking for alloca configure:3779: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:3782: $? = 0 configure:3785: test -s conftest configure:3788: $? = 0 configure:3798: result: yes configure:3982: checking for stdlib.h configure:4017: result: yes configure:3982: checking for unistd.h configure:4017: result: yes configure:4030: checking for getpagesize configure:4067: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4070: $? = 0 configure:4073: test -s conftest configure:4076: $? = 0 configure:4086: result: yes configure:4096: checking for working mmap configure:4232: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4235: $? = 0 configure:4237: ./conftest configure:4240: $? = 0 configure:4252: result: yes configure:4263: checking whether we are using the GNU C Library 2.1 or newer configure:4289: result: yes configure:4318: checking for argz.h configure:4328: gcc -E -D_GNU_SOURCE conftest.c configure:4334: $? = 0 configure:4353: result: yes configure:4318: checking for limits.h configure:4328: gcc -E -D_GNU_SOURCE conftest.c configure:4334: $? = 0 configure:4353: result: yes configure:4318: checking for locale.h configure:4328: gcc -E -D_GNU_SOURCE conftest.c configure:4334: $? = 0 configure:4353: result: yes configure:4318: checking for nl_types.h configure:4328: gcc -E -D_GNU_SOURCE conftest.c configure:4334: $? = 0 configure:4353: result: yes configure:4318: checking for malloc.h configure:4328: gcc -E -D_GNU_SOURCE conftest.c configure:4334: $? = 0 configure:4353: result: yes configure:4318: checking for stddef.h configure:4328: gcc -E -D_GNU_SOURCE conftest.c configure:4334: $? = 0 configure:4353: result: yes configure:4318: checking for stdlib.h configure:4353: result: yes configure:4318: checking for string.h configure:4353: result: yes configure:4318: checking for unistd.h configure:4353: result: yes configure:4318: checking for sys/param.h configure:4328: gcc -E -D_GNU_SOURCE conftest.c configure:4334: $? = 0 configure:4353: result: yes configure:4368: checking for feof_unlocked configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for fgets_unlocked configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for getcwd configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for getegid configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for geteuid configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for getgid configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for getuid configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for mempcpy configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for munmap configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for putenv configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for setenv configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for setlocale configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for stpcpy configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for strchr configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4384: warning: conflicting types for built-in function `strchr' configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for strcasecmp configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for strdup configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for strtoul configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for tsearch configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for __argz_count configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for __argz_stringify configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4368: checking for __argz_next configure:4405: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4408: $? = 0 configure:4411: test -s conftest configure:4414: $? = 0 configure:4424: result: yes configure:4445: checking for iconv configure:4469: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4472: $? = 0 configure:4475: test -s conftest configure:4478: $? = 0 configure:4527: result: yes configure:4535: checking for iconv declaration configure:4566: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4569: $? = 0 configure:4572: test -s conftest.o configure:4575: $? = 0 configure:4588: result: extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); configure:4603: checking for nl_langinfo and CODESET configure:4621: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4624: $? = 0 configure:4627: test -s conftest configure:4630: $? = 0 configure:4641: result: yes configure:4652: checking for LC_MESSAGES configure:4670: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:4673: $? = 0 configure:4676: test -s conftest configure:4679: $? = 0 configure:4689: result: yes configure:4699: checking whether NLS is requested configure:4709: result: no configure:5490: checking if -lm needed for math functions configure:5512: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 /var/tmp/portage/dialog-1.0.20050206/temp/ccfXhWIn.o(.text+0x46): In function `main': : undefined reference to `sqrt' collect2: ld returned 1 exit status configure:5515: $? = 1 configure: failed program was: #line 5497 "configure" #include "confdefs.h" #include <stdio.h> #include <math.h> int main () { double x = rand(); printf("result = %g\n", sqrt(x)) ; return 0; } configure:5531: result: yes configure:5540: checking if you want to link with dbmalloc for testing configure:5550: result: no configure:5654: checking if you want to link with dmalloc for testing configure:5664: result: no configure:5786: checking if you want to build libraries with libtool configure:5796: result: no configure:5936: checking for multibyte character support configure:5957: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -lm >&5 configure:5960: $? = 0 configure:5963: test -s conftest configure:5966: $? = 0 configure:6010: result: yes configure:6065: checking for ncursesw header in include-path configure:6101: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:6079:29: ncursesw/curses.h: No such file or directory configure: In function `main': configure:6091: error: `make' undeclared (first use in this function) configure:6091: error: (Each undeclared identifier is reported only once configure:6091: error: for each function it appears in.) configure:6091: error: syntax error before "an" configure:6104: $? = 1 configure: failed program was: #line 6077 "configure" #include "confdefs.h" #include <ncursesw/curses.h> int main () { #ifdef NCURSES_VERSION printf("%s\n", NCURSES_VERSION); #else #ifdef __NCURSES_H printf("old\n"); #else make an error #endif #endif ; return 0; } configure:6101: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:6079:30: ncursesw/ncurses.h: No such file or directory configure: In function `main': configure:6091: error: `make' undeclared (first use in this function) configure:6091: error: (Each undeclared identifier is reported only once configure:6091: error: for each function it appears in.) configure:6091: error: syntax error before "an" configure:6104: $? = 1 configure: failed program was: #line 6077 "configure" #include "confdefs.h" #include <ncursesw/ncurses.h> int main () { #ifdef NCURSES_VERSION printf("%s\n", NCURSES_VERSION); #else #ifdef __NCURSES_H printf("old\n"); #else make an error #endif #endif ; return 0; } configure:6101: gcc -c -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c >&5 configure:6104: $? = 0 configure:6107: test -s conftest.o configure:6110: $? = 0 configure:6125: result: curses.h configure:6427: checking for ncurses version configure:6491: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -lm >&5 configure:6494: $? = 0 configure:6496: ./conftest configure:6499: $? = 0 configure:6513: result: 5.4.20040208 configure:6525: checking for Gpm_Open in -lgpm configure:6552: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -lgpm -lm >&5 configure:6555: $? = 0 configure:6558: test -s conftest configure:6561: $? = 0 configure:6572: result: yes configure:6575: checking for initscr in -lgpm configure:6602: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -lgpm -lm >&5 /var/tmp/portage/dialog-1.0.20050206/temp/cc6MPxu6.o(.text+0xa): In function `main': : undefined reference to `initscr' collect2: ld returned 1 exit status configure:6605: $? = 1 configure: failed program was: #line 6583 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr (); int main () { initscr (); ; return 0; } configure:6622: result: no configure:6703: checking for initscr configure:6740: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -lgpm -lm >&5 /var/tmp/portage/dialog-1.0.20050206/temp/cc3TSjod.o(.text+0xe): In function `main': : undefined reference to `initscr' collect2: ld returned 1 exit status configure:6743: $? = 1 configure: failed program was: #line 6709 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char initscr (); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr (); char (*f) (); 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_initscr) || defined (__stub___initscr) choke me #else f = initscr; #endif ; return 0; } configure:6759: result: no configure:6766: checking for initscr in -lncursesw configure:6782: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -lncursesw -lgpm -lm >&5 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../../i386-pc-linux-gnu/bin/ld: cannot find -lncursesw collect2: ld returned 1 exit status configure:6785: $? = 1 configure: failed program was: #line 6770 "configure" #include "confdefs.h" #include <curses.h> int main () { initscr() ; return 0; } configure:6800: result: no configure:6860: checking for -lncursesw in /usr/local/lib configure:6876: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -L/usr/local/lib -lncursesw -lgpm -lm >&5 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../../i386-pc-linux-gnu/bin/ld: cannot find -lncursesw collect2: ld returned 1 exit status configure:6879: $? = 1 configure: failed program was: #line 6864 "configure" #include "confdefs.h" #include <curses.h> int main () { initscr() ; return 0; } configure:6894: result: no configure:6860: checking for -lncursesw in /usr/lib configure:6876: gcc -o conftest -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -D_GNU_SOURCE conftest.c -L/usr/lib -lncursesw -lgpm -lm >&5 /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../../i386-pc-linux-gnu/bin/ld: cannot find -lncursesw collect2: ld returned 1 exit status configure:6879: $? = 1 configure: failed program was: #line 6864 "configure" #include "confdefs.h" #include <curses.h> int main () { initscr() ; return 0; } configure:6894: result: no configure:6909: error: Cannot link ncursesw library ## ----------------- ## ## Cache variables. ## ## ----------------- ## ac_cv_build=i686-pc-linux-gnu ac_cv_build_alias=i686-pc-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_c_inline=inline ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=i686-pc-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i686-pc-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func___argz_count=yes ac_cv_func___argz_next=yes ac_cv_func___argz_stringify=yes ac_cv_func_alloca_works=yes ac_cv_func_feof_unlocked=yes ac_cv_func_fgets_unlocked=yes ac_cv_func_getcwd=yes ac_cv_func_getegid=yes ac_cv_func_geteuid=yes ac_cv_func_getgid=yes ac_cv_func_getpagesize=yes ac_cv_func_getuid=yes ac_cv_func_initscr=no ac_cv_func_mempcpy=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_munmap=yes ac_cv_func_putenv=yes ac_cv_func_setenv=yes ac_cv_func_setlocale=yes ac_cv_func_stpcpy=yes ac_cv_func_strcasecmp=yes ac_cv_func_strchr=yes ac_cv_func_strdup=yes ac_cv_func_strtoul=yes ac_cv_func_tsearch=yes ac_cv_gnu_library_2_1=yes ac_cv_header_argz_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_limits_h=yes ac_cv_header_locale_h=yes ac_cv_header_malloc_h=yes ac_cv_header_memory_h=yes ac_cv_header_nl_types_h=yes ac_cv_header_stdc=yes ac_cv_header_stddef_h=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_param_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=i686-pc-linux-gnu ac_cv_host_alias=i686-pc-linux-gnu ac_cv_lib_gpm_Gpm_Open=yes ac_cv_lib_gpm_initscr=no ac_cv_objext=o ac_cv_path_install='/bin/install -c' ac_cv_prog_CPP='gcc -E' ac_cv_prog_MAKE_LOWER_TAGS=no ac_cv_prog_MAKE_UPPER_TAGS=no ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_gcc_traditional=no ac_cv_prog_make_make_set=yes ac_cv_type_off_t=yes ac_cv_type_size_t=yes ac_cv_working_alloca_h=yes am_cv_func_iconv=yes am_cv_langinfo_codeset=yes am_cv_lib_iconv=no am_cv_proto_iconv='extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);' am_cv_proto_iconv_arg1= am_cv_val_LC_MESSAGES=yes cf_cv_curses_dir=no cf_cv_gnu_source=yes cf_cv_have_lib_ncursesw=no cf_cv_makeflags= cf_cv_mixedcase=yes cf_cv_ncurses_h=curses.h cf_cv_ncurses_header=curses.h cf_cv_ncurses_version=5.4.20040208 cf_cv_need_libm=yes cf_cv_system_name=linux-gnu cf_cv_utf8_lib=yes nls_cv_header_intl= nls_cv_header_libgt= ## ------------ ## ## confdefs.h. ## ## ------------ ## #define PACKAGE "dialog" #define DIALOG_VERSION "1.0" #define DIALOG_PATCHDATE 20050206 #define MIXEDCASE_FILENAMES 1 #define SYSTEM_NAME "linux-gnu" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_ALLOCA_H 1 #define HAVE_ALLOCA 1 #define HAVE_STDLIB_H 1 #define HAVE_UNISTD_H 1 #define HAVE_GETPAGESIZE 1 #define HAVE_MMAP 1 #define HAVE_ARGZ_H 1 #define HAVE_LIMITS_H 1 #define HAVE_LOCALE_H 1 #define HAVE_NL_TYPES_H 1 #define HAVE_MALLOC_H 1 #define HAVE_STDDEF_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_UNISTD_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_FEOF_UNLOCKED 1 #define HAVE_FGETS_UNLOCKED 1 #define HAVE_GETCWD 1 #define HAVE_GETEGID 1 #define HAVE_GETEUID 1 #define HAVE_GETGID 1 #define HAVE_GETUID 1 #define HAVE_MEMPCPY 1 #define HAVE_MUNMAP 1 #define HAVE_PUTENV 1 #define HAVE_SETENV 1 #define HAVE_SETLOCALE 1 #define HAVE_STPCPY 1 #define HAVE_STRCHR 1 #define HAVE_STRCASECMP 1 #define HAVE_STRDUP 1 #define HAVE_STRTOUL 1 #define HAVE_TSEARCH 1 #define HAVE___ARGZ_COUNT 1 #define HAVE___ARGZ_STRINGIFY 1 #define HAVE___ARGZ_NEXT 1 #define HAVE_ICONV 1 #define ICONV_CONST #define HAVE_LANGINFO_CODESET 1 #define HAVE_LC_MESSAGES 1 #define NCURSES 1 #define NCURSES 1 configure: exit 1
*** This bug has been marked as a duplicate of 67524 ***