i686-pc-linux-gnu-gcc -DLINUX -I.. -I../include -I/usr/include/postgresql -march=i686 -O3 -pipe -Wall -DUSESHADOW -c mod_sql.c mod_sql.c: In function `check_auth_crypt': mod_sql.c:426: warning: implicit declaration of function `crypt' mod_sql.c: In function `_process_named_query': mod_sql.c:1458: warning: comparison between pointer and integer i686-pc-linux-gnu-gcc -DLINUX -I.. -I../include -I/usr/include/postgresql -march=i686 -O3 -pipe -Wall -DUSESHADOW -c mod_sql_postgres.c mod_sql_postgres.c:38: postgresql/libpq-fe.h: No such file or directory mod_sql_postgres.c:65: parse error before `PGconn' mod_sql_postgres.c:65: warning: no semicolon at end of struct or union mod_sql_postgres.c:66: warning: type defaults to `int' in declaration of `result' AKA: Because the includes are in /usr/include/postgresql/pgsql, not /usr/include/postgresql itself.
Created attachment 5178 [details, diff] Changes the include path for libpq-fe.h Ever since I installed PostgreSQL, the includes have been in /usr/include/postgresql, and the front-end include, in pgsql/libpq-fe.h off that. This patch fixes that.
Created attachment 5200 [details] ProFTPD 1.2.5 adjustments. The patch wasn't needed. Just a new ebuild with the patch commented out. Any current PostgreSQL versions and ProFTPD builds should work just fine. If anyone with older versions have a problem, they can look at the ebuild, and uncomment the patch lines. This obsoletes the previous patch.
maybe same as #7998 ?
*** Bug 7998 has been marked as a duplicate of this bug. ***
Yep, it's exactly the same as 7998. Not using the patch for mod_sql_postgresql.c.patch does work.
Should be fixed in proftpd-1.2.7_rc3... Please test and let me know if its still broke for you. Thanks for the bug report! :)