Created attachment 270555 [details] patch to ebuild, to apply files/0.5-postgrespath.patch While compiling dev-lua/luadbi-0.5 with USE="postgres sqlite -mysql": gcc -c -o build/dbd_postgresql_main.o dbd/postgresql/main.c -g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/p ostgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . In file included from dbd/postgresql/main.c:1:0: dbd/postgresql/dbd_postgresql.h:2:25: fatal error: postgres_fe.h: No such file or directory compilation terminated. make: *** [build/dbd_postgresql_main.o] Error 1 emake failed Postgresql headers are installed (by dev-db/postgresql-base-9.0.3) in /usr/include/postgresql-9.0/server/postgres_fe.h Patch included.
Created attachment 270557 [details, diff] files/0.5-postgrespath.patch
Created attachment 270559 [details, diff] files/0.5-postgrespath.patch (previous one was the patch diffed against /dev/null, this is more convenient)
I suspect that 'eselect postgresql' was the correct answer to the problem.
Eselect: #eselect postgresql show-all Utilities: 9.0 Service: 9.0 I am under the impression that the problem is with the path to postgres_fe.h *inside* /usr/include/postgresql-*/ . Eselect just governs the /usr/include/postgresql symlink, right?
(In reply to comment #4) > Eselect: > > #eselect postgresql show-all > Utilities: 9.0 > Service: 9.0 > > > I am under the impression that the problem is with the path to postgres_fe.h > *inside* /usr/include/postgresql-*/ . Eselect just governs the > /usr/include/postgresql symlink, right? More than that, it places symlinks in common places to look for headers. postgres_fe.h is not explicitly one of them. However, the version of the eselect module you're using doesn't create a '/usr/include/postgresql/' symlink. Upgrade to eselect-postgresql-1.0.7.
And upstream PostgreSQL does place postgres_fe.h in '/usr/include/postgresql/server/'. Upstream dev-lua/luadbi needs to be bugged about it.
My previous eselect-postgresql did in fact create the /usr/include/postgresql symlink (which is why came to mention it in #c4). Upgrading to eselect-postgresql-1.0.7 and reconfiguring didn't help. The patches I attached address the issue. Hope upstream resolves this.
Note: 'pg_config --includedir-server'. Thank you.
Reported upstream at http://code.google.com/p/luadbi/issues/detail?id=11.
Committed 0.5-r1 which includes the proposed patch, thanks!
I also patch upstream's buildsystem[1] so i'll be possible to just > PSQL_INC=-I/usr/include/postgresql/server instead of both patches