[asterisk-dev] undefined symbol: PQsetdbLogin
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Fri May 22 19:10:56 CDT 2009
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
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list