gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMSD + PostgreSQL


From: Jan Derfinak
Subject: Re: SMSD + PostgreSQL
Date: Sat, 12 Apr 2008 23:54:05 +0200 (CEST)

On Sat, 12 Apr 2008, Pawel Kot wrote:

Pawel,

> 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

which version of PostgreSQL?


jan

> 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?


-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]