Output: checking for rint... yes checking for srandom... yes checking for strcasecmp... yes checking for strdup... yes checking for strerror... yes checking for strtol... yes checking for strtoul... yes checking for getaddrinfo... yes checking for getopt_long... yes checking for rl_completion_append_character... yes checking for rl_completion_matches... yes checking for rl_filename_completion_function... yes checking for replace_history_entry... yes checking for finite... yes checking for sigsetjmp... yes checking for syslog... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for optreset... no checking for strtoll... yes checking for strtoull... yes checking for atexit... yes 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. config.log see attachment Workaround: cd /lib; ln libtermcap.so.2.0.8 libtermcap.so.2
Created attachment 39114 [details] config.log
Curious! This just happened to me too. Only this time, upgrading FROM v7.4.3-r1 to v7.4.5 of postgresql ... Same problem, missing libtermcap.so.2, probably same fix too. This is for x86.
Seems to be a problem with the ebuild for sys-libs/libtermcap-compat-1.2.3-r1. Creates a symlink from libtermcap.so.2.0.8 to libtermcap.so, also needs to create one from libtermcap.so.2.0.8 tolibtermcap.so.2. Already seems to happen in ebuild for sys-libs/libtermcap-compat-2.0.8-r1.ebuild.
Re-emerging libcap-compat fixed it for me. Probably the ebuild changed after I emerged it, and it didn't get picked up by portage. The symlinks get created correctly now
I can confirm that reemerging libtermcap-compat seems to work. But something odd is going on: # l /lib/libtermcap.so.2 lrwxr-xr-x 1 root root 19 Sep 7 11:43 /lib/libtermcap.so.2 -> libtermcap.so.2.0.8* # qpkg -f /lib/libtermcap.so.2 sys-libs/libtermcap-compat * # qpkg -l libtermcap-compat sys-libs/libtermcap-compat-1.2.3-r1 * CONTENTS: /etc /etc/termcap /lib /lib/libtermcap.so.2.0.8 /lib/libtermcap.so -> libtermcap.so.2.0.8 1094556418 /usr /usr/lib /usr/lib/libtermcap.a /usr/lib/libtermcap.so /usr/share /usr/share/doc /usr/share/doc/libtermcap-compat-1.2.3-r1 /usr/share/doc/libtermcap-compat-1.2.3-r1/README.gz /usr/share/doc/libtermcap-compat-1.2.3-r1/ChangeLog.gz Where is /lib/libtermcap.so.2?
I just hit this one too with a new gentoo installation ... same workaround with postgresql-7.4.5 [veldy@ekg veldy]$ emerge info Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8.1) ================================================================= System uname: 2.6.8.1 i686 Pentium II (Deschutes) 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="-Os -mcpu=pentium2 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -mcpu=pentium2 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.seren.com/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X509 aalib accounting acpi aim ansi apache2 async bcmath bdf berkdb bitmap-fonts bonobo bzlib c caps cdb cddb cdf cdr cdrom cgi clamav crypt ctype cups curl curlwrappers dio encode f77 fam foomaticdb ftp gcj gdbm gif gmtfull gmthigh gmtsuppl gmttria guile hardenedphp hbci iconv idea imap imlib inifile java javascript jpeg lcms ldap libg++ libwww lzw lzw-tiff mad maildir mcal mcve mhash mikmod mime mmx mono native ncurses neural nls nntp nptl ntlm oggvorbis oss pam pcntl pcre pdf pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php pic pie png posix postgres postgresql procmail pthreads python readline recode rtc samba sasl sdl session shared sharedmem slang slp smime soap sockets spell spl ssl svga szip tcpd tiff truetype usb uudeview x86 xinetd xml2 xmlrpc xsl zlib"
Can you try postgresql-7.4.5-r1? The ebuild should be fixed. I'm going to mark it stable in several days. *** This bug has been marked as a duplicate of 63073 ***