Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98129 - dev-libs/libpqxx-2.5.5 configure unable to find libpq-fs.h
Summary: dev-libs/libpqxx-2.5.5 configure unable to find libpq-fs.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-06 08:28 UTC by Chris Woods
Modified: 2006-11-11 15:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log for libpqxx-2.5.5 failed install (config.log,48.81 KB, text/plain)
2005-07-06 08:29 UTC, Chris Woods
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Woods 2005-07-06 08:28:03 UTC
Upon emerge update, libpqxx configure script is unable to locate libpq-fs.h on my system. Currently installed are postgresql-8.0.1-r4 and libpq-8.0.1.

[...]
checking /usr/include/libpq/libpq-fs.h usability... no
checking /usr/include/libpq/libpq-fs.h presence... no
checking for /usr/include/libpq/libpq-fs.h... no
configure: error:
Can't find libpq-fs.h in /usr/include/libpq.
Please locate it and report your findings so this script can be corrected.

If the file is not on your system, either your libpq version is much newer than
your libpqxx version and has changed radically, or it is hopelessly out of date,

or your installation of the PostgreSQL client library is incomplete.

config.log attached separately.

emerge info:
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.1
1-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share
/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd
e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/default
s/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://130.207.108.134/pub
/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://nosferatu/gentoo-portage"
USE="x86 3dnow X aalib alsa apm arts avi bash-completion berkdb bitmap-fonts bzl
ib cdparanoia cdr crypt cscope cups curl directfb doc dvd dvdread eds emacs embo
ss encode esd examples fam flac foomaticdb fortran gd gdbm ggi gif gnome gpg gpm
 gstreamer gtk gtk2 guile imagemagick imlib java jpeg junit kde ldap libg++ libw
ww mad mikmod mime mmap mmx motif mozilla mp3 mpeg ncurses nls nptl nvidia odbc
ogg oggvorbis opengl oss pam pcre pdflib perl png posix postgres python qt quick
time readline ruby samba sdl slang sockets speex spell sqlite sse ssl svga tcltk
 tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis xine xml
 xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Chris Woods 2005-07-06 08:29:09 UTC
Created attachment 62773 [details]
config.log for libpqxx-2.5.5 failed install
Comment 2 Chris Woods 2005-07-06 08:45:44 UTC
Following up with info on libpq-fs.h and where it lives on my machine:


find / -name libpq-fs.h -print
/usr/include/postgresql/pgsql/libpq/libpq-fs.h
/usr/include/postgresql/server/libpq/libpq-fs.h
/usr/include/postgresql/libpq-4/libpq/libpq-fs.h
/usr/include/postgresql/libpq-4/server/libpq/libpq-fs.h
/usr/include/postgresql/libpq/libpq-fs.h
/usr/include/postgresql/libpq-3/libpq/libpq-fs.h
/usr/include/postgresql/libpq-3/server/libpq/libpq-fs.h

# ls -l /usr/include/libpq/libpq-fs.h
/usr/include/libpq/libpq-fs.h -> ../postgresql/libpq-3/libpq/libpq-fs.h

Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2005-07-06 10:25:54 UTC
It's caused by libpq problem.
Re-emerge libpq should fix the problem.

Can you re-emrge libpq, then libpqxx again please?
Comment 4 Chris Woods 2005-07-06 16:39:00 UTC
A re-emerge of libpq and then libpqxx did resolve it. They both installed
properly, thanks.

I'm not going to close the bug though, assuming it's been delegated to the
appropriate person for dissection.

Thanks!
Comment 5 David Grant 2006-09-13 02:10:42 UTC
I am getting a similar error:

configure: error:
Can't find libpq-fe.h in /usr/include/postgresql/pgsql.  Are you sure the libpq
headers are installed correctly?  They should be in the directory returned by
"pg_config --includedir".

If you do have libpq (the C-language client library for PostgreSQL) installed,
make sure you have the related development materials--mainly its header files--
as well as the library binary.  Some system distributions keep the two in
seperate packages with names like "alibrary" and "alibrary-dev", respectively.
In that case, make sure you have the latter installed as well.


!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/libpqxx-2.5.5/work/libpqxx-2.5.5/config.log

!!! ERROR: dev-libs/libpqxx-2.5.5 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  libpqxx-2.5.5.ebuild, line 20:   Called econf '--enable-shared'
  ebuild.sh, line 540:   Called die

# emerge --info
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 23:30:05 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo/ http://modzer0.cs.uaf.edu/public/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/"
LANG="en_CA.UTF-8"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/gentopia /usr/portage/local/layman/sunrise /usr/portage/local/layman/wrobel /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 3ds X Xaw3d aac aalib acpi ada alsa ansi anthy apache2 artworkextra asf async atlas audiofile bash-completion berkdb bigger-fonts bitmap-fonts browserplugin bzip2 c++ cairo canvas cdparanoia cdr cgi cli cpudetection crypt css ctype cups curl cvs dba dbus dga dhcp directfb divx4linux dri dv dvd dvdr dvdread dynagraph eds elibc_glibc emacs emboss encode escreen exif fam fame fastbuild fastcgi fbcon ffmpeg fftw firefox flac foomaticdb force-cgi-redirect fortran ftp gcj gd gdbm gif gimp gimpprint ginac glut gmp gnokii gnome-print gnuplot gphoto2 gpm gprof gstreamer gtk gtk2 gtkhtml guile hal hddtemp iconv icq idn imagemagick imap imlib imlib2 input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jce joystick jpeg jpeg2k junit kde kdeenablefinal kdexdeltas kerberos kernel_linux kipi krb4 lapack latex lcms ldap lesstif libcaca libclamav libg++ linguas_en linguas_en_GB linguas_en_US live lm_sensors logitech-mouse logrotate lzo mad maildir matroska memlimit mhash migemo mikmod mjpeg mmx mmxext mng mono motif mozdevelop mozilla mozsvg mp3 mpeg mplayer mplot3d mppe-mppc msn musepack musicbrainz mysql nas nautilus ncurses net nethack network nfs nis nls nntp no-old-linux noplugin nptl nptlonly nsplugin nvidia oav offensive ofx ogg oggvorbis openal opengl openssl oscar pam pcre pda pdf pdo-external perl php pic plotutils png posix postgres povray ppds pppd python qhull qt3 qt4 quicktime quotas quotes rdesktop readline real reflection ruby samba sasl screen sdl sensord server session simplexml slang sms smtp soap sockets spell spl sqlite sse ssl subtitles subversion svg svga tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer truetype truetype-fonts type1 type1-fonts udev usb userland_GNU userlocales utf8 v4l v4l2 vcd vhosts video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga virus-scan visualization vorbis webdav webservices wifi win32codecs wmf wv wxpython wxwindows xanim xbase xcomposite xine xml xml2 xmlwriter xorg xosd xprint xscreensaver xsl xv xvid yahoo yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I tried rebuilding libpq but that didn't help. Here's some more info:

# pg_config --includedir
/usr/include/postgresql/pgsql

# locate libpq-fe.h
/usr/include/libpq-fe.h
/usr/include/postgresql/libpq-3/libpq-fe.h
/usr/include/postgresql/libpq-4/libpq-fe.h
/usr/include/postgresql/libpq-fe.h
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2006-11-11 15:52:21 UTC
It seems that this problem occurs when libpq-7* and libpq-8* are installed together: The slotting of those is broken, we recently introduced dependency-blockers which should avoid this problem.