[OpenSIPS-Devel] Opensips 2.1 build error -- postgresql module

Liviu Chircu liviu at opensips.org
Thu Jun 18 14:39:40 CEST 2015


Hi John,

Are you, by any chance, missing the "pg_config" binary usually provided 
by "postgresql-devel"? If so, could you post the output of following 
command:
"locate libpq-fe.h"


Here is a db_postgres build on Red Hat 6.4:


[root at VM-BUILD opensips_dev]# lsb_release -a
LSB 
Version::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID:RedHatEnterpriseServer
Description:Red Hat Enterprise Linux Server release 6.4 (Santiago)
Release:6.4
Codename:Santiago
[root at VM-BUILD opensips_dev]# make modules modules=modules/db_postgres


make[1]: Entering directory 
`/usr/local/src/rpm/opensips/SOURCES/opensips_dev/modules/db_postgres'
make[1]: Leaving directory 
`/usr/local/src/rpm/opensips/SOURCES/opensips_dev/modules/db_postgres'
make[1]: Entering directory 
`/usr/local/src/rpm/opensips/SOURCES/opensips_dev/modules/db_postgres'
Compiling dbase.c
Compiling db_postgres.c
Compiling pg_con.c
Compiling res.c
Compiling val.c
Linking db_postgres.so
make[1]: Leaving directory 
`/usr/local/src/rpm/opensips/SOURCES/opensips_dev/modules/db_postgres'
[root at VM-BUILD opensips_dev]# locate libpq-fe.h
/usr/include/libpq-fe.h
[root at VM-BUILD opensips_dev]# yum list installed | grep postgre
postgresql.x86_64                  8.4.20-2.el6_6 @rhel-6-server-rpms
postgresql-devel.x86_64            8.4.20-2.el6_6 @rhel-6-server-rpms
postgresql-libs.x86_64             8.4.20-2.el6_6 @rhel-6-server-rpms


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 16.06.2015 12:49, John Nash wrote:
> When I try to build the latest 2.1 git version with postgresql module 
> I get errors..
>  make include_modules="rtpengine db_postgres" modules
>
>
> make[1]: Entering directory 
> `/usr/src/bridgeswitch/Switch2.0/opensips_2_1/modules/db_postgres'
> Compiling dbase.c
> Compiling pg_con.c
> Compiling res.c
> Compiling val.c
> In file included from pg_con.c:22:
> pg_con.h:39:22: error: libpq-fe.h: No such file or directory
> In file included from pg_con.c:22:
> pg_con.h:54: error: expected specifier-qualifier-list before âPGconnâ
> pg_con.c: In function âdb_postgres_new_connectionâ:
> pg_con.c:67: error: âstruct pg_conâ has no member named âconâ
> --
>
> I have postgresql 9. and have following libraries installed
> postgresql92-devel.x86_64
> postgresql92-libs.x86_64
>
> Please confirm if its a bug I will open a ticket.
>
>
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150618/559431e7/attachment.htm>


More information about the Devel mailing list