Summary: | dev-db/postgresql-7.4.5 fails in configure on "checking test program" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Woods <chris> |
Component: | [OLD] Unspecified | Assignee: | PgSQL Bugs <pgsql-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | esigra, fabien.fivaz, jgonzalez.openinput |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | config.log from postgresql-7.4.5 build attempt |
Description
Chris Woods
2004-09-07 18:55:14 UTC
Created attachment 39172 [details]
config.log from postgresql-7.4.5 build attempt
does the error happen with postgresql-7.4.3-r1 too? I get exactly the same error. emerge -u wants to upgrade from postgresql-7.4.3-r1 to postgresql-7.4.5 and stops with checking for fseeko... (cached) yes checking test program... failed configure: error: *** Could not execute a simple test program. This may be a problem *** related to locating shared libraries. Check the file 'config.log' *** for the exact reason. !!! ERROR: dev-db/postgresql-7.4.5 failed. !!! Function src_compile, Line 127, Exitcode 1 !!! (no error message) postgresql-7.4.3-r1 was installed properly some time ago, however, if I try to replace it with 7.4.3-r1, configure doesn't go through any more and I get a similar error: checking for fseeko... (cached) yes checking test program... failed configure: error: *** Could not execute a simple test program. This may be a problem *** related to locating shared libraries. Check the file 'config.log' *** for the exact reason. !!! ERROR: dev-db/postgresql-7.4.3-r1 failed. !!! Function src_compile, Line 127, Exitcode 1 !!! (no error message) Ok, revdep-rebuild fixed it for me. It was rebuilding my python package and postgresql-7.4.3-r1 and now also the upgrade to postgresql-7.4.5 worked fine. I would give it a try, Chris. Confirmed. But intermittend and not easy to catch error ;-) Today i have updatend 8 machines... 6 without problems, one needs only a revdep-rebuild and the last......: [...] checking for fseeko... (cached) yes checking test program... failed configure: error: *** Could not execute a simple test program. This may be a problem *** related to locating shared libraries. Check the file 'config.log' *** for the exact reason. !!! ERROR: dev-db/postgresql-7.4.5 failed. !!! Function src_compile, Line 127, Exitcode 1 !!! (no error message) castor:~ # revdep-rebuild Checking reverse dependencies... Packages containing binaries and libraries broken by any package update, will be recompiled. Collecting system binaries and libraries... done. (/root/.revdep-rebuild.1_files) Collecting complete LD_LIBRARY_PATH... done. (/root/.revdep-rebuild.2_ldpath) Checking dynamic linking consistency... broken /usr/lib/libJavaReadline.so (requires libtermcap.so.2) broken /usr/lib/postgresql/pltcl.so (requires libtcl8.3.so) broken /usr/lib/libpgtcl.so.2.4 (requires libtcl8.3.so) broken /usr/bin/pgtksh (requires libtk8.3.so libtcl8.3.so libtcl8.3.so) broken /usr/bin/nxtvepg (requires libtk8.3.so libtcl8.3.so) broken /usr/bin/pgtclsh (requires libtcl8.3.so libtcl8.3.so) broken /opt/opera/lib/opera/plugins/operamotifwrapper-1 (requires libXm.so.1) broken /opt/opera/lib/opera/plugins/operamotifwrapper-3 (requires libXm.so.3) done. (/root/.revdep-rebuild.3_rebuild) Assigning files to ebuilds... done. (/root/.revdep-rebuild.4_ebuilds) Evaluating package order... done. (/root/.revdep-rebuild.5_order) All prepared. Starting rebuild... emerge --oneshot --nodeps =dev-java/libreadline-java-0.8.0 =dev-db/postgresql-7.4.3-r1 =media-tv/nxtvepg-2.6.0 =net-www/opera-7.54 .......... [.... a lot of messages ..... :~] checking for fseeko... (cached) yes checking test program... failed configure: error: *** Could not execute a simple test program. This may be a problem *** related to locating shared libraries. Check the file 'config.log' *** for the exact reason. !!! ERROR: dev-db/postgresql-7.4.3-r1 failed. !!! Function src_compile, Line 127, Exitcode 1 !!! (no error message) [...] Fix: config.log says configure:13185: checking for fseeko configure:13228: result: yes configure:13552: checking test program configure:13564: gcc -o conftest -march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-addr -fno-strict-aliasing -D_GNU_SOURCE conftest.c -lpam -lssl -lcrypto -lz -lreadline -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd >&5 configure:13567: $? = 0 configure:13569: ./conftest ./conftest: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory configure:13572: $? = 127 configure: program exited with status 127 configure: failed program was: #line 13558 "configure" #include "confdefs.h" int main() { return 0; } configure:13581: result: failed configure:13586: error: *** Could not execute a simple test program. This may be a problem find / -name libtermcap.so.2 [nothing] emerge sys-libs/libtermcap-compat --> This will rebuild libtermcap.so.2, after that postgresq emerges without problems. The build did succeed after a revdep-rebuild. Same as Ernst here... a emerge sys-libs/libtermcap-compat did the trick, no success with revdep-rebuild I've added postgresql-7.4.5-r1 which doesn't use termcap library even if it's installed. It should fix this problem. See also bug 63073. *** This bug has been marked as a duplicate of 63073 *** On one of my systems, this bug exhibited itself because a NEWER version of libtermcap was present, and the configure script specifically looks for libtermcap.so.2. Since I already had libtermcap.so.2.0.8, a soft link was more than enough to fix the problem. Try the following command (and then try to compile postgresql-7.4.5 again): ln -s /lib/libtermcap.so.2.0.8 /lib/libtermcap.so.2 |