Trying to emerge dev-db/postgresql-7.4.5 results in this during the configure stage of the build: checking for _LARGEFILE_SOURCE value needed for large files... no 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) config.log attached, but it doesn't seem to provide anything useful. It just stops without an error. Reproducible: Always Steps to Reproduce: 1.emerge postgresql 2. 3. Actual Results: See above. Expected Results: postgresql install successfully. Portage 2.0.50-r10 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.7-gentoo) ================================================================= System uname: 2.6.7-gentoo i686 AMD-K7(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts avi berkdb crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
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