Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38227 - cyrus-sasl-2.1.17 does not compile
Summary: cyrus-sasl-2.1.17 does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 38296 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-14 15:36 UTC by alexander j pierce
Modified: 2004-01-18 04:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexander j pierce 2004-01-14 15:36:09 UTC
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"
Comment 1 Max Kalika (RETIRED) gentoo-dev 2004-01-14 16:12:00 UTC
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.
Comment 2 Paul Giordano 2004-01-14 17:54:12 UTC
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

Comment 3 Max Kalika (RETIRED) gentoo-dev 2004-01-15 09:34:11 UTC
*** Bug 38296 has been marked as a duplicate of this bug. ***
Comment 4 Max Kalika (RETIRED) gentoo-dev 2004-01-15 13:43:18 UTC
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.
Comment 5 Hans-Christian Armingeon 2004-01-18 04:29:13 UTC
Now the build for cyrus-sasl-2.1.17 works.

Johnny