Summary: | =dev-db/tora-2.1.3-r3[postgresql] fails compilation with "/usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dan Goodliffe <gentoo> |
Component: | [OLD] Development | Assignee: | Michael Haubenwallner (RETIRED) <haubi> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Ikonta, mklimek |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | complete build.log |
Description
Dan Goodliffe
2013-11-06 20:36:32 UTC
Can you please attach the complete build log and comment with the output of `emerge --info`? Thank you in advance. Created attachment 362878 [details]
complete build.log
build.log attached, emerge --info as per original post. All =tora-2.1.3* ebuilds fail with the same error (2.1.1 fails with an entirely different error before getting as far) I'll test later to see if it might be related the the recent(ish) upgrades to postgresql-base-9.3 from 9.2 (In reply to Dan Goodliffe from comment #4) > I'll test later to see if it might be related the the recent(ish) upgrades > to postgresql-base-9.3 from 9.2 YesPlease, because this doesn't happen with 9.2. On the face of it... it's wrong in both cases (9.2 and 9.3) as it doesn't add the /usr/include/postgresql-9.anything folder to the search path for g++. To test this, I tried: riogrande ~ # CXXFLAGS="-I/usr/include/postgresql-9.3" emerge -1 tora And that works a treat. Then I get out of my comfort zone, looks like cmake is finding PostgreSQL in the wrong place: riogrande ~ # ebuild /usr/portage/dev-db/tora/tora-2.1.3-r3.ebuild configure .... -- Found Qt4: /usr/bin/qmake (found suitable version "4.8.5", minimum required is "4.3.0") Qt4 Found OK -- checking for module 'ferrisloki' -- found ferrisloki, version 3.0.13 -- Found QScintilla2: /usr/lib64/qt4/libqscintilla2.so -- includes: /usr/include/qt4/Qsci QScintilla2 Found OK -- Oracle support is disabled by user choice -- Found PostgreSQL: /usr/include -- PostgreSQL environment found: /usr/include /usr/lib64/libpq.so -- DB2 not found. .... However: riogrande ~ # pg_config --includedir /usr/include/postgresql-9.3 riogrande ~ # pg_config92 --includedir /usr/include/postgresql-9.2 So I'm guessing that in the time of 9.2, it all worked by chance. Please try with app-admin/eselect-postgresql-1.2.1. This is most likely bug 486674. Yes, the dirtiness in eselect-postgresql-1.2.1 does allow compilation to succeed. I guess tora is one of the (probably many) packages that have historically guessed as per comment 4 in bug 486674. Question is if pg_config is a Postgres upstream thing or distro specific: In the former case I'd willing to submit a patch (proposals welcome!) upstream, in the latter case this is a dupe of #486674. http://www.postgresql.org/docs/9.3/static/app-pgconfig.html General PostgreSQL thing. Yes, the build system is handling discovery of the header files incorrectly. pg_config should be utilized rather than guessing. (In reply to Dan Goodliffe from comment #6) > -- Oracle support is disabled by user choice First one: don't use 2.1.3. It's outdated and unsupported, its interface is broken (see bug #522180 for details, following link to upstream's ticket). Second one: checking on yesterday's snapshot (see bug #523262 for detailt, please, note that expected by that version of ebuild patch is already applied ti upstream code tree), I've find, that TOra as PostgreSQL client fails to build without Oracle support. See bug in upstream tracker https://sourceforge.net/p/tora/bugs/886/ (btw: why I can't put this link into "See Also" field?), error differs, but I expect the same issue. P.S. Could you make a check of building TOra as MySQL client (also, first time without and later with Oracle support)? BTW, =dev-db/tora-2.1.1 builds successfully with postgres-only support (for general build issues and patches see bug #522990). Could you check this version as mysql-only (for now I don't use MySQL) client? Broken version was dropped from tree |