[asterisk-dev] undefined symbol: PQsetdbLogin

Joel Jn-Francois voirtech at gmail.com
Fri May 22 20:23:15 CDT 2009


>>Do you build your module in the Asterisk tree or outside of it? The
>>MODULEINFO section is used by the Asterisk build system when ou build a
>>module in the tree.

I do the build of my module in Asterisk tree.  The module is in the asterisk
source apps folder.  I run make, then make install and  the module compiles
perfectly without any errors.




On Fri, May 22, 2009 at 8:10 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>wrote:

> On Fri, May 22, 2009 at 11:06:55AM -0400, Joel Jn-Francois wrote:
> > >> 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?
>
> Do you build your module in the Asterisk tree or outside of it? The
> MODULEINFO section is used by the Asterisk build system when you build a
> module in the tree.
>
> --
>               Tzafrir Cohen
> icq#16849755              jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> _______________________________________________
> --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/9ccbe1e3/attachment-0001.htm 


More information about the asterisk-dev mailing list