Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306251 - dev-db/opendbx-1.4.4 cannot find postgresql headers
Summary: dev-db/opendbx-1.4.4 cannot find postgresql headers
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-21 20:43 UTC by Graham Murray
Modified: 2010-06-16 19:19 UTC (History)
0 users

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


Attachments
configure log (config.log,81.42 KB, text/plain)
2010-02-21 20:44 UTC, Graham Murray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2010-02-21 20:43:53 UTC
The configure check for postgresql is using
#include <libpq-fe.h> 
without -I/usr/include/postgresql
So the file is not found

emerge --info =dev-db/opendbx-1.4.4
Portage 2.2_rc63 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-rc8-00140-g4ec62b2 i686)
=================================================================                                          
                        System Settings                                                                    
=================================================================                                          
System uname: Linux-2.6.33-rc8-00140-g4ec62b2-i686-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.1 
Timestamp of tree: Sun, 21 Feb 2010 18:15:01 +0000                                                         
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests buildsyspkg distlocks fixpackages installsources news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.first-world.info/ http://de-mirror.org/distro/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.tiscali.nl/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed,-O1"
LINGUAS="en_GB en fr_FR fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/perl-experimental /var/lib/layman/sunrise /var/lib/layman/x11 /var/lib/layman/sping /var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa apache2 audiofile avi bash-completion berkdb bluetooth bonobo branding browserplugin bzip2 bzlib cairo caps cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cups curl cvs cxx dbus directfb doc dri dts dv dvd dvdr dvdread eds emacs emboss encode esd ethereal evo examples exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gcj gd gdbm geoip gif glut gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal htmlhandbook iconv icq icu idn imagemagick imlib ipv6 jabber jack java javascript jbig jce jpeg jpeg2k junit kde kdehiddenvisibility ladspa latex lcms ldap leim libgda libnotify libsamplerate libwww lm_sensors logrotate lua mad matroska mbox mikmod milter mime mmap mmx mng modplug modules mono mozilla mp3 mp4 mpeg mpi mplayer msn mudflap musepack ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pcntl pcre pdf perl plasma png policykit postgres ppds pppd profile pulseaudio python qt3support qt4 quicktime raw readline recode reflection ruby sasl sdl semantic-desktop session sharedmem sndfile snmp soap sockets sox speex spell spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs sysvipc tcl tcltk tcpd theora threads thunar tiff tk truetype uicktime unicode usb v4l v4l2 vim-syntax vorbis wavpack win32codecs wmf wxwindows x264 x86 xattr xcb xcomposite xface xft xine xml xml2 xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en fr_FR fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev vga v4l"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Graham Murray 2010-02-21 20:44:34 UTC
Created attachment 220631 [details]
configure log
Comment 2 Sven Wegener gentoo-dev 2010-05-09 08:54:00 UTC
I have a symlink:

lrwxrwxrwx 1 root root 38 May  9 08:52 /usr/include/libpq-fe.h -> /usr/include/postgresql-8.4/libpq-fe.h

It gets set by eselect postgresql. Can you check if and why this symlink is missing on your system?
Comment 3 Graham Murray 2010-05-09 10:00:02 UTC
(In reply to comment #2)
> I have a symlink:
> 
> lrwxrwxrwx 1 root root 38 May  9 08:52 /usr/include/libpq-fe.h ->
> /usr/include/postgresql-8.4/libpq-fe.h
> 
> It gets set by eselect postgresql. Can you check if and why this symlink is
> missing on your system?
> 

It was missing, and I do not know why. It was not created until I ran 'eselect postgresql --setall 8.4' even though eselect postgresql already showed 8.4 as being the 'active' version and I would expected (from the help description) 'eselect postgresql --update' to have created it.

newton ~ # ls -l /usr/include/libpq-fe.h
ls: cannot access /usr/include/libpq-fe.h: No such file or directory
newton ~ # eselect postgresql --show
8.4
newton ~ # eselect postgresql --show-all
Utilities:  8.4
Service:    8.4
newton ~ # eselect postgresql --update
newton ~ # ls -l /usr/include/libpq-fe.h
ls: cannot access /usr/include/libpq-fe.h: No such file or directory
newton ~ # eselect postgresql --set-all 8.4
newton ~ # ls -l /usr/include/libpq-fe.h
lrwxrwxrwx 1 root root 38 May  9 10:53 /usr/include/libpq-fe.h -> /usr/include/postgresql-8.4/libpq-fe.h
newton ~ # eselect postgresql --list
Available postgresql installations
  8.4 <-* <-S                base-8.4.3 docs-8.4.3 server-8.4.3
Comment 4 Aaron W. Swenson gentoo-dev 2010-05-09 15:48:00 UTC
On a "clean" install, the symbolic link is created properly by the dev-db/postgresql-base ebuilds.

Clean being the first time the PostgreSQL libraries are installed or the obsolete dev-db/libpq is un-merged prior to emerging dev-db/postgresql-base. If dev-db/libpq is un-merged after dev-db/postgresql-base, all sorts of nasty things can happen, including the removal of symbolic links and header files.

The transition to EAPI2 in the ebuilds didn't take into account that '!' is a soft block and that '!!' returns to the previous behavior. The upcoming commit should resolve this bug if that's the case.
Comment 5 Aaron W. Swenson gentoo-dev 2010-06-05 19:53:25 UTC
The -r1's have been committed to the tree. This bug should be resolved.
Comment 6 Patrick Lauer gentoo-dev 2010-06-16 19:01:59 UTC
Reopen if it's still an issue
Comment 7 Graham Murray 2010-06-16 19:19:36 UTC
It is working OK for me now.