Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497012 - dev-libs/cyrus-sasl-2.1.26-r3 with dev-db/postgresql-base-9.3.2 - In file included from sql.c:192: /usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory
Summary: dev-libs/cyrus-sasl-2.1.26-r3 with dev-db/postgresql-base-9.3.2 - In file inc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-04 20:18 UTC by Coacher
Modified: 2014-01-14 10:06 UTC (History)
0 users

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


Attachments
emerge --info cyrus-sasl (info,5.24 KB, text/plain)
2014-01-04 20:19 UTC, Coacher
Details
emerge --info postgresql-base (info,5.21 KB, text/plain)
2014-01-04 20:21 UTC, Coacher
Details
build.log (build.log,78.54 KB, text/plain)
2014-01-04 20:21 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2014-01-04 20:18:11 UTC
Hello.

Recently, I've tried to rebuild cyrus-sasl, but build failed.
Here is the relevant part of build.log:

/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I../sasldb -I../include  -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED -DOBSOLETE_CRAM_ATTR=1 -I/usr/include  -Wall -W -O2 -march=core2 -mtune=core2 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe -fno-strict-aliasing -c -o sql.lo sql.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I../sasldb -I../include -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED -DOBSOLETE_CRAM_ATTR=1 -I/usr/include -Wall -W -O2 -march=core2 -mtune=core2 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe -fno-strict-aliasing -c ntlm_init.c  -fPIC -DPIC -o .libs/ntlm_init.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I../sasldb -I../include -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED -DOBSOLETE_CRAM_ATTR=1 -I/usr/include -Wall -W -O2 -march=core2 -mtune=core2 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe -fno-strict-aliasing -c sql.c  -fPIC -DPIC -o .libs/sql.o
In file included from /usr/include/libpq-fe.h:29:0,
                 from sql.c:192:
/usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory
compilation terminated.
make[2]: *** [sql.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/cache/portage/portage/dev-libs/cyrus-sasl-2.1.26-r3/work/cyrus-sasl-2.1.26/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/cache/portage/portage/dev-libs/cyrus-sasl-2.1.26-r3/work/cyrus-sasl-2.1.26'
make: *** [all] Error 2

As you can see it fails to find postgresql headers for some reason.
I have dev-db/postgresql-base-9.3.2 installed and no postgresql-server installed.

Here is eselect info:

# eselect postgresql list
Available PostgreSQL Slots
  9.3 *                      base-9.3.2

Please fix.

Reproducible: Always
Comment 1 Coacher 2014-01-04 20:19:06 UTC
Created attachment 367004 [details]
emerge --info cyrus-sasl
Comment 2 Coacher 2014-01-04 20:21:40 UTC
Created attachment 367014 [details]
emerge --info postgresql-base
Comment 3 Coacher 2014-01-04 20:21:52 UTC
Created attachment 367016 [details]
build.log
Comment 4 Coacher 2014-01-04 23:23:41 UTC
If I disable postgres USE, then cyrus-sasl builds fine.
Comment 5 Aaron W. Swenson gentoo-dev 2014-01-12 21:01:36 UTC
Although the build system is handling discovery of the header files incorrectly, please upgrade to app-admin/eselect-postgresql-1.2.1 and confirm it resolves your issue.
Comment 6 Coacher 2014-01-14 10:06:26 UTC
(In reply to Aaron W. Swenson from comment #5)
> Although the build system is handling discovery of the header files
> incorrectly, please upgrade to app-admin/eselect-postgresql-1.2.1 and
> confirm it resolves your issue.

Yes, I confirm that upgrading to eselect-postgresql-1.2.1 solves this issue.

Thanks!