Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9906 - ProFTPD and PostgreSQL fails
Summary: ProFTPD and PostgreSQL fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Bruce A. Locke (RETIRED)
URL:
Whiteboard:
Keywords:
: 7998 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-29 11:42 UTC by Eric Renfro
Modified: 2007-09-22 23:09 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Changes the include path for libpq-fe.h (mod_sql_postgres.c.patch,281 bytes, patch)
2002-10-29 11:58 UTC, Eric Renfro
Details | Diff
ProFTPD 1.2.5 adjustments. (proftpd-1.2.5-r2.ebuild,2.39 KB, text/plain)
2002-10-29 18:57 UTC, Eric Renfro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Renfro 2002-10-29 11:42:47 UTC
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.
Comment 1 Eric Renfro 2002-10-29 11:58:25 UTC
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.
Comment 2 Eric Renfro 2002-10-29 18:57:42 UTC
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.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2002-10-30 13:24:58 UTC
maybe same as #7998 ?
Comment 4 Nathan Clegg 2002-10-30 13:55:17 UTC
*** Bug 7998 has been marked as a duplicate of this bug. ***
Comment 5 Eric Renfro 2002-10-30 15:38:28 UTC
Yep, it's exactly the same as 7998. Not using the patch for
mod_sql_postgresql.c.patch does work. 
Comment 6 Bruce A. Locke (RETIRED) gentoo-dev 2002-11-17 22:37:10 UTC
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! :)