[asterisk-dev] undefined symbol: PQsetdbLogin

Joel Jn-Francois voirtech at gmail.com
Fri May 22 10:06:55 CDT 2009


>> You need to link against libpq when you link the asterisk binary (the
>> gcc -o / ld stage), e.g. -lpq.
>>

> And the way to do this is to place the following comment within your C
source
> file:
>
>/*** MODULEINFO
>  <depend>pgsql</depend>
> ***/


Thanks everyone for your help.  I did add the following to my code, but I am
still getting the exact error message.  I also made sure I deleted my old
module and made sure the new module that was created is the one with
<depend>pgsql</depend>.

/*** MODULEINFO
   <depend>pgsql</depend>
 ***/

Is there something else that I am doing wrong?

Thanks
Joel


On Fri, May 22, 2009 at 2:18 AM, Tilghman Lesher <
tilghman at mail.jeffandtilghman.com> wrote:

>
> On Thursday 21 May 2009 23:07:47 Alex Balashov wrote:
> > Joel Jn-Francois wrote:
> > > The problem arises when I try to load my app within asterisk "module
> > > load app_callingcard.so". I get the following error message:
> > > WARNING[31732]: loader.c:417 load_dynamic_module: Error loading module
> > > 'app_callingcard.so': /usr/lib/asterisk/modules/app_
> > > callingcard.so: undefined symbol: PQsetdbLogin.
> >
> > You need to link against libpq when you link the asterisk binary (the
> > gcc -o / ld stage), e.g. -lpq.
>
> And the way to do this is to place the following comment within your C
> source
> file:
>
> /*** MODULEINFO
>    <depend>pgsql</depend>
>  ***/
>
> --
> Tilghman
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20090522/2faaa56b/attachment.htm 


More information about the asterisk-dev mailing list