Cyrus-sasl seems to choke on some postgresql includes... Reproducible: Always Steps to Reproduce: 1. emerge cyrus-sasl-2.1.17 2. 3. Actual Results: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb -I../include -I/usr/include -Wall -W -O2 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe -MT sql_init.lo -MD -MP -MF .deps/sql_init.Tpo -c sql_init.c -fPIC -DPIC -o sql_init.lo sql.c:178:22: libpq-fe.h: No such file or directory sql.c: In function `_pgsql_open': sql.c:184: error: `PGconn' undeclared (first use in this function) sql.c:184: error: (Each undeclared identifier is reported only once sql.c:184: error: for each function it appears in.) sql.c:184: error: `conn' undeclared (first use in this function) sql.c:242: warning: implicit declaration of function `PQconnectdb' sql.c:245: warning: implicit declaration of function `PQstatus' sql.c:245: error: `CONNECTION_OK' undeclared (first use in this function) sql.c:246: warning: implicit declaration of function `PQerrorMessage' sql.c: In function `_pgsql_escape_str': sql.c:255: warning: implicit declaration of function `PQescapeString' sql.c: In function `_pgsql_exec': sql.c:261: error: `PGresult' undeclared (first use in this function) sql.c:261: error: `result' undeclared (first use in this function) sql.c:263: error: `ExecStatusType' undeclared (first use in this function) sql.c:263: error: syntax error before "status" sql.c:266: warning: implicit declaration of function `PQexec' sql.c:269: error: `status' undeclared (first use in this function) sql.c:269: warning: implicit declaration of function `PQresultStatus' sql.c:270: error: `PGRES_COMMAND_OK' undeclared (first use in this function) sql.c:272: warning: implicit declaration of function `PQclear' sql.c:275: error: `PGRES_TUPLES_OK' undeclared (first use in this function) sql.c:278: warning: implicit declaration of function `PQresStatus' sql.c:284: warning: implicit declaration of function `PQntuples' sql.c:298: warning: implicit declaration of function `PQgetvalue' sql.c:298: warning: passing arg 1 of `strlen' makes pointer from integer without a castsql.c:298: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast sql.c:298: warning: passing arg 2 of `strncpy' makes pointer from integer without a cast sql.c:298: warning: passing arg 2 of `strncpy' makes pointer from integer without a cast sql.c: In function `_pgsql_close': sql.c:325: warning: implicit declaration of function `PQfinish' make[2]: *** [sql.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.17/work/cyrus-sasl-2.1.17' make: *** [all] Error 2 !!! ERROR: dev-libs/cyrus-sasl-2.1.17 failed. !!! Function src_compile, Line 92, Exitcode 2 !!! compile problem Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.1-gentoo) ================================================================= System uname: 2.6.1-gentoo i686 Intel(R) Xeon(TM) CPU 2.80GHz 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="-O2 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.noved.org/ http://adelie.polymtl.ca/ http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib alsa apache2 apm avi berkdb bonobo cdr crypt cscope cups curl dedicated dga dnd dv dvd encode esd ethereal faad fltk foomaticdb gdbm gif glut gnome gphoto2 gtk gtk2 gtkhtml guile imagemagick imap imlib jack java jpeg lcms ldap libg++ libwww lua mad maildir mikmod mldonkeypango mng mozcalendar mozilla mozp3p mozsvg mpeg mpi ncurses offensive oggvorbis openal opengl oss pam parse-clocks pdflib perl pic png postgres python qt qt-mt quicktime readline ruby sasl sdl skey slang slp spell sse ssl svga tcltk tcpd tiff transcode truetype usb videos wmf wxwin wxwindows x86 xface xine xml xml2 xmms xosd xv xvid zlib video_cards_nvidia"
Works fine here with the latest stable postgresql (7.3.5). What version do you have? Can you verify that the missing file got installed by doing: grep libpq-fe.h /var/db/pkg/dev-db/postgresql-*/CONTENTS And also make sure this file is still on the system.
Same problem here - btw, us edge bleeders are running postgresql-7.4.1. Trouble is that the cyrus-sasl build doesn't have the -I for the postgresql headers. Add -I/usr/include/postgresql/pgsql and that particular module compiles fine, so it appears that the configure isn't setting up correctly. Interesting, seems to be a bunch of fallout from the new postgresql release. Regards, Gio
*** Bug 38296 has been marked as a duplicate of this bug. ***
Patched in cvs. I was able to compile it against PostgreSQL 7.4 and 7.3. Give it a try and re-open if problems persist.
Now the build for cyrus-sasl-2.1.17 works. Johnny