Hi Guys, I'm trying to compile AIDE on a Slack 10.2 install against postgresql 8.1.3.
If I try: ./configure --with-psql --with-extra-includes="-I/usr/local/pgsql/include" --with-extra-libs="-L/usr/local/pgsql/lib" configure completes but linking fails indicating that the postgres libs are missing. gcc -g -O2 -static -g -O2 -static -L/usr/local/pgsql/lib -static -L/usr/local/pgsql/lib -o aide conf_yacc.o conf_lex2.o getopt.o getopt1.o gnu_regex.o error.o md.o db.o commandconf.o db_file.o db_disk.o db_lex2.o db_sql.o gen_list.o list.o do_md.o base64.o symboltable.o compare_db.o be.o util.o snprintf.o aide.o -lmhash -lcrypt -lz db_sql.o(.text+0x1a): In function `_db_check_result': /usr/src/aide-0.11/src/db_sql.c:53: undefined reference to `PQresultStatus' db_sql.o(.text+0x29):/usr/src/aide-0.11/src/db_sql.c:53: undefined reference to `PQresultStatus' db_sql.o(.text+0x3e):/usr/src/aide-0.11/src/db_sql.c:57: undefined reference to `PQerrorMessage' db_sql.o(.text+0xca): In function `db_writespec_sql': /usr/src/aide-0.11/src/db_sql.c:90: undefined reference to `PQexec' If I try ./configure --with-psql --with-extra-includes="-I/usr/local/pgsql/include" --with-extra-link-libs="-lpg" --with-extra-libs="-L/usr/local/pgsql/lib" configure bails out with checking for u32... no checking for u64... no checking for unsigned short... yes checking size of unsigned short... configure: error: cannot compute sizeof (unsigned short), 77 See `config.log' for more details. config.log looks like this (which doesn't tell me all that much) #define HAVE_INTTYPES_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_ULONG 1 #define HAVE_UNISTD_H 1 #define HAVE_USHORT 1 #define LITTLE_ENDIAN_HOST 1 #define PACKAGE "aide" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "" #define PACKAGE_STRING "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define VERSION "0.11" #define YYTEXT_POINTER 1 configure: exit 1 Help? :} Cheers, Andrej _______________________________________________ Aide mailing list Aide@cs.tut.fi https://mailman.cs.tut.fi/mailman/listinfo/aide
