seamonkey-1.1.12 fails to build with USE="postgres" fails because it is unable to find libpq-fe.h, which is installed from dev-db/postgresql-base , removing the flag allows for successful building. [ebuild R ] dev-db/postgresql-base-8.3.4 USE="ldap nls pam readline ssl zlib -doc -kerberos -pg-intdatetime -threads" LINGUAS="-af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" 0 kB [ebuild R ] www-client/seamonkey-1.1.12 USE="crypt gnome java ldap postgres* -debug -ipv6 -mozdevelop -moznocompose -moznoirc -moznomail -moznopango -moznoroaming -xforms -xinerama -xprint" Reproducible: Always Steps to Reproduce: 1.USE="postgres" emerge =www-client/seamonkey-1.1.12 2. 3. Actual Results: In file included from mozSqlResultPgsql.cpp:38: mozSqlResultPgsql.h:39:22: error: libpq-fe.h: No such file or directory In file included from mozSqlConnectionPgsql.cpp:38: mozSqlConnectionPgsql.h:39:22: error: libpq-fe.h: No such file or directory In file included from mozSqlConnectionPgsql.cpp:38: mozSqlConnectionPgsql.h:78: error: ISO C++ forbids declaration of 'PGconn' with no type mozSqlConnectionPgsql.h:78: error: expected ';' before '*' token In file included from mozSqlResultPgsql.cpp:38: mozSqlResultPgsql.h:49: error: 'PGresult' has not been declared mozSqlResultPgsql.h:50: error: 'PGresult' has not been declared mozSqlResultPgsql.h:70: error: ISO C++ forbids declaration of 'PGresult' with no type mozSqlResultPgsql.h:70: error: expected ';' before '*' token mozSqlResultPgsql.h:71: error: ISO C++ forbids declaration of 'PGresult' with no type mozSqlResultPgsql.h:71: error: expected ';' before '*' token mozSqlResultPgsql.cpp: In constructor 'mozSqlResultPgsql::mozSqlResultPgsql(mozISqlConnection*, const nsAString_internal&)': mozSqlResultPgsql.cpp:43: error: class 'mozSqlResultPgsql' does not have any field named 'mResult' mozSqlResultPgsql.cpp:44: error: class 'mozSqlResultPgsql' does not have any field named 'mTypes' mozSqlResultPgsql.cpp: At global scope: mozSqlResultPgsql.cpp:49: error: variable or field 'SetResult' declared void mozSqlResultPgsql.cpp:49: error: 'PGresult' was not declared in this scope mozSqlResultPgsql.cpp:49: error: 'aResult' was not declared in this scope mozSqlResultPgsql.cpp:50: error: 'PGresult' was not declared in this scope mozSqlResultPgsql.cpp:50: error: 'aTypes' was not declared in this scope mozSqlResultPgsql.cpp: In member function 'PRInt32 mozSqlResultPgsql::GetColType(PRInt32)': mozSqlResultPgsql.cpp:72: error: 'mResult' was not declared in this scope mozSqlResultPgsql.cpp:72: error: 'PQftype' was not declared in this scope mozSqlResultPgsql.cpp:74: error: 'mTypes' was not declared in this scope mozSqlResultPgsql.cpp:74: error: 'PQntuples' was not declared in this scope mozSqlResultPgsql.cpp:75: error: 'PQgetvalue' was not declared in this scope mozSqlResultPgsql.cpp: In member function 'virtual nsresult mozSqlResultPgsql::BuildColumnInfo()': mozSqlResultPgsql.cpp:107: error: 'mResult' was not declared in this scope mozSqlResultPgsql.cpp:107: error: 'PQnfields' was not declared in this scope mozSqlResultPgsql.cpp:108: error: 'PQfname' was not declared in this scope mozSqlResultPgsql.cpp:111: error: 'PQfsize' was not declared in this scope mozSqlResultPgsql.cpp:112: error: 'PQfmod' was not declared in this scope mozSqlResultPgsql.cpp: In member function 'virtual nsresult mozSqlResultPgsql::BuildRows()': mozSqlResultPgsql.cpp:129: error: 'mResult' was not declared in this scope mozSqlResultPgsql.cpp:129: error: 'PQntuples' was not declared in this scope mozSqlResultPgsql.cpp:137: error: 'PQgetisnull' was not declared in this scope mozSqlResultPgsql.cpp:138: error: 'PQgetvalue' was not declared in this scope mozSqlResultPgsql.cpp: In member function 'virtual void mozSqlResultPgsql::ClearNativeResult()': mozSqlResultPgsql.cpp:170: error: 'mResult' was not declared in this scope mozSqlResultPgsql.cpp:171: error: 'PQclear' was not declared in this scope mozSqlResultPgsql.cpp:174: error: 'mTypes' was not declared in this scope mozSqlResultPgsql.cpp:175: error: 'PQclear' was not declared in this scope In file included from mozSqlConnectionPgsql.cpp:39: mozSqlResultPgsql.h:49: error: 'PGresult' has not been declared mozSqlResultPgsql.h:50: error: 'PGresult' has not been declared mozSqlResultPgsql.h:70: error: ISO C++ forbids declaration of 'PGresult' with no type mozSqlResultPgsql.h:70: error: expected ';' before '*' token mozSqlResultPgsql.h:71: error: ISO C++ forbids declaration of 'PGresult' with no type mozSqlResultPgsql.h:71: error: expected ';' before '*' token mozSqlConnectionPgsql.cpp: In constructor 'mozSqlConnectionPgsql::mozSqlConnectionPgsql()': mozSqlConnectionPgsql.cpp:42: error: class 'mozSqlConnectionPgsql' does not have any field named 'mConnection' mozSqlConnectionPgsql.cpp: In destructor 'virtual mozSqlConnectionPgsql::~mozSqlConnectionPgsql()': mozSqlConnectionPgsql.cpp:48: error: 'mConnection' was not declared in this scope mozSqlConnectionPgsql.cpp:49: error: 'PQfinish' was not declared in this scope mozSqlConnectionPgsql.cpp: In member function 'virtual nsresult mozSqlConnectionPgsql::Init(const nsAString_internal&, PRInt32, const nsAString_internal&, const nsAString_internal&, const nsAString_internal&)': mozSqlConnectionPgsql.cpp:65: error: 'mConnection' was not declared in this scope mozSqlConnectionPgsql.cpp:75: error: 'mConnection' was not declared in this scope mozSqlConnectionPgsql.cpp:79: error: 'PQsetdbLogin' was not declared in this scope mozSqlConnectionPgsql.cpp: In member function 'nsresult mozSqlConnectionPgsql::Setup()': mozSqlConnectionPgsql.cpp:119: error: 'mConnection' was not declared in this scope mozSqlConnectionPgsql.cpp:119: error: 'PQstatus' was not declared in this scope mozSqlConnectionPgsql.cpp:119: error: 'CONNECTION_BAD' was not declared in this scope mozSqlConnectionPgsql.cpp:120: error: 'PQerrorMessage' was not declared in this scope gmake[5]: *** [mozSqlResultPgsql.o] Error 1 gmake[5]: mozSqlConnectionPgsql.cpp:125: error: 'mConnection' was not declared in this scope *** Waiting for unfinished jobs.... mozSqlConnectionPgsql.cpp:125: error: 'PQsetClientEncoding' was not declared in this scope mozSqlConnectionPgsql.cpp:138: error: 'PGresult' was not declared in this scope mozSqlConnectionPgsql.cpp:138: error: 'result' was not declared in this scope mozSqlConnectionPgsql.cpp:138: error: 'PQexec' was not declared in this scope mozSqlConnectionPgsql.cpp:139: error: 'PQresultStatus' was not declared in this scope mozSqlConnectionPgsql.cpp:140: error: 'PGRES_TUPLES_OK' was not declared in this scope mozSqlConnectionPgsql.cpp:141: error: 'PQresultErrorMessage' was not declared in this scope mozSqlConnectionPgsql.cpp:144: error: 'PQgetvalue' was not declared in this scope mozSqlConnectionPgsql.cpp: In member function 'virtual nsresult mozSqlConnectionPgsql::RealExec(const nsAString_internal&, mozISqlResult**, PRInt32*)': mozSqlConnectionPgsql.cpp:180: error: 'mConnection' was not declared in this scope mozSqlConnectionPgsql.cpp:183: error: 'PGresult' was not declared in this scope mozSqlConnectionPgsql.cpp:183: error: 'r' was not declared in this scope mozSqlConnectionPgsql.cpp:184: error: 'mConnection' was not declared in this scope mozSqlConnectionPgsql.cpp:184: error: 'PQexec' was not declared in this scope mozSqlConnectionPgsql.cpp:185: error: 'PQresultStatus' was not declared in this scope mozSqlConnectionPgsql.cpp:187: error: 'PQstatus' was not declared in this scope mozSqlConnectionPgsql.cpp:187: error: 'CONNECTION_BAD' was not declared in this scope mozSqlConnectionPgsql.cpp:188: error: 'PQreset' was not declared in this scope mozSqlConnectionPgsql.cpp:196: error: 'PGRES_TUPLES_OK' was not declared in this scope mozSqlConnectionPgsql.cpp:207: error: 'PQnfields' was not declared in this scope mozSqlConnectionPgsql.cpp:211: error: 'PQftype' was not declared in this scope mozSqlConnectionPgsql.cpp:220: error: 'types' was not declared in this scope mozSqlConnectionPgsql.cpp:224: error: 'PQresultErrorMessage' was not declared in this scope mozSqlConnectionPgsql.cpp:246: error: 'PGRES_COMMAND_OK' was not declared in this scope mozSqlConnectionPgsql.cpp:249: error: 'PQcmdTuples' was not declared in this scope mozSqlConnectionPgsql.cpp:250: error: 'PQoidValue' was not declared in this scope mozSqlConnectionPgsql.cpp:253: error: 'PQresultErrorMessage' was not declared in this scope mozSqlConnectionPgsql.cpp: In member function 'virtual nsresult mozSqlConnectionPgsql::CancelExec()': mozSqlConnectionPgsql.cpp:263: error: 'mConnection' was not declared in this scope mozSqlConnectionPgsql.cpp:263: error: 'PQrequestCancel' was not declared in this scope mozSqlConnectionPgsql.cpp:264: error: 'PQerrorMessage' was not declared in this scope gmake[5]: *** [mozSqlConnectionPgsql.o] Error 1 Portage 2.2_rc11 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.24-gentoo-r8-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.0 Timestamp of tree: Fri, 26 Sep 2008 19:04:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.4.4-r13, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 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.63 sys-devel/automake: 1.4_p6, 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: 2.2.6a virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -g -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -g -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-v -a --with-bdeps=y" FEATURES="ccache collision-protect distlocks metadata-transfer nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://gentoo.osuosl.org/ " LDFLAGS="-Wl,-O1" MAKEOPTS="-j5" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/mike/myebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa apache2 avi bash-completion bluetooth branding bzip2 cairo cdr cli compat cracklib crypt cups dbcpalsa dbus dri dvd dvdr dvdread emboss encode evo fam firefox firfox ftp gd gdbm gif gnome gpm gstreamer gtk hal hddtemp iconv intel isdnlog java java5 java6 javamail jbdc jboss jpeg ldap libnotify libwww logitech mad mailwrapper midi mikmod mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ntp nvidia odbc ogg opengl openmp pam pcre pdf perl png postgres ppds pppd python qt3support quicktime rar readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vim vim-completion vim-syntax vim-with-x vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="proxy_http 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 proxy" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
It should probably depend on dev-db/libpq instead.
can't with postgresql-base installed: [ebuild N ] dev-db/libpq-8.2.7 USE="nls pam readline ssl zlib -kerberos -pg-intdatetime -threads" 12,282 kB [blocks B ] dev-db/libpq ("dev-db/libpq" is blocking dev-db/postgresql-base-8.3.4) [blocks B ] dev-db/libpq ("dev-db/libpq" is blocking app-admin/eselect-postgresql-0.3) [blocks B ] dev-db/postgresql-base ("dev-db/postgresql-base" is blocking dev-db/libpq-8.2.7) -Mike
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.
seamonkey-1.1.14 failed for me with the same symptom: i686-pc-linux-gnu-g++ -o mozSqlResultPgsql.o -c -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2008121909 -I ../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/locale -I../../../../dist/include/rdf -I../../ ../../dist/include/dom -I../../../../dist/include/layout -I../../../../dist/include/sql -I../../../../dist/include -I/usr/include/nspr -I/usr/include -fPIC -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -fno -rtti -fno-handle-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtu al-dtor -Wno-long-long -march=pentium4 -Wno-return-type -w -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -DGEN TOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -DMOZILLA_CLIENT -include ../../.. /../mozilla-config.h -Wp,-MD,.deps/mozSqlResultPgsql.pp mozSqlResultPgsql.cpp In file included from mozSqlResultPgsql.cpp:38: mozSqlResultPgsql.h:39:22: error: libpq-fe.h: No such file or directory Performing 'eselect postgresql set 8.3' the missing links have been created.
seamonkey-1.1.x is deprecated and will vanish from portage as soon as bug #314009 is fixed. Seamonkey-2 has no postgres USE flag so nothing to fix in this bug.
+ 02 Jun 2010; Patrick Lauer <patrick@gentoo.org> + +postgresql-base-7.4.29-r1.ebuild, +postgresql-base-8.0.25-r1.ebuild, + +postgresql-base-8.1.21-r1.ebuild, +postgresql-base-8.2.17-r1.ebuild, + +postgresql-base-8.3.11-r1.ebuild, + +files/postgresql-base-8.4-9.0-heimdal_strlcpy.patch, + +postgresql-base-8.4.4-r1.ebuild, +postgresql-base-9.0_beta1-r1.ebuild: + Fixes for #313765, #251046, #294462, #300793, #274836, #296714, #238817, + #278228, #263096, #246397, #285953. Thanks to Aaron Swenson for collecting + the fixes and testing.