Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53237 - aide fails to compile if postgresql installed
Summary: aide fails to compile if postgresql installed
Status: RESOLVED DUPLICATE of bug 23764
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-07 10:41 UTC by Seth Robertson
Modified: 2007-09-22 23:18 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 Seth Robertson 2004-06-07 10:41:57 UTC
Configure fails to believe postgres is installed and fails because postgres was required by the ebuild-supplied configure command line options.  It fails to believe postgres is installed because the link to -lpq fails due to missing libraries (missing on the link line, that is).

Modifying the configure script to add missing libraries (I added -lssl -lcrypto -lcrypt which may be overkill) allowed the configure to proceed, but the the compile failed later:

gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/aide-0.10/work/aide-0.10/src -I.. -I/usr/include -I/var/tmp/portage/aide-0.10/work/aide-0.10/include  -I/var/tmp/portage/aide-0.10/work/aide-0.10 -I/var/tmp/portage/aide-0.10/work/aide-0.10/src -static  -mcpu=athlon-xp -O2 -pipe -static  -c db_sql.c
db_sql.c: In function `db_readline_sql_int':
db_sql.c:165: error: `conf' undeclared (first use in this function)
db_sql.c:165: error: (Each undeclared identifier is reported only once
db_sql.c:165: error: for each function it appears in.)
db_sql.c: In function `db_readline_sql_char':
db_sql.c:194: error: `conf' undeclared (first use in this function)
db_sql.c: In function `db_readline_sql_byte':
db_sql.c:226: warning: passing arg 1 of `db_readline_sql_char' from incompatible pointer type
db_sql.c:229: warning: assignment makes pointer from integer without a cast
db_sql.c: In function `db_readline_sql_time':
db_sql.c:236: warning: passing arg 1 of `db_readline_sql_char' from incompatible pointer type
db_sql.c:239: warning: assignment makes pointer from integer without a cast
db_sql.c: In function `db_readline_sql':
db_sql.c:255: error: `conf' undeclared (first use in this function)
db_sql.c:278: warning: passing arg 1 of `db_readline_sql_byte' from incompatible pointer type
db_sql.c:279: warning: passing arg 1 of `db_readline_sql_byte' from incompatible pointer type
db_sql.c:280: warning: passing arg 1 of `db_readline_sql_byte' from incompatible pointer type
db_sql.c:281: warning: passing arg 1 of `db_readline_sql_byte' from incompatible pointer type
db_sql.c:283: warning: passing arg 1 of `db_readline_sql_byte' from incompatible pointer type
db_sql.c:284: warning: passing arg 1 of `db_readline_sql_byte' from incompatible pointer type
db_sql.c:285: warning: passing arg 1 of `db_readline_sql_byte' from incompatible pointer type
db_sql.c:287: warning: passing arg 1 of `db_readline_sql_char' discards qualifiers from pointer target type
db_sql.c:288: warning: passing arg 1 of `db_readline_sql_char' discards qualifiers from pointer target type
db_sql.c:290: warning: passing arg 1 of `db_readline_sql_int' discards qualifiers from pointer target type
db_sql.c:291: warning: passing arg 1 of `db_readline_sql_int' discards qualifiers from pointer target type
db_sql.c:292: warning: passing arg 1 of `db_readline_sql_int' discards qualifiers from pointer target type
db_sql.c:293: warning: passing arg 1 of `db_readline_sql_int' from incompatible pointer type
db_sql.c:294: warning: passing arg 1 of `db_readline_sql_int' discards qualifiers from pointer target type
db_sql.c:296: warning: passing arg 1 of `db_readline_sql_int' from incompatible pointer type
db_sql.c:296: warning: passing arg 3 of `db_readline_sql_int' makes integer from pointer without a cast
db_sql.c:297: warning: passing arg 1 of `db_readline_sql_int' from incompatible pointer type
db_sql.c:298: warning: passing arg 1 of `db_readline_sql_int' discards qualifiers from pointer target type
db_sql.c:300: warning: passing arg 1 of `db_readline_sql_time' from incompatible pointer type
db_sql.c:301: warning: passing arg 1 of `db_readline_sql_time' from incompatible pointer type
db_sql.c:302: warning: passing arg 1 of `db_readline_sql_time' from incompatible pointer type
db_sql.c:304: error: structure has no member named `acl'
db_sql.c:310: warning: return discards qualifiers from pointer target type
db_sql.c: In function `db_get_sql':
db_sql.c:427: warning: assignment makes pointer from integer without a cast
db_sql.c:440: warning: assignment makes pointer from integer without a cast

I cannot help but notice that indeed gcc is correct that "conf" is missing from the function.  It seems unlikely that this is a missing global variable since the function above it gets conf passed into it.

Having exceeded my interest in a program I don't actually use, I pass this on to someone who may care more.




Reproducible: Always
Steps to Reproduce:
1. emerge postgresql
2. emerge aide
3.

Actual Results:  
Configure/compile error

Expected Results:  
Install

not root> emerge info
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2)
=================================================================
System uname: 2.4.25-gentoo-r2 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -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.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.pair.com/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif
mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres
python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype
x86 xml2 xmms xv zlib"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-07 11:05:18 UTC

*** This bug has been marked as a duplicate of 23764 ***
Comment 2 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-06-16 09:34:33 UTC
I think this is fixed in the most recent version. Please reopen if not.