>>Do you build your module in the Asterisk tree or outside of it? The<br>
>>MODULEINFO section is used by the Asterisk build system when ou build a<br>
>>module in the tree.<br><br>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.<br>
<font color="#888888"><br><br></font><br><br><div class="gmail_quote">On Fri, May 22, 2009 at 8:10 PM, Tzafrir Cohen <span dir="ltr"><<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Fri, May 22, 2009 at 11:06:55AM -0400, Joel Jn-Francois wrote:<br>
> >> You need to link against libpq when you link the asterisk binary (the<br>
> >> gcc -o / ld stage), e.g. -lpq.<br>
> >><br>
><br>
> > And the way to do this is to place the following comment within your C<br>
> source<br>
> > file:<br>
> ><br>
> >/*** MODULEINFO<br>
> > <depend>pgsql</depend><br>
> > ***/<br>
><br>
><br>
> Thanks everyone for your help. I did add the following to my code, but I am<br>
> still getting the exact error message. I also made sure I deleted my old<br>
> module and made sure the new module that was created is the one with<br>
> <depend>pgsql</depend>.<br>
><br>
> /*** MODULEINFO<br>
> <depend>pgsql</depend><br>
> ***/<br>
><br>
> Is there something else that I am doing wrong?<br>
<br>
</div>Do you build your module in the Asterisk tree or outside of it? The<br>
MODULEINFO section is used by the Asterisk build system when you build a<br>
module in the tree.<br>
<font color="#888888"><br>
--<br>
Tzafrir Cohen<br>
icq#16849755 <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406 mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com" target="_blank">http://www.xorcom.com</a> <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br>