Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497002 - app-forensics/aide-0.15.1 with dev-db/postgresql-base-9.3.2 - In file included from be.c:22: /usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory
Summary: app-forensics/aide-0.15.1 with dev-db/postgresql-base-9.3.2 - In file include...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-04 20:08 UTC by Coacher
Modified: 2014-01-14 10:06 UTC (History)
0 users

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


Attachments
emerge --info aide (info,5.00 KB, text/plain)
2014-01-04 20:08 UTC, Coacher
Details
emerge --info postgresql-base (info,5.21 KB, text/plain)
2014-01-04 20:09 UTC, Coacher
Details
build.log (build.log,12.31 KB, text/plain)
2014-01-04 20:09 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:08:01 UTC
Hello.

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

make  all-recursive
make[1]: Entering directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1'
Making all in include
make[2]: Entering directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1/include'
Making all in src
make[2]: Entering directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1/src'
make  all-am
make[3]: Entering directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../src -I../src   -DLOCALEDIR=\"/usr/share/locale\" -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS -W -Wall -g -O2 -march=core2 -mtune=core2 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe  -MT aide.o -MD -MP -MF .deps/aide.Tpo -c -o aide.o aide.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../src -I../src   -DLOCALEDIR=\"/usr/share/locale\" -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS -W -Wall -g -O2 -march=core2 -mtune=core2 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe  -MT base64.o -MD -MP -MF .deps/base64.Tpo -c -o base64.o base64.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../src -I../src   -DLOCALEDIR=\"/usr/share/locale\" -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS -W -Wall -g -O2 -march=core2 -mtune=core2 -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe  -MT be.o -MD -MP -MF .deps/be.Tpo -c -o be.o be.c
In file included from /usr/include/libpq-fe.h:29:0,
                 from ../include/db_config.h:404,
                 from ../include/aide.h:26,
                 from be.c:22:
/usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory
compilation terminated.
make[3]: *** [be.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/libpq-fe.h:29:0,
                 from ../include/db_config.h:404,
                 from ../include/aide.h:26,
                 from base64.c:33:
/usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory
compilation terminated.
In file included from /usr/include/libpq-fe.h:29:0,
                 from ../include/db_config.h:404,
                 from ../include/aide.h:26,
                 from aide.c:22:
/usr/include/postgres_ext.h:26:27: fatal error: pg_config_ext.h: No such file or directory
compilation terminated.
make[3]: *** [aide.o] Error 1
make[3]: *** [base64.o] Error 1
make[3]: Leaving directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/cache/portage/portage/app-forensics/aide-0.15.1/work/aide-0.15.1'
make: *** [all] Error 2
emake failed

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:08:50 UTC
Created attachment 366992 [details]
emerge --info aide
Comment 2 Coacher 2014-01-04 20:09:34 UTC
Created attachment 366994 [details]
emerge --info postgresql-base
Comment 3 Coacher 2014-01-04 20:09:46 UTC
Created attachment 366996 [details]
build.log
Comment 4 Coacher 2014-01-04 23:23:06 UTC
If I disable postgres USE, then aide builds fine.
Comment 5 Aaron W. Swenson gentoo-dev 2014-01-12 21:02:08 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:09 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!