Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59572 - libgda 1.0.4 fails to build with errors in postgres-related functions
Summary: libgda 1.0.4 fails to build with errors in postgres-related functions
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-05 16:34 UTC by Chris Woods
Modified: 2004-08-08 08:58 UTC (History)
1 user (show)

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


Attachments
Full transcript of libgda emerge. (libgda.log,247.90 KB, text/plain)
2004-08-07 21:32 UTC, Chris Woods
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Woods 2004-08-05 16:34:56 UTC
This does not appear to be the same bug as #41113. Configure detects postgresql as being present in /usr, and compilation continues until:

utils.c:29:28: libpq/libpq-fs.h: No such file or directory
utils.c: In function `gda_postgres_blob_open':
utils.c:201: error: `INV_READ' undeclared (first use in this function)
utils.c:201: error: (Each undeclared identifier is reported only once
utils.c:201: error: for each function it appears in.)
utils.c:204: error: `INV_WRITE' undeclared (first use in this function)
utils.c: In function `gda_postgres_blob_create':
utils.c:383: error: `INV_READ' undeclared (first use in this function)
utils.c:383: error: `INV_WRITE' undeclared (first use in this function)
make[2]: *** [utils.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/libgda-1.0.4/work/libgda-1.0.4/providers/postgres'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libgda-1.0.4/work/libgda-1.0.4/providers'
make: *** [all-recursive] Error 1

!!! ERROR: gnome-extra/libgda-1.0.4 failed.
!!! Function gnome2_src_compile, Line 38, Exitcode 2
!!! compile failure


Reproducible: Always
Steps to Reproduce:
1. emerge gnome-extra/libgda-1.0.4 with postgres USE flag.
2.
3.

Actual Results:  
Failed compilation as shown above.


Expected Results:  
Successful compilation and installation of the package.


Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040619-r1,
2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.5.2
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /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-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3ds X aalib aim alsa apm arts audiofile avi berkdb bonobo cdr crypt
cscope cups dga doc dvd emacs encode esd ethereal evo fam flash foomaticdb
gbgdbm gdbm ggi gif ginac gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guild
guile icq imagemagick imap imlib jabber java jpeg junit kde lcms ldap lesstif
libg++ libgda libwww mad maildir mikmod mmx mng motif mozilla mpeg msn ncurses
nls oci8 odbc oggvorbis ooo-kde openal opengl oscar oss pam pdflib perl
plotutils png postgres ppds python qt quicktime readline ruby samba sdl slang
speex spell ssl svga tcltk tcpd tetex tiff truetype unicode usb videos wmf x86
xml xml2 xmms xv yahoo zeo zlib"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2004-08-07 08:54:21 UTC
emm .. what version of postgres?

it works with mine. (postgresql-7.4.3-r1)
Comment 2 Chris Woods 2004-08-07 09:12:20 UTC
ACCEPT_KEYWORDS='~x86' emerge -pv postgresql:
dev-db/postgresql-7.4.3-r1  -debug +doc +java +libg++ +nls +pam +perl -pg-hier -pg-intdatetime -pg-vacuumdelay +python +readline +ssl +tcltk +zlib

Same version.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2004-08-07 18:04:36 UTC
please attach a log of the whole emerge of libgda.  do you actually have /usr/include/libpq/libpq-fs.h ? its present in my postgresql installation.
Comment 4 Chris Woods 2004-08-07 21:31:33 UTC
I don't have a /usr/include/libpq directory. However, after searching, I did find a /usr/include/postgresql directory, and /usr/include/postgresql/pgsql/libpq/libpq-fs.h.

As requested, a full transcript of the emerge of libgda is attached.

I tested by symlinking /usr/include/postgresql/pgsql to /usr/include/pgsql, and the compile progressed past that point, but failed further on building the docs.
Comment 5 Chris Woods 2004-08-07 21:32:38 UTC
Created attachment 36999 [details]
Full transcript of libgda emerge.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2004-08-08 07:48:15 UTC
the docs might be a seperate issue. but i'm pretty sure that the postgresql-7.4.3-r1 builds the symlink. you might want to emerge your postgresql again .. 
Comment 7 Chris Woods 2004-08-08 08:58:04 UTC
Hmm, seems you're right. I re-emerged postgresql and it did indeed create that symlink. Not sure why it didn't before, but that's not a libgda bug. I'm going to close this bug and pursue the next issue, apparently unrelated, with failing on the doc install. Sorry for the false alarm, and thanks for looking into it.