Thread: configure readline error
Hello, I'm having trouble with ./configure for Postgres 7.3.3 on a RH7.3 i686 system. .... checking for readline... no readline library not found if you have readline already installed ..... I've gone through config.log and it looks like it searches the correct locations. I have gnu readline 4.1 installed and can find libs in /usr/local/lib/libreadline.a and headers in /usr/local/lib/include/readline/*.h. I configured with ./configure --with-includes=/usr/local/lib:/usr/local/lib/include/readline --with-libraries=/usr/local/lib:/usr/local/lib/include/readline --with-perl --with-openssl --with-syslog Unfortunately I keep getting the error. I've searched numerous lists, groups, faqs, etc. but cannot seem to resolve the issue. Any help would be greatly appreciated. Thanx in advance! johnmac
John McGloughlin <johnmac@mcgloughlingroup.com> writes: > checking for readline... no > readline library not found > I've gone through config.log and it looks like it searches the correct > locations. "not found" in this context would probably be better read as "something went wrong but I dunno what". A likely possibility is that the readline library needs some secondary library that configure didn't try including. Could we see the full config.log results? > I have gnu readline 4.1 installed and can find libs in > /usr/local/lib/libreadline.a and headers in > /usr/local/lib/include/readline/*.h. > I configured with ./configure > --with-includes=/usr/local/lib:/usr/local/lib/include/readline > --with-libraries=/usr/local/lib:/usr/local/lib/include/readline Hm, I think those paths ought to be just --with-includes=/usr/local/lib:/usr/local/lib/include --with-libraries=/usr/local/lib but not sure if that accounts for your problem ... also, readline 4.1 is long in the tooth, an update to 4.2 might help ... regards, tom lane
Thanx for the quick response. >checking for readline... no >readline library not found > >I have gnu readline 4.1 installed and can find libs in >/usr/local/lib/libreadline.a and headers in >/usr/local/lib/include/readline/*.h. > > >I configured with ./configure >--with-includes=/usr/local/lib:/usr/local/lib/include/readline >--with-libraries=/usr/local/lib:/usr/local/lib/include/readline > > Tome Lane wrote: > Hm, I think those paths ought to be just > --with-includes=/usr/local/lib:/usr/local/lib/include > --with-libraries=/usr/local/lib > but not sure if that accounts for your problem ... also, readline 4.1 > is long in the tooth, an update to 4.2 might help ... >> OK - I've installed 4.3 and changed the lib directives >I've gone through config.log and it looks like it searches the correct >locations. > > > "not found" in this context would probably be better read as "something > went wrong but I dunno what". A likely possibility is that the readline > library needs some secondary library that configure didn't try > including. Could we see the full config.log results? >> config.log (sorry for the BIG file ... wasn't sure if you wanted the whole thing or not $ ./configure --with-libraries=/usr/local/lib --with-includes=/usr/local/lib:/usr/local/include --with-perl --with-openssl --enable-syslog ## --------- ## ## Platform. ## ## --------- ## hostname = xxxxxxxxxxxxxxxxxx uname -m = i686 uname -r = 2.4.18-3 uname -s = Linux uname -v = #1 Thu Apr 18 07:37:53 EDT 2002 /usr/bin/uname -p = unknown /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: . PATH: /bin PATH: /usr/bin PATH: /usr/local/bin PATH: /bin PATH: /usr/bin PATH: /usr/X11R6/bin PATH: /usr/sbin PATH: /home/johnmac/bin PATH: /usr/local/ant/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1295: checking build system type configure:1313: result: i686-pc-linux-gnu configure:1321: checking host system type configure:1335: result: i686-pc-linux-gnu configure:1345: checking which template to use configure:1444: result: linux configure:1563: checking whether to build with 64-bit integer date/time support configure:1594: result: no configure:1600: checking whether to build with recode support configure:1631: result: no configure:1638: checking whether NLS is wanted configure:1672: result: no configure:1680: checking for default port number configure:1709: result: 5432 configure:1727: checking for default soft limit on number of connections configure:1756: result: 32 configure:1947: checking for gcc configure:1963: found /usr/bin/gcc configure:1973: result: gcc configure:1992: checking for C compiler version configure:1995: gcc --version </dev/null >&5 2.96 configure:1998: $? = 0 configure:2000: gcc -v </dev/null >&5 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) configure:2003: $? = 0 configure:2005: gcc -V </dev/null >&5 gcc: argument to `-V' is missing configure:2008: $? = 1 configure:2034: checking for C compiler default output configure:2037: gcc conftest.c >&5 configure:2040: $? = 0 configure:2073: result: a.out configure:2078: checking whether the C compiler works configure:2084: ./a.out configure:2087: $? = 0 configure:2102: result: yes configure:2109: checking whether we are cross compiling configure:2111: result: no configure:2114: checking for suffix of executables configure:2116: gcc -o conftest conftest.c >&5 configure:2119: $? = 0 configure:2141: result: configure:2147: checking for suffix of object files configure:2171: gcc -c conftest.c >&5 configure:2174: $? = 0 configure:2193: result: o configure:2197: checking whether we are using the GNU C compiler configure:2224: gcc -c conftest.c >&5 configure:2227: $? = 0 configure:2230: test -s conftest.o configure:2233: $? = 0 configure:2245: result: yes configure:2251: checking whether gcc accepts -g configure:2275: gcc -c -g conftest.c >&5 configure:2278: $? = 0 configure:2281: test -s conftest.o configure:2284: $? = 0 configure:2294: result: yes configure:2321: gcc -c -g -O2 conftest.c >&5 conftest.c:2: parse error before `me' configure:2324: $? = 1 configure: failed program was: #ifndef __cplusplus choke me #endif configure:2443: using CFLAGS=-O2 configure:2447: checking whether the C compiler still works configure:2469: gcc -o conftest -O2 conftest.c >&5 configure:2472: $? = 0 configure:2475: test -s conftest configure:2478: $? = 0 configure:2480: result: yes configure:2516: gcc -c -O2 conftest.c >&5 configure:2519: $? = 0 configure:2522: test -s conftest.o configure:2525: $? = 0 configure:2543: checking how to run the C preprocessor configure:2569: gcc -E conftest.c configure:2575: $? = 0 configure:2602: gcc -E conftest.c configure:2598:28: ac_nonexistent.h: No such file or directory configure:2608: $? = 1 configure: failed program was: #line 2597 "configure" #include "confdefs.h" #include <ac_nonexistent.h> configure:2645: result: gcc -E configure:2660: gcc -E conftest.c configure:2666: $? = 0 configure:2693: gcc -E conftest.c configure:2689:28: ac_nonexistent.h: No such file or directory configure:2699: $? = 1 configure: failed program was: #line 2688 "configure" #include "confdefs.h" #include <ac_nonexistent.h> configure:2856: checking whether to build with Tcl configure:2884: result: no configure:2889: checking whether to build with Tk configure:2921: result: no configure:2987: checking whether to build Perl modules configure:3015: result: yes configure:3022: checking whether to build Python modules configure:3050: result: no configure:3057: checking whether to build Java/JDBC tools configure:3195: result: no configure:3205: checking whether to build with Kerberos 4 support configure:3252: result: no configure:3263: checking whether to build with Kerberos 5 support configure:3310: result: no configure:3368: checking whether to build with PAM support configure:3400: result: no configure:3435: result: building with OpenSSL support configure:3553: using CPPFLAGS= -I/usr/local/lib -I/usr/local/include configure:3555: using LDFLAGS= -L/usr/local/lib configure:3563: checking for gawk configure:3579: found /bin/gawk configure:3589: result: gawk configure:3599: checking for flex configure:3638: result: /usr/local/bin/flex configure:3673: checking whether ln -s works configure:3677: result: yes configure:3695: checking for ld used by GCC configure:3758: result: /usr/bin/ld configure:3767: checking if the linker (/usr/bin/ld) is GNU ld GNU ld version 2.11.93.0.2 20020207 configure:3779: result: yes configure:3880: checking for ranlib configure:3896: found /usr/bin/ranlib configure:3907: result: ranlib configure:3923: checking for lorder configure:3952: result: no configure:3961: checking for tar configure:3979: found /bin/tar configure:3991: result: /bin/tar configure:4040: checking for strip configure:4056: found /usr/bin/strip configure:4067: result: strip configure:4080: checking whether it is possible to strip libraries configure:4085: result: yes configure:4101: checking for bison configure:4117: found /usr/local/bin/bison configure:4127: result: bison -y configure:4159: checking for perl configure:4177: found /usr/bin/perl configure:4189: result: /usr/bin/perl configure:4198: checking for Perl archlibexp configure:4201: result: /usr/local/lib/perl5/5.8.0/i686-linux configure:4203: checking for Perl privlibexp configure:4206: result: /usr/local/lib/perl5/5.8.0 configure:4208: checking for Perl useshrplib configure:4211: result: false configure:4214: checking for flags to link embedded Perl configure:4219: result: -L/usr/local/lib /usr/local/lib/perl5/5.8.0/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.0/i686-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt -lutil configure:4330: checking for main in -lbsd configure:4357: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lbsd >&5 configure:4360: $? = 0 configure:4363: test -s conftest configure:4366: $? = 0 configure:4377: result: yes configure:4390: checking for setproctitle in -lutil configure:4423: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lutil -lbsd >&5 /tmp/cc25FbDB.o: In function `main': /tmp/cc25FbDB.o(.text+0x7): undefined reference to `setproctitle' collect2: ld returned 1 exit status configure:4426: $? = 1 configure: failed program was: #line 4397 "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 setproctitle (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { setproctitle (); ; return 0; } configure:4443: result: no configure:4455: checking for main in -lm configure:4482: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lm -lbsd >&5 configure:4485: $? = 0 configure:4488: test -s conftest configure:4491: $? = 0 configure:4502: result: yes configure:4514: checking for main in -ldl configure:4541: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -ldl -lm -lbsd >&5 configure:4544: $? = 0 configure:4547: test -s conftest configure:4550: $? = 0 configure:4561: result: yes configure:4573: checking for main in -lnsl configure:4600: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lnsl -ldl -lm -lbsd >&5 configure:4603: $? = 0 configure:4606: test -s conftest configure:4609: $? = 0 configure:4620: result: yes configure:4632: checking for main in -lsocket configure:4659: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lsocket -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lsocket collect2: ld returned 1 exit status configure:4662: $? = 1 configure: failed program was: #line 4639 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:4679: result: no configure:4691: checking for main in -lipc configure:4718: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lipc -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lipc collect2: ld returned 1 exit status configure:4721: $? = 1 configure: failed program was: #line 4698 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:4738: result: no configure:4750: checking for main in -lIPC configure:4777: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lIPC -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lIPC collect2: ld returned 1 exit status configure:4780: $? = 1 configure: failed program was: #line 4757 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:4797: result: no configure:4809: checking for main in -llc configure:4836: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -llc -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -llc collect2: ld returned 1 exit status configure:4839: $? = 1 configure: failed program was: #line 4816 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:4856: result: no configure:4868: checking for main in -ldld configure:4895: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -ldld -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -ldld collect2: ld returned 1 exit status configure:4898: $? = 1 configure: failed program was: #line 4875 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:4915: result: no configure:4927: checking for main in -lld configure:4954: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lld -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lld collect2: ld returned 1 exit status configure:4957: $? = 1 configure: failed program was: #line 4934 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:4974: result: no configure:4986: checking for main in -lcompat configure:5013: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lcompat -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lcompat collect2: ld returned 1 exit status configure:5016: $? = 1 configure: failed program was: #line 4993 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:5033: result: no configure:5045: checking for main in -lBSD configure:5072: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lBSD -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lBSD collect2: ld returned 1 exit status configure:5075: $? = 1 configure: failed program was: #line 5052 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:5092: result: no configure:5104: checking for main in -lgen configure:5131: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lgen -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lgen collect2: ld returned 1 exit status configure:5134: $? = 1 configure: failed program was: #line 5111 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:5151: result: no configure:5163: checking for main in -lPW configure:5190: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lPW -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lPW collect2: ld returned 1 exit status configure:5193: $? = 1 configure: failed program was: #line 5170 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:5210: result: no configure:5222: checking for main in -lresolv configure:5249: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lresolv -lnsl -ldl -lm -lbsd >&5 configure:5252: $? = 0 configure:5255: test -s conftest configure:5258: $? = 0 configure:5269: result: yes configure:5280: checking for library containing getopt_long configure:5313: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lresolv -lnsl -ldl -lm -lbsd >&5 configure:5316: $? = 0 configure:5319: test -s conftest configure:5322: $? = 0 configure:5381: result: none required configure:5390: checking for main in -lunix configure:5417: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lunix -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lunix collect2: ld returned 1 exit status configure:5420: $? = 1 configure: failed program was: #line 5397 "configure" #include "confdefs.h" #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { main (); ; return 0; } configure:5437: result: no configure:5448: checking for library containing crypt configure:5481: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lresolv -lnsl -ldl -lm -lbsd >&5 /tmp/cc912vCe.o: In function `main': /tmp/cc912vCe.o(.text+0x7): undefined reference to `crypt' collect2: ld returned 1 exit status configure:5484: $? = 1 configure: failed program was: #line 5455 "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 crypt (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { crypt (); ; return 0; } configure:5527: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 configure:5530: $? = 0 configure:5533: test -s conftest configure:5536: $? = 0 configure:5549: result: -lcrypt configure:5558: checking for __inet_ntoa in -lbind configure:5591: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lbind -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lbind collect2: ld returned 1 exit status configure:5594: $? = 1 configure: failed program was: #line 5565 "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 __inet_ntoa (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { __inet_ntoa (); ; return 0; } configure:5611: result: no configure:5623: checking for library containing fdatasync configure:5656: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 configure:5659: $? = 0 configure:5662: test -s conftest configure:5665: $? = 0 configure:5724: result: none required configure:5733: checking for shmget in -lcygipc configure:5766: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lcygipc -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lcygipc collect2: ld returned 1 exit status configure:5769: $? = 1 configure: failed program was: #line 5740 "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 shmget (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { shmget (); ; return 0; } configure:5786: result: no configure:5800: checking for readline configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/local/lib/libreadline.so: undefined reference to `tgetnum' /usr/local/lib/libreadline.so: undefined reference to `tgoto' /usr/local/lib/libreadline.so: undefined reference to `tgetflag' /usr/local/lib/libreadline.so: undefined reference to `BC' /usr/local/lib/libreadline.so: undefined reference to `tputs' /usr/local/lib/libreadline.so: undefined reference to `PC' /usr/local/lib/libreadline.so: undefined reference to `tgetent' /usr/local/lib/libreadline.so: undefined reference to `UP' /usr/local/lib/libreadline.so: undefined reference to `tgetstr' collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -ledit -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -ledit collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -ledit -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -ledit collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lreadline -lncurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -ledit -lncurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -ledit collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -lreadline -lcurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -lcurses collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5837: gcc -o conftest -O2 -I/usr/local/lib -I/usr/local/include -L/usr/local/lib conftest.c -ledit -lcurses -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 /usr/bin/ld: cannot find -ledit collect2: ld returned 1 exit status configure:5840: $? = 1 configure: failed program was: #line 5811 "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 readline (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { readline (); ; return 0; } configure:5883: result: no configure:5890: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support. ## ---------------- ## ## 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_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_DOCBOOKSTYLE_set= ac_cv_env_DOCBOOKSTYLE_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_host=i686-pc-linux-gnu ac_cv_host_alias=i686-pc-linux-gnu ac_cv_lib_BSD_main=no ac_cv_lib_IPC_main=no ac_cv_lib_PW_main=no ac_cv_lib_bind___inet_ntoa=no ac_cv_lib_bsd_main=yes ac_cv_lib_compat_main=no ac_cv_lib_cygipc_shmget=no ac_cv_lib_dl_main=yes ac_cv_lib_dld_main=no ac_cv_lib_gen_main=no ac_cv_lib_ipc_main=no ac_cv_lib_lc_main=no ac_cv_lib_ld_main=no ac_cv_lib_m_main=yes ac_cv_lib_nsl_main=yes ac_cv_lib_resolv_main=yes ac_cv_lib_socket_main=no ac_cv_lib_unix_main=no ac_cv_lib_util_setproctitle=no ac_cv_objext=o ac_cv_path_LD=/usr/bin/ld ac_cv_path_PERL=/usr/bin/perl ac_cv_path_TAR=/bin/tar ac_cv_prog_AWK=gawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_YACC='bison -y' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_g=yes ac_cv_prog_gnu_ld=yes ac_cv_search_crypt=-lcrypt ac_cv_search_fdatasync='none required' ac_cv_search_getopt_long='none required' pgac_cv_check_readline=no pgac_cv_path_flex=/usr/local/bin/flex ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "PostgreSQL" #define PACKAGE_TARNAME "postgresql" #define PACKAGE_VERSION "7.3.3" #define PACKAGE_STRING "PostgreSQL 7.3.3" #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org" #define PG_VERSION "7.3.3" #define DEF_PGPORT 5432 #define DEF_PGPORT_STR "5432" #define DEF_MAXBACKENDS 32 #define PG_VERSION_STR "PostgreSQL 7.3.3 on i686-pc-linux-gnu, compiled by GCC 2.96" #define PG_KRB_SRVNAM "postgres" #define USE_SSL 1 #define HAVE_LIBBSD 1 #define HAVE_LIBM 1 #define HAVE_LIBDL 1 #define HAVE_LIBNSL 1 #define HAVE_LIBRESOLV 1 configure: exit 1
John McGloughlin writes: > >> config.log (sorry for the BIG file ... wasn't sure if you wanted the > whole thing or not Looks like you need to install (or make available) the termcap library. -- Peter Eisentraut peter_e@gmx.net
John, The trick on my RedHat 7.3 system was to install the termcap-devel, readline-devel, and zlib-devel RPMs from the installationCDs. -dylan- > -----Original Message----- > From: John McGloughlin [mailto:johnmac@mcgloughlingroup.com] > Sent: Tuesday, June 17, 2003 21:03 > To: pgsql-admin@postgresql.org > Subject: [ADMIN] configure readline error > > > Hello, > > I'm having trouble with ./configure for Postgres 7.3.3 on a > RH7.3 i686 > system. > .... > checking for readline... no > readline library not found > if you have readline already installed ..... > > I've gone through config.log and it looks like it searches > the correct > locations. > > I have gnu readline 4.1 installed and can find libs in > /usr/local/lib/libreadline.a and headers in > /usr/local/lib/include/readline/*.h. > > I configured with ./configure > --with-includes=/usr/local/lib:/usr/local/lib/include/readline > --with-libraries=/usr/local/lib:/usr/local/lib/include/readline > --with-perl --with-openssl --with-syslog > > Unfortunately I keep getting the error. I've searched numerous lists, > groups, faqs, etc. but cannot seem to resolve the issue. Any > help would > be greatly appreciated. > > Thanx in advance! > > johnmac > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) >
That was it. ncurses-devel, termcap-devel, readline-devel fixed the problem. Thanx a bunch for all those that helped. johnmac Kuhn, Dylan K (4520500D) wrote: >John, > >The trick on my RedHat 7.3 system was to install the termcap-devel, readline-devel, and zlib-devel RPMs from the installationCDs. > >-dylan- > > > >>-----Original Message----- >>From: John McGloughlin [mailto:johnmac@mcgloughlingroup.com] >>Sent: Tuesday, June 17, 2003 21:03 >>To: pgsql-admin@postgresql.org >>Subject: [ADMIN] configure readline error >> >> >>Hello, >> >>I'm having trouble with ./configure for Postgres 7.3.3 on a >>RH7.3 i686 >>system. >>.... >>checking for readline... no >>readline library not found >>if you have readline already installed ..... >> >>I've gone through config.log and it looks like it searches >>the correct >>locations. >> >>I have gnu readline 4.1 installed and can find libs in >>/usr/local/lib/libreadline.a and headers in >>/usr/local/lib/include/readline/*.h. >> >>I configured with ./configure >>--with-includes=/usr/local/lib:/usr/local/lib/include/readline >>--with-libraries=/usr/local/lib:/usr/local/lib/include/readline >>--with-perl --with-openssl --with-syslog >> >>Unfortunately I keep getting the error. I've searched numerous lists, >>groups, faqs, etc. but cannot seem to resolve the issue. Any >>help would >>be greatly appreciated. >> >>Thanx in advance! >> >>johnmac >> >> >> >>---------------------------(end of >>broadcast)--------------------------- >>TIP 2: you can get off all lists at once with the unregister command >> (send "unregister YourEmailAddressHere" to >>majordomo@postgresql.org) >> >> >> > >---------------------------(end of broadcast)--------------------------- >TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > >