Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34197 - gambas can't find postresql headers
Summary: gambas can't find postresql headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Marius Mauch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 09:22 UTC by fish ghoti
Modified: 2003-12-01 23:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fish ghoti 2003-11-23 09:22:30 UTC
emerge gambas stops complaining about postgress.h and pg_type.h

Although, postgresql is well installed as shows :
bigben # emerge postgresql -p
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild   R   ] dev-db/postgresql-7.4


Reproducible: Always
Steps to Reproduce:
1.emerge gambas
2.
3.

Actual Results:  
make[5]: Entering directory
`/var/tmp/portage/gambas-0.71/work/gambas-0.71/src/lib/db/postgresql'
/bin/sh ../../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../../.. -I../../../../src/share  -I/usr/include/mysql    -O3
-march=pentium3 -pipe -fomit-frame-pointer -pipe -Wall -g -O0 -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share
-I/usr/include/mysql -O3 -march=pentium3 -pipe -fomit-frame-pointer -pipe -Wall
-g -O0 -c main.c  -fPIC -DPIC -o main.lo
main.c:33:22: postgres.h: No such file or directory
main.c:34:21: pg_type.h: No such file or directory
main.c:45: `FALSE' undeclared here (not in a function)
main.c: In function `check_result':
[snip]

followed by a lot of "undeclared" errors

Expected Results:  
The ebuild contains two errors in src_compile() :

1) use postgres \
     && myconf="${myconf} -with-postgresql-includes=/usr/include/postgresql" \

==> The correct path (with postgres 7.4) should be :
-with-postgresql-includes=/usr/include/postgresql/server

2) The block concerning mysql refers also to postgresql.
It should be :

  use mysql \
        && myconf="${myconf} --with-mysql-includes=/usr/include/mysql" \
           || myconf="${myconf} --without-mysql-includes"

(BTW, gambas-0.72 is out !)
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-11-26 19:42:08 UTC
I'm working on a fix but unfortunately I've discovered another problem (likely a local problem for me) which prevents me from completely testing the ebuild.
Comment 2 fish ghoti 2003-11-27 11:31:45 UTC
If it can help, I can confirm that the two corrections I've mentionned solved the things (at least for me !).
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-12-01 23:14:17 UTC
fixed and version bumped in cvs, together with a bunch of other bugs