The qt ebuild is missing the correct include and lib paths for postgresql-8.3, so building with postgres-useflag fails: make[4]: Entering directory `/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/plugins/src/sqldrivers/psql' make[4]: `Makefile' is up to date. make[4]: Leaving directory `/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/plugins/src/sqldrivers/psql' make[3]: Leaving directory `/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/plugins/src/sqldrivers/psql' make[3]: Entering directory `/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/plugins/src/sqldrivers/psql' x86_64-pc-linux-gnu-g++ -c -pipe -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server -fno-exceptions -Wall -W -march=k8 -O2 -pipe -fno-strict-aliasing -D_REENTRANT -fPIC -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/main.o main.cpp In file included from main.cpp:42: ../../../../src/sql/drivers/psql/qsql_psql.h:47:22: error: libpq-fe.h: No such file or directory In file included from main.cpp:42: ../../../../src/sql/drivers/psql/qsql_psql.h:65: error: ISO C++ forbids declaration of 'PGresult' with no type ../../../../src/sql/drivers/psql/qsql_psql.h:65: error: expected ';' before '*' token ../../../../src/sql/drivers/psql/qsql_psql.h:92: error: expected `)' before '*' token ../../../../src/sql/drivers/psql/qsql_psql.h:110: error: ISO C++ forbids declaration of 'PGconn' with no type ../../../../src/sql/drivers/psql/qsql_psql.h:110: error: expected ';' before '*' token make[3]: *** [.obj/main.o] Error 1 make[3]: Leaving directory `/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/plugins/src/sqldrivers/psql' make[2]: *** [sub-psql] Error 2 make[2]: Leaving directory `/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/plugins/src/sqldrivers' make[1]: *** [sub-sqldrivers] Error 2 make[1]: Leaving directory `/home/tmp/portage/x11-libs/qt-3.3.8b/work/qt-x11-free-3.3.8b/plugins/src' make: *** [sub-plugins] Error 2 * ERROR: x11-libs/qt-3.3.8b failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2532: Called die * The specific snippet of code: * emake sub-tools || die; * The die message: * (no error message) * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/home/tmp/portage/x11-libs/qt-3.3.8b/temp/build.log'. * The ebuild environment file is located at '/home/tmp/portage/x11-libs/qt-3.3.8b/temp/environment'. Reproducible: Always
Please post your `emerge --info' too.
emerge --info Portage 2.2_rc5 (default/linux/amd64/2008.0, gcc-4.2.4, glibc-2.7-r2, 2.6.26 x86_64) ================================================================= System uname: Linux-2.6.26-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-50-with-glibc2.2.5 Timestamp of tree: Wed, 30 Jul 2008 20:17:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r5 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config /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/gconf /etc/gentoo-release /etc/init.d /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/pam.d /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo-portage.fem.tu-ilmenau.de/mirror/gentoo" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-z,combreloc" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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="/home/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/bangert /usr/local/portage" SYNC="rsync://gentoo-portage.fem.tu-ilmenau.de/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac accessibility acl acpi alsa amd64 amr amrnb amrwb authfile avi bash-completion berkdb boost bzip2 bzlib cairo chipcard chm cisco cli cracklib crypt css cups cvs dbus djvu dlloader dri dts dv dvd dvdr dvdread encode enscript exif fastcgi ffmpeg fftw flac fortran gcc-libffi gcj gd gdbm gif gimp git glitz gmp gnuplot gpm graphviz hal hbci htmlhandbook http hyperestraier iconv idl ieee1394 imagemagick inotify ipv6 isdnlog java java5 jikes jpeg kde kdehiddenvisibility kdepim kipi lame latex lcms libsamplerate live lm_sensors logrotate lucene lzo mad matroska midi mjpeg mmap mmx mmxext mng mp2 mp3 mp4 mpeg mplayer mtp mudflap multilib musicbrainz ncurses networkmanager nfs nls nolvm1 nptl nptlonly nsplugin obex ogg oggvorbis openal openexr opengl openmp pam patch pcre pda pdf perl pic plasma png posix postscript pppd pulseaudio python pyx qt qt3 quicktime readline reflection rtc samba sasl sdl sendfile session silvercity slang smime smp snmp soundtouch speex spell spl sqlite sse sse2 ssl subversion svg sysfs tcpd tetex theora threads tiff tk truetype unicode usb userlocales v4l v4l2 vorbis vorbis-psy x264 xattr xcb xcomposite xine xml xml2 xmp xorg xscreensaver xulrunner xv xvid xvmc yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS It's not only the missing include but also libpq which isn't found later. Adding "-I/usr/include/postgresql/" and "-L/usr/lib64/postgresql-8.3/lib64/" to myconf in the ebuild helps. But I doubt that this can be a solution.
I had the same problem (and with x11-libs/qt-sql too) because of /usr/lib64/libecpg.a that was still there from a 8.0 install, unmerged dev-db/postgresql-8.0.15 (equery belongs /usr/lib64/libecpg.a) and did a 'eselect postgresql set-all 8.3' followed by 'eselect postgresql update' (don't know if the last one is mandatory). And now, happily merging qt :-)
I had to manually create the symlinks specified in the postgres_symlinks array in /etc/eselect/postgresql/slots/8.3/base for anything which depends on postgresql-base to compile.
(In reply to comment #3) > I had the same problem (and with x11-libs/qt-sql too) because of > /usr/lib64/libecpg.a that was still there from a 8.0 install, unmerged > dev-db/postgresql-8.0.15 (equery belongs /usr/lib64/libecpg.a) and did a > 'eselect postgresql set-all 8.3' followed by 'eselect postgresql update' (don't > know if the last one is mandatory). And now, happily merging qt :-) > Thank you very much Cedric, that did the trick! I believe those eselects should be added to the postgresql-base ebuild.
Reassigning to postgresql maintainers, as this is not a Qt issue.
Created attachment 220549 [details] /var/tmp/portage/dev-libs/cyrus-sasl-2.1.23-r1/temp/build.log another versions, but the same error text
Neither package has a reason to exist anymore. *kablam*