Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46368 - emerging postfix fails (libpq)
Summary: emerging postfix fails (libpq)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-31 08:14 UTC by Thilo Pfennig
Modified: 2004-06-28 23:30 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 Thilo Pfennig 2004-03-31 08:14:21 UTC
emerging "net-mail/postfix-2.0.19-r2" fails.

Reproducible: Always
Steps to Reproduce:
1. emerge postfix


Actual Results:  
gcc -DHAS_PCRE -DHAS_LDAP -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/in
clude/postgresql -DUSE_SSL -DUSE_SASL_AUTH -I/usr/include/sasl -DDEF_CONFIG_DIR=
\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/
lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share
/doc/postfix-2.0.19-r2/readme\" -DDEF_SAMPLE_DIR=\"/usr/share/doc/postfix-2.0.19
-r2/sample\" -g -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe
-I. -DLINUX2 -c dict_pgsql.c
dict_pgsql.c:83:22: libpq-fe.h: No such file or directory
dict_pgsql.c:98: error: syntax error before "PGconn"
dict_pgsql.c:98: warning: no semicolon at end of struct or union
dict_pgsql.c:103: error: syntax error before '}' token
dict_pgsql.c:103: warning: data definition has no type or storage class
dict_pgsql.c:108: error: syntax error before "HOST"
dict_pgsql.c:108: warning: no semicolon at end of struct or union
dict_pgsql.c:110: warning: data definition has no type or storage class
dict_pgsql.c:128: error: syntax error before "PLPGSQL"
dict_pgsql.c:128: warning: no semicolon at end of struct or union
dict_pgsql.c:130: error: syntax error before '}' token
dict_pgsql.c:130: warning: data definition has no type or storage class
dict_pgsql.c:138: error: syntax error before '*' token
dict_pgsql.c:138: warning: data definition has no type or storage class
dict_pgsql.c:139: error: syntax error before '*' token
dict_pgsql.c:139: error: syntax error before '*' token
dict_pgsql.c:141: warning: data definition has no type or storage class
dict_pgsql.c:142: error: syntax error before '*' token
dict_pgsql.c:143: error: syntax error before '*' token
dict_pgsql.c:144: error: syntax error before '*' token
dict_pgsql.c:145: error: syntax error before '*' token
dict_pgsql.c:150: error: syntax error before "host_init"
dict_pgsql.c:150: warning: data definition has no type or storage class
dict_pgsql.c: In function `dict_pgsql_lookup':
dict_pgsql.c:162: error: `PGresult' undeclared (first use in this function)
dict_pgsql.c:162: error: (Each undeclared identifier is reported only once
dict_pgsql.c:162: error: for each function it appears in.)
dict_pgsql.c:162: error: `query_res' undeclared (first use in this function)
dict_pgsql.c:164: error: `dict_pgsql' undeclared (first use in this function)
dict_pgsql.c:165: error: `pldb' undeclared (first use in this function)
dict_pgsql.c:173: error: syntax error before ')' token
dict_pgsql.c:229: warning: assignment makes pointer from integer without a cast
dict_pgsql.c: At top level:
dict_pgsql.c:247: error: syntax error before '*' token
dict_pgsql.c:247: error: syntax error before '*' token
dict_pgsql.c: In function `plpgsql_query':
dict_pgsql.c:252: error: `host' undeclared (first use in this function)
dict_pgsql.c:253: error: `PGresult' undeclared (first use in this function)
dict_pgsql.c:253: error: `res' undeclared (first use in this function)
dict_pgsql.c:254: error: `ExecStatusType' undeclared (first use in this function )
dict_pgsql.c:254: error: syntax error before "status"
dict_pgsql.c:256: error: `PLDB' undeclared (first use in this function)
dict_pgsql.c:279: error: `dbname' undeclared (first use in this function)
dict_pgsql.c:279: error: `username' undeclared (first use in this function)
dict_pgsql.c:279: error: `password' undeclared (first use in this function)
dict_pgsql.c:302: error: `query' undeclared (first use in this function)
dict_pgsql.c:303: error: `status' undeclared (first use in this function)
dict_pgsql.c:306: error: `PGRES_COMMAND_OK' undeclared (first use in this functi on)
dict_pgsql.c:306: error: `PGRES_TUPLES_OK' undeclared (first use in this functio n)
dict_pgsql.c: At top level:
dict_pgsql.c:329: error: syntax error before '*' token
dict_pgsql.c: In function `plpgsql_connect_single':
dict_pgsql.c:332: error: `host' undeclared (first use in this function)
dict_pgsql.c:364: error: `dbname' undeclared (first use in this function)
dict_pgsql.c:365: error: `username' undeclared (first use in this function)
dict_pgsql.c:365: error: `password' undeclared (first use in this function)
dict_pgsql.c:370: error: `CONNECTION_OK' undeclared (first use in this function)
dict_pgsql.c: At top level:
dict_pgsql.c:391: error: syntax error before '*' token
dict_pgsql.c: In function `plpgsql_down_host':
dict_pgsql.c:393: error: `host' undeclared (first use in this function)
dict_pgsql.c: In function `dict_pgsql_open':
dict_pgsql.c:411: error: `dict_pgsql' undeclared (first use in this function)
dict_pgsql.c:414: error: syntax error before ')' token
dict_pgsql.c: At top level:
dict_pgsql.c:579: error: syntax error before '*' token
dict_pgsql.c: In function `plpgsql_init':
dict_pgsql.c:581: error: `PLDB' undeclared (first use in this function)
dict_pgsql.c:583: error: syntax error before "host"
dict_pgsql.c:585: error: syntax error before ')' token
dict_pgsql.c: At top level:
dict_pgsql.c:589: error: syntax error before '->' token
dict_pgsql.c:603: error: syntax error before "host_init"
dict_pgsql.c: In function `host_init':
dict_pgsql.c:605: error: syntax error before "host"
dict_pgsql.c:607: error: `host' undeclared (first use in this function)
dict_pgsql.c: In function `dict_pgsql_close':
dict_pgsql.c:621: error: `dict_pgsql' undeclared (first use in this function)
dict_pgsql.c:621: error: syntax error before ')' token
dict_pgsql.c: At top level:
dict_pgsql.c:641: error: syntax error before '*' token
dict_pgsql.c: In function `plpgsql_dealloc':
dict_pgsql.c:645: error: `PLDB' undeclared (first use in this function)
make: *** [dict_pgsql.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [update] Error 1
 
!!! ERROR: net-mail/postfix-2.0.19-r2 failed.
!!! Function src_compile, Line 115, Exitcode 2
!!! compile problem
 


Expected Results:  
sucessfull compile

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.5-rc2)
=================================================================
System uname: 2.6.5-rc2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -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/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/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 alsa apm avi berkdb bonobo crypt cups directfb encode esd foomaticdb gdbm
gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imlib java jpeg ldap libg++
libpcap libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl
oss pam pdflib perl php png postgres ppds python readline samba sasl scanner sdl
slang spell ssl svga tcltk tcpd truetype usb video_cards_radeon x86 xml2 xmms zlib"
Comment 1 Nick Hadaway 2004-05-12 00:12:10 UTC
make sure postgresql is install properly.
libpg-fe.h should definitely be installed with postgresql.
Comment 2 Cory Visi (RETIRED) gentoo-dev 2004-06-28 22:52:50 UTC
Thilo, I cannot reproduce this error. Have you recently upgraded postgresql? Perhaps you need to do an emerge clean or re-emerge?

You should have libpq-fe.h in the following locations:
/usr/include/postgresql/pgsql/libpq-fe.h
/usr/include/libpq-fe.h

Do these exist?
Comment 3 Cory Visi (RETIRED) gentoo-dev 2004-06-28 23:30:34 UTC
Date: Tue, 29 Jun 2004 08:10:38 +0200
From: Thilo Pfennig <tp@alternativ.net>
To: merlin@gentoo.org
Subject: Re: [Bug 46368] emerging postfix fails (libpq)

Sorry, but I do not use Gentoo any more. Maybe you should close this
bug, then. Thank you for your answer.

--
Thilo Pfennig <tp@alternativ.net>