Summary: | dev-libs/cyrus-sasl-2.1.23-r3 fails on libpq-fe.h | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan de Konink <stefan> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | asturm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stefan de Konink
2011-05-09 13:16:24 UTC
What do you mean by 'new' ? There is one already, controlled by postgres useflag. (In reply to comment #1) > What do you mean by 'new' ? > There is one already, controlled by postgres useflag. Which is enabled but doesn't pull the package that supplies the libpq-fe.h header it seams. (In reply to comment #2) > (In reply to comment #1) > > What do you mean by 'new' ? > > There is one already, controlled by postgres useflag. > > Which is enabled but doesn't pull the package that supplies the libpq-fe.h > header it seams. Which I could have learned from your build log, had you attached it. Check if that header is installed and 'eselect postgresql'. eselect postgresql list Available PostgreSQL Slots 9.0 * server-9.0.4 base-9.0.4 From what I can see only /usr/include/postgresql-9.0/libpq/libpq-fs.h is available. (In reply to comment #4) > eselect postgresql list > Available PostgreSQL Slots > 9.0 * server-9.0.4 base-9.0.4 > From what I can see only /usr/include/postgresql-9.0/libpq/libpq-fs.h is > available. Reemerge dev-db/postgresql-base. You may have been nicked by a change in the patch set. Additionally, you should see 'libpq-fe.h' in /usr/include. Didn't fix it, /usr/include/postgresql-9.0/libpq-fe.h is present. If /usr/include/postgresql-9.0/libpq-fe.h is present, but /usr/include/libpq-fe.h is not, that pobably means something has gone wrong during eselect, reselect it. Problem was with eselect, regarding to the 'old' /usr/lib64/postgres and /usr/share/postgres So, what to do? I'm stumbling over the same problem, still being with 8.4.8-r1 (9.0 not present). Trying to reselect 8.4 results in: Setting 8.4 as the default installation... Removing old links...!!! Error: The target '/usr/lib64/postgresql' still exists and could not be removed! exiting (In reply to comment #9) > So, what to do? I'm stumbling over the same problem, still being with 8.4.8-r1 > (9.0 not present). > > Trying to reselect 8.4 results in: > > Setting 8.4 as the default installation... > Removing old links...!!! Error: The target '/usr/lib64/postgresql' > still exists and could not be removed! > exiting Basically... you have to remove all directories that have a 'non version suffix' so that means removing /usr/lib64/postgresql /usr/share/postgresql etc. Then the reselection will work. thx, solved! (so that was cruft from non-slotted times?) I had the same problem and the resolution above worked for me. The installation of dev-libs/cyrus-sasl-2.1.23-r4 was failing with: sql.c:192:22: error: libpq-fe.h: No such file or directory So, after reading this bug, I let the eselect identify the directories that had to be removed as follows, and just repeatedly removed what was being identified as a problem directory. After completing the removals, I successfully built dev-libs/cyrus-sasl-2.1.23-r4. Here's my session showing the error and removals thereafter. atom home # eselect postgresql list Available PostgreSQL Slots 9.0 * server-9.0.4-r2 base-9.0.5 docs-9.0.5 9.1 server-9.1.1 base-9.1.1 docs-9.1.1 atom home # eselect postgresql set 9.1 Setting 9.1 as the default installation... Removing old links...!!! Error: The target '/usr/lib/postgresql' still exists and could not be removed! exiting atom home # ls /usr/lib/postgresql lib atom home # rm -r /usr/lib/postgresql atom home # eselect postgresql set 9.1 Setting 9.1 as the default installation... Removing old links...!!! Error: The target '/usr/share/postgresql' still exists and could not be removed! exiting atom home # rm -r /usr/share/postgresql atom home # eselect postgresql set 9.1 Setting 9.1 as the default installation... Removing old links...done. Generating new links...done. Setting 9.1 as default was successful! atom home # |