I try to update libpq++, a library for postgresql. Reproducible: Always Steps to Reproduce: 1. emerge -u libpq++ 2. 3. Actual Results: g++ -c -march=athlon-xp -O3 -pipe -DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT="" -I/usr/include pgconnection.cc g++ -c -march=athlon-xp -O3 -pipe -DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT="" -I/usr/include pgdatabase.cc In file included from pgconnection.cc:18: pgconnection.h:30:22: libpq-fe.h: No such file or directory In file included from pgconnection.cc:18: pgconnection.h:51: error: syntax error before `*' token pgconnection.h:52: error: syntax error before `*' token pgconnection.h:60: error: parse error before `)' token pgconnection.h:68: error: parse error before `char' pgconnection.h:71: error: syntax error before `*' token pgconnection.h:74: error: `PQnoticeProcessor' was not declared in this scope pgconnection.h:74: error: parse error before `,' token pgconnection.h:77: error: parse error before `char' pgconnection.cc: In constructor `PgConnection::PgConnection()': pgconnection.cc:31: error: class `PgConnection' does not have any field named ` pgConn' pgconnection.cc:31: error: class `PgConnection' does not have any field named ` pgResult' pgconnection.cc: In constructor `PgConnection::PgConnection(const char*)': pgconnection.cc:39: error: class `PgConnection' does not have any field named ` pgConn' pgconnection.cc:39: error: class `PgConnection' does not have any field named ` pgResult' pgconnection.cc:42: error: `Connect' undeclared (first use this function) pgconnection.cc:42: error: (Each undeclared identifier is reported only once for each function it appears in.) pgconnection.cc: In member function `void PgConnection::CloseConnection()': pgconnection.cc:63: error: `pgResult' undeclared (first use this function) pgconnection.cc:64: error: `PQclear' undeclared (first use this function) pgconnection.cc:66: error: `pgConn' undeclared (first use this function) pgconnection.cc:67: error: `PQfinish' undeclared (first use this function) pgconnection.cc: At global scope: pgconnection.cc:76: error: syntax error before `::' token pgconnection.cc:82: error: ISO C++ forbids declaration of `pgConn' with no type pgconnection.cc:82: error: `int pgConn' used prior to declaration pgconnection.cc:82: error: `conninfo' was not declared in this scope pgconnection.cc:82: error: `PQconnectdb' was not declared in this scope pgconnection.cc:85: error: ISO C++ forbids declaration of `pgCloseConnection' with no type pgconnection.cc:88: error: parse error before `return' pgconnection.cc:92: error: syntax error before `::' token pgconnection.cc:98: error: syntax error before `::' token pgconnection.cc:105: error: ISO C++ forbids declaration of `pgResult' with no type pgconnection.cc:105: error: `int pgResult' used prior to declaration pgconnection.cc:105: error: `query' was not declared in this scope pgconnection.cc:105: error: `PQexec' was not declared in this scope pgconnection.cc:108: error: parse error before `if' pgconnection.cc: In member function `int PgConnection::ExecCommandOk(const char*)': pgconnection.cc:117: error: `Exec' undeclared (first use this function) pgconnection.cc:117: error: `PGRES_COMMAND_OK' undeclared (first use this function) pgconnection.cc: In member function `int PgConnection::ExecTuplesOk(const char*)': pgconnection.cc:122: error: `Exec' undeclared (first use this function) pgconnection.cc:122: error: `PGRES_TUPLES_OK' undeclared (first use this function) pgconnection.cc: At global scope: pgconnection.cc:128: error: syntax error before `*' token pgconnection.cc: In member function `bool PgConnection::ConnectionBad() const': pgconnection.cc:143: error: `Status' undeclared (first use this function) pgconnection.cc:143: error: `CONNECTION_BAD' undeclared (first use this function) pgconnection.cc: In member function `const char* PgConnection::ErrorMessage() const': pgconnection.cc:148: error: `PQerrorMessage' undeclared (first use this function) pgconnection.cc: In member function `const char* PgConnection::DBName() const': pgconnection.cc:153: error: `PQdb' undeclared (first use this function) pgconnection.cc: At global scope: pgconnection.cc:156: error: syntax error before `::' token make: *** [pgconnection.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from pgdatabase.h:26, from pgdatabase.cc:18: pgconnection.h:30:22: libpq-fe.h: No such file or directory In file included from pgdatabase.h:26, from pgdatabase.cc:18: pgconnection.h:51: error: syntax error before `*' token pgconnection.h:52: error: syntax error before `*' token pgconnection.h:60: error: parse error before `)' token pgconnection.h:68: error: parse error before `char' pgconnection.h:71: error: syntax error before `*' token pgconnection.h:74: error: `PQnoticeProcessor' was not declared in this scope pgconnection.h:74: error: parse error before `,' token pgconnection.h:77: error: parse error before `char' In file included from pgdatabase.cc:18: pgdatabase.h:56: error: parse error before `)' token pgdatabase.h:57: error: parse error before `char' pgdatabase.cc: In member function `void PgDatabase::DisplayTuples(FILE*, bool, const char*, bool, bool) const': pgdatabase.cc:32: error: `PQprintOpt' undeclared (first use this function) pgdatabase.cc:32: error: (Each undeclared identifier is reported only once for each function it appears in.) pgdatabase.cc:32: error: parse error before `;' token pgdatabase.cc:34: error: `po' undeclared (first use this function) pgdatabase.cc:41: error: `pgResult' undeclared (first use this function) pgdatabase.cc:41: error: `PQprint' undeclared (first use this function) pgdatabase.cc: In member function `void PgDatabase::PrintTuples(FILE*, bool, bool, bool) const': pgdatabase.cc:52: error: parse error before `;' token pgdatabase.cc:61: error: `PQprint' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::Tuples() const': pgdatabase.cc:68: error: `PQntuples' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::CmdTuples() const': pgdatabase.cc:74: error: `PQcmdTuples' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::Fields()': pgdatabase.cc:82: error: `PQnfields' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::FieldName(int) const ': pgdatabase.cc:88: error: `PQfname' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::FieldNum(const char*) const ': pgdatabase.cc:94: error: `PQfnumber' undeclared (first use this function) pgdatabase.cc: At global scope: pgdatabase.cc:98: error: syntax error before `::' token pgdatabase.cc:104: error: syntax error before `::' token pgdatabase.cc: In member function `int PgDatabase::FieldSize(int) const': pgdatabase.cc:112: error: `PQfsize' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::FieldSize(const char*) const ': pgdatabase.cc:118: error: `PQfsize' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::GetValue(int, int) const': pgdatabase.cc:124: error: `PQgetvalue' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::GetValue(int, const char*) const': pgdatabase.cc:130: error: `PQgetvalue' undeclared (first use this function) pgdatabase.cc: In member function `bool PgDatabase::GetIsNull(int, int) const': pgdatabase.cc:136: error: `PQgetisnull' undeclared (first use this function) pgdatabase.cc: In member function `bool PgDatabase::GetIsNull(int, const char*) const': pgdatabase.cc:142: error: `PQgetisnull' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::GetLength(int, int) const': pgdatabase.cc:148: error: `PQgetlength' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::GetLength(int, const char*) const': pgdatabase.cc:154: error: `PQgetlength' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::GetLine(char*, int)': pgdatabase.cc:160: error: `pgConn' undeclared (first use this function) pgdatabase.cc:160: error: `PQgetline' undeclared (first use this function) pgdatabase.cc: In member function `void PgDatabase::PutLine(const char*)': pgdatabase.cc:166: error: `PQputline' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::OidStatus() const': pgdatabase.cc:172: error: `PQoidStatus' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::EndCopy()': pgdatabase.cc:178: error: `PQendcopy' undeclared (first use this function) make: *** [pgdatabase.o] Error 1 g++ -c -march=athlon-xp -O3 -pipe -DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT="" -I/var/tmp/portage/libpq++-4.0-r1/image/usr/include pgconnection.cc g++ -c -march=athlon-xp -O3 -pipe -DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT="" -I/var/tmp/portage/libpq++-4.0-r1/image/usr/include pgdatabase.ccIn file included from pgconnection.cc:18: pgconnection.h:30:22: libpq-fe.h: No such file or directory In file included from pgconnection.cc:18: pgconnection.h:51: error: syntax error before `*' token pgconnection.h:52: error: syntax error before `*' token pgconnection.h:60: error: parse error before `)' token pgconnection.h:68: error: parse error before `char' pgconnection.h:71: error: syntax error before `*' token pgconnection.h:74: error: `PQnoticeProcessor' was not declared in this scope pgconnection.h:74: error: parse error before `,' token pgconnection.h:77: error: parse error before `char' pgconnection.cc: In constructor `PgConnection::PgConnection()': pgconnection.cc:31: error: class `PgConnection' does not have any field named ` pgConn' pgconnection.cc:31: error: class `PgConnection' does not have any field named ` pgResult' pgconnection.cc: In constructor `PgConnection::PgConnection(const char*)': pgconnection.cc:39: error: class `PgConnection' does not have any field named ` pgConn' pgconnection.cc:39: error: class `PgConnection' does not have any field named ` pgResult' pgconnection.cc:42: error: `Connect' undeclared (first use this function) pgconnection.cc:42: error: (Each undeclared identifier is reported only once for each function it appears in.) pgconnection.cc: In member function `void PgConnection::CloseConnection()': pgconnection.cc:63: error: `pgResult' undeclared (first use this function) pgconnection.cc:64: error: `PQclear' undeclared (first use this function) pgconnection.cc:66: error: `pgConn' undeclared (first use this function) pgconnection.cc:67: error: `PQfinish' undeclared (first use this function) pgconnection.cc: At global scope: pgconnection.cc:76: error: syntax error before `::' token pgconnection.cc:82: error: ISO C++ forbids declaration of `pgConn' with no type pgconnection.cc:82: error: `int pgConn' used prior to declaration pgconnection.cc:82: error: `conninfo' was not declared in this scope pgconnection.cc:82: error: `PQconnectdb' was not declared in this scope pgconnection.cc:85: error: ISO C++ forbids declaration of `pgCloseConnection' with no type pgconnection.cc:88: error: parse error before `return' pgconnection.cc:92: error: syntax error before `::' token pgconnection.cc:98: error: syntax error before `::' token pgconnection.cc:105: error: ISO C++ forbids declaration of `pgResult' with no type pgconnection.cc:105: error: `int pgResult' used prior to declaration pgconnection.cc:105: error: `query' was not declared in this scope pgconnection.cc:105: error: `PQexec' was not declared in this scope pgconnection.cc:108: error: parse error before `if' pgconnection.cc: In member function `int PgConnection::ExecCommandOk(const char*)': pgconnection.cc:117: error: `Exec' undeclared (first use this function) pgconnection.cc:117: error: `PGRES_COMMAND_OK' undeclared (first use this function) pgconnection.cc: In member function `int PgConnection::ExecTuplesOk(const char*)': pgconnection.cc:122: error: `Exec' undeclared (first use this function) pgconnection.cc:122: error: `PGRES_TUPLES_OK' undeclared (first use this function) pgconnection.cc: At global scope: pgconnection.cc:128: error: syntax error before `*' token pgconnection.cc: In member function `bool PgConnection::ConnectionBad() const': pgconnection.cc:143: error: `Status' undeclared (first use this function) pgconnection.cc:143: error: `CONNECTION_BAD' undeclared (first use this function) pgconnection.cc: In member function `const char* PgConnection::ErrorMessage() const': pgconnection.cc:148: error: `PQerrorMessage' undeclared (first use this function) pgconnection.cc: In member function `const char* PgConnection::DBName() const': pgconnection.cc:153: error: `PQdb' undeclared (first use this function) pgconnection.cc: At global scope: pgconnection.cc:156: error: syntax error before `::' token In file included from pgdatabase.h:26, from pgdatabase.cc:18: pgconnection.h:30:22: libpq-fe.h: No such file or directory In file included from pgdatabase.h:26, from pgdatabase.cc:18: pgconnection.h:51: error: syntax error before `*' token pgconnection.h:52: error: syntax error before `*' token pgconnection.h:60: error: parse error before `)' token pgconnection.h:68: error: parse error before `char' pgconnection.h:71: error: syntax error before `*' token pgconnection.h:74: error: `PQnoticeProcessor' was not declared in this scope pgconnection.h:74: error: parse error before `,' token pgconnection.h:77: error: parse error before `char' In file included from pgdatabase.cc:18: pgdatabase.h:56: error: parse error before `)' token pgdatabase.h:57: error: parse error before `char' pgdatabase.cc: In member function `void PgDatabase::DisplayTuples(FILE*, bool, const char*, bool, bool) const': pgdatabase.cc:32: error: `PQprintOpt' undeclared (first use this function) pgdatabase.cc:32: error: (Each undeclared identifier is reported only once for each function it appears in.) pgdatabase.cc:32: error: parse error before `;' token pgdatabase.cc:34: error: `po' undeclared (first use this function) pgdatabase.cc:41: error: `pgResult' undeclared (first use this function) pgdatabase.cc:41: error: `PQprint' undeclared (first use this function) pgdatabase.cc: In member function `void PgDatabase::PrintTuples(FILE*, bool, bool, bool) const': pgdatabase.cc:52: error: parse error before `;' token pgdatabase.cc:61: error: `PQprint' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::Tuples() const': pgdatabase.cc:68: error: `PQntuples' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::CmdTuples() const': pgdatabase.cc:74: error: `PQcmdTuples' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::Fields()': pgdatabase.cc:82: error: `PQnfields' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::FieldName(int) const ': pgdatabase.cc:88: error: `PQfname' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::FieldNum(const char*) const ': pgdatabase.cc:94: error: `PQfnumber' undeclared (first use this function) pgdatabase.cc: At global scope: pgdatabase.cc:98: error: syntax error before `::' token pgdatabase.cc:104: error: syntax error before `::' token pgdatabase.cc: In member function `int PgDatabase::FieldSize(int) const': pgdatabase.cc:112: error: `PQfsize' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::FieldSize(const char*) const ': pgdatabase.cc:118: error: `PQfsize' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::GetValue(int, int) const': pgdatabase.cc:124: error: `PQgetvalue' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::GetValue(int, const char*) const': pgdatabase.cc:130: error: `PQgetvalue' undeclared (first use this function) pgdatabase.cc: In member function `bool PgDatabase::GetIsNull(int, int) const': pgdatabase.cc:136: error: `PQgetisnull' undeclared (first use this function) pgdatabase.cc: In member function `bool PgDatabase::GetIsNull(int, const char*) const': pgdatabase.cc:142: error: `PQgetisnull' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::GetLength(int, int) const': pgdatabase.cc:148: error: `PQgetlength' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::GetLength(int, const char*) const': pgdatabase.cc:154: error: `PQgetlength' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::GetLine(char*, int)': pgdatabase.cc:160: error: `pgConn' undeclared (first use this function) pgdatabase.cc:160: error: `PQgetline' undeclared (first use this function) pgdatabase.cc: In member function `void PgDatabase::PutLine(const char*)': pgdatabase.cc:166: error: `PQputline' undeclared (first use this function) pgdatabase.cc: In member function `const char* PgDatabase::OidStatus() const': pgdatabase.cc:172: error: `PQoidStatus' undeclared (first use this function) pgdatabase.cc: In member function `int PgDatabase::EndCopy()': pgdatabase.cc:178: error: `PQendcopy' undeclared (first use this function) make: *** [pgdatabase.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [pgconnection.o] Error 1 >>> Install libpq++-4.0-r1 into /var/tmp/portage/libpq++-4.0-r1/image/ category dev-libs install libpq++.so.4.0 /var/tmp/portage/libpq++-4.0-r1/image/usr/lib install: cannot stat `libpq++.so.4.0': No such file or directory make: *** [install] Error 1 !!! ERROR: dev-libs/libpq++-4.0-r1 failed. !!! Function einstall, Line 388, Exitcode 2 !!! einstall failed Expected Results: install cleanly # emerge info Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.23-win4lin) ================================================================= System uname: 2.4.23-win4lin i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.linux.no/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups curl dga directfb dvd encode esd evo fbcon flash foomaticdb gb gd gdbm gif gnome gnomedb gpm gtk gtk2 gtkhtml guile imap imlib imlib2 java jpeg kde ldap libg++ libgda libwww mad maildir mbox mcal mikmod mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python qt quicktime readline ruby samba scanner sdl slang slp spell sse ssl svga tcltk tcpd tiff truetype usb wmf x86 xface xml xml2 xmms xv zlib"
Created attachment 23962 [details, diff] patch against Makefile to make libpq++ compile
It works for me. Please retry emerge it. FYI, libpq++ was renamed to libpqpp.
libpqpp emerges fine, but kmusicdb is still dependent on ">=dev-libs/libpq++-4.0-r1"
Fixed the DEPEND.