Merging the app-admin/aide-0.9 ebuild with the postgres-flag enabled fails the merge process. The error is the folowing: checking for PostgresSQL support... checking for PQclear in -lpq... no You must postgres sql library installed. Steps to Reproduce: emerge aide Actual Results: config fails with above error Expected Results: successfull merge Platform: x86
nota: in the original report, it must off course be: Steps to reproduce: enable postgres flag emerge aide
This was also true in aide-0.8 (see bug# 1201). A comment in that bug indicates that Ryan Phillips commited a fix to cvs, but I was unable to find that fix in gentoo's cvsweb. There is a config.log excerpt provided in bug# 1201.
This does not appear to be an aide bug at all, but a problem when trying to link against libpq statically. $ cat > broken-libpq-static.c <<EOF char PQclear(); int main() { PQclear() ; return 0; } EOF $ gcc -o broken-libpq-static broken-libpq-static.c -lpq $ ls -l broken-libpq-static -rwxr-xr-x 1 aric users 6773 Aug 24 07:47 static-libpq-broken $ gcc -static -o broken-libpq-static broken-libpq-static.c -lpq /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libpq.a(fe-secure.o)(.text+0x651): In function `open_client_SSL': : undefined reference to `X509_get_subject_name' ... [lots more such messages snipped] collect2: ld returned 1 exit status Adding -lcrypt and -lssl does not help.
same problem here. still no results?
You have to add -lssl -lcrypt AND -lcrypto, then it works
Created attachment 22184 [details, diff] configure changes to handle ssl for postgres This patch can be applied to the source tree to handle ssl for postgres support in aida
Any chance to see the fix in Portage? At least masked.
Well, I applied this http://bugs.gentoo.org/attachment.cgi?id=22184&action=view patch, but now I am having some other trouble: gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/aide-0.9/work/aide-0.9/src -I.. -I/usr/include -I/var/tmp/portage/aide-0.9/work/aide-0.9/include -static -static -c gen_list.c gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/aide-0.9/work/aide-0.9/src -I.. -I/usr/include -I/var/tmp/portage/aide-0.9/work/aide-0.9/include -static -static -c list.c gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/aide-0.9/work/aide-0.9/src -I.. -I/usr/include -I/var/tmp/portage/aide-0.9/work/aide-0.9/include -static -static -c do_md.c gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/aide-0.9/work/aide-0.9/src -I.. -I/usr/include -I/var/tmp/portage/aide-0.9/work/aide-0.9/include -static -static -c base64.c gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/aide-0.9/work/aide-0.9/src -I.. -I/usr/include -I/var/tmp/portage/aide-0.9/work/aide-0.9/include -static -static -c symboltable.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 make[2]: *** [db_sql.o] Error 1 make[2]: *** Waiting for unfinished jobs.... base64.c: In function `length_base64': base64.c:270: warning: return makes integer from pointer without a cast base64.c:293: warning: return makes integer from pointer without a cast do_md.c:46:1: warning: "READ_BLOCK_SIZE" redefined do_md.c:45:1: warning: this is the location of the previous definition make[2]: Leaving directory `/var/tmp/portage/aide-0.9/work/aide-0.9/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/aide-0.9/work/aide-0.9' make: *** [all-recursive-am] Error 2 !!! ERROR: app-admin/aide-0.9 failed. !!! Function src_compile, Line 47, Exitcode 2 !!! (no error message) Anybody a pointer? Thanks in advance, Johnny # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.25) ================================================================= System uname: 2.4.25 i686 mobile AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /lib/modules /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/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acl acpi afs alsa apache2 apm arts avi berkdb bonobo cdr crypt cscope cups curl dga directfb doc dvd emacs encode esd ethereal evo fbcon firebird flash foomaticdb freetds gb gd gdbm ggi gif gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imap imlib informix innodb ipv6 jack java jikes joystick jpeg kde kerberos krb4 ladcca lcm ldap leim libg++ libgda libwww lirc mad maildir mbox mcal memlimit mikmod mmx motif mozilla mpeg mpi mule mysql nas ncurses nhc98 nls oci8 odbc oggvorbis opengl oss pam pcmcia pda pdflib perl plotutils png pnp postgres ppds prelude python qt quicktime readline ruby18 samba sasl scanner sdl slang slp snmp socks5 spell ssl svga tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 xface xinerama xml2 xmms xosd xv zeo zlib"
just adding a note that this still happens in aide-0.10
*** Bug 53237 has been marked as a duplicate of this bug. ***
Created attachment 35606 [details, diff] aide-0.10-postgresql.diff (but doesnt work) I try to check it, but I cannot debug completely.
Created attachment 35607 [details, diff] aide-0.10-r1.diff remove postgresql support.
Aide CVS works if you run the autogen.sh first...
dragonheart and I have cooked up a cvs snapshot and postgres patch (slightly modified from the patch submitted by Joshua Schmidlkofer in bug #37007) and have released aide-0.10_p20040917. This should fix bugs 23764, 37007, and 62194. Please test.