[sr-dev] [kamailio/kamailio] cannot build rpm on OpenSUSE (#1915)

sergey-safarov notifications at github.com
Sat Mar 30 11:05:45 CET 2019

### Description

Cannot build postgres module on openSUSE Tumbleweed

### Troubleshooting

#### Reproduction

Package kamailio on openSUSE Tumbleweed.

#### Debugging Data


#### Log Messages

[  434s] xsubpp -typemap `perl -MConfig -e 'print $Config{installprivlib}'`/ExtUtils/typemap -typemap typemap kamailioxs.xs > kamailioxs.c
[  434s] CC (gcc) [M app_perl.so]		kamailioxs.o
[  435s] LD (gcc) [M app_perl.so]		app_perl.so
[  436s] CC (gcc) [M db_perlvdb.so]		perlvdbfunc.o
[  437s] CC (gcc) [M db_perlvdb.so]		perlvdb_oohelpers.o
[  437s] CC (gcc) [M db_perlvdb.so]		perlvdb_conv.o
[  438s] CC (gcc) [M db_perlvdb.so]		db_perlvdb.o
[  439s] make[3]: 'libsrdb1.so.1.0' is up to date.
[  439s] LD (gcc) [M db_perlvdb.so]		db_perlvdb.so
[  439s] which: no pg_config in (/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
[  439s] which: no pg_config in (/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
[  439s] CC (gcc) [M db_postgres.so]		pg_uri.o
[  439s] CC (gcc) [M db_postgres.so]		pg_sql.o
[  439s] CC (gcc) [M db_postgres.so]		pg_res.o
[  439s] In file included from pg_res.c:33:
[  439s] pg_res.h:40:10: fatal error: libpq-fe.h: No such file or directory
[  439s]  #include <libpq-fe.h>
[  439s]           ^~~~~~~~~~~~
[  439s] compilation terminated.
[  439s] make[2]: *** [../../Makefile.rules:100: pg_res.o] Error 1
[  439s] make[1]: *** [Makefile:511: modules] Error 1
[  439s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/kamailio-5.3.0-dev4/src'
[  439s] make: *** [Makefile:30: every-module] Error 2
[  439s] error: Bad exit status from /var/tmp/rpm-tmp.dwfwP1 (%build)
[  439s] 
[  439s] 
[  439s] RPM build errors:
[  439s]     bogus date in %changelog: Tue Feb 21 2019 Sergey Safarov <s.safarov at gmail.com> 5.3.0-0
[  439s]     Bad exit status from /var/tmp/rpm-tmp.dwfwP1 (%build)
[  439s] 
[  439s] build80 failed "build kamailio.spec" at Sat Mar 30 09:44:29 UTC 2019.
[  439s] 

#### SIP Traffic


### Possible Solutions

Add ability to use pkgconfig file from Makefile

d90393c7d32a:/ # cat /usr/lib64/pkgconfig/libpq.pc
Name: libpq
Description: PostgreSQL libpq library
Url: http://www.postgresql.org/
Version: 11.2
Cflags: -I/usr/include/pgsql
Libs: -lpq
Libs.private:  -lssl -lcrypto -lgssapi_krb5 -lcrypt -lldap_r

### Additional Information

Current master

* **Operating System**:

d90393c7d32a:/ # cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20190327"
ID_LIKE="opensuse suse"
PRETTY_NAME="openSUSE Tumbleweed"

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190330/b1650001/attachment-0001.html>

More information about the sr-dev mailing list