[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SMSD + PostgreSQL
From: |
Pawel Kot |
Subject: |
SMSD + PostgreSQL |
Date: |
Sat, 12 Apr 2008 22:27:44 +0200 |
Hi,
I tried to compile fully blown SMSD (with all plugins) on Ubuntu 7.10
with all updates. And I failed due to PostgreSQL issue. With gnokii
asis I got error:
*** Warning: Linking the shared library libsmsd_pq.la against the
loadable module
*** libpq.so is not portable!
The following patch seems to solve the problem:
Index: configure.in
===================================================================
RCS file: /cvsroot/gnokii/gnokii/configure.in,v
retrieving revision 1.219
diff -u -r1.219 configure.in
--- configure.in 30 Mar 2008 17:47:57 -0000 1.219
+++ configure.in 12 Apr 2008 20:23:13 -0000
@@ -623,7 +623,7 @@
if test x$PGCONFIG != xno ; then
have_postgres=yes
pg_libdir=`$PGCONFIG --libdir`
- POSTGRES_LIBS="-L$pg_libdir -lpq"
+ POSTGRES_LIBS="-L$pg_libdir -lpgport"
pg_includedir=`$PGCONFIG --includedir`
POSTGRES_CFLAGS="-I$pg_includedir"
AC_SUBST(POSTGRES_LIBS)
Can anyone confirm that we should link against -lpgport and not
against -lpq? If not, what we're doing wrong?
take care,
pkot
--
Pawel Kot
- SMSD + PostgreSQL,
Pawel Kot <=