Bug #1375

Wrong postgresql include in many linux distros

Added by Jan Dolinár over 3 years ago. Updated over 3 years ago.

Status:NewStart date:01/30/2016
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:SqlSpent time:-
Target version:-

Description

http://www.ultimatepp.org/forums/index.php?t=msg&goto=45945&#msg_45945

The file libpq-fe.h can be located in /usr/include/posgresql/ (Debian, Ubuntu) or directly in /usr/include (Arch, CentOS, Fedora, Rosa, Slackware, OpenMandriva, Mageia). I think the only universal solution is to #include <libpq-fe.h> on all platforms and distros and fix it by adding /usr/include/postgresql to library paths. I'm aware this might break existing installations, but I don't see any way to detect the correct location of the file at compile time.

postgresql.diff Magnifier (412 Bytes) Jan Dolinár, 01/30/2016 10:46 AM

History

#1 Updated by Jan Dolinár over 3 years ago

  • Subject changed from Wrong posgresql include in many linux distros to Wrong postgresql include in many linux distros

Also available in: Atom PDF