[prev in list] [next in list] [prev in thread] [next in thread]
List: asterisk-dev
Subject: Re: [asterisk-dev] undefined symbol: PQsetdbLogin
From: Joel Jn-Francois <voirtech () gmail ! com>
Date: 2009-05-29 16:45:19
Message-ID: bf71fb290905290945j6ce26987o69a1f9f3f9a920ce () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Was anyone able to figure out what I might be doing wrong on my end?
After no success with everything I tried, I downgraded to asterisk 1.4.25
> and went back to my original code which worked perfectly on asterisk
> 1.4.21. However, I am getting the same undefined symbol: PQsetdbLogin error
> in 1.4.25. What I forgot to mention though, is that the module that is
> working in asterisk 1.4.21 is running on a different server. Below are the
> specs for both servers:
>
> *Server with asterisk 1.4.21 with my asterisk c module running perfectly:*
> model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
> processor : 2
> cpu MHz : 3 Ghz
> Operating System: Fedora Core 5
>
> *Server with asterisk 1.4.25/1.6.1 that gives me undefined symbol:
> PQsetdbLogin when I tried to load the module in asterisk. This happens even
> though I include <depend>pgsql</depend> in the MODULEINFO in my source code.
> *model name : Dual-Core AMD Opteron(tm) Processor 1216 HE
> processor : 2
> cpu MHz : 2.2 Ghz
> cpu cores : 2
> clflush size : 64
> cache_alignment : 64
> Operating System: Centos 5 (64 bit)
>
> I hope this information will shed some more light into my problem.
>
> Thanks everyone.
>
>
>
>
>
> On Fri, May 22, 2009 at 9:23 PM, Joel Jn-Francois <voirtech@gmail.com>wrote:
>
>> >>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@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@xorcom.com<jabber%3Atzafrir.cohen@xorcom.com>
>>> +972-50-7952406 mailto:tzafrir.cohen@xorcom.com
>>> http://www.xorcom.com iax:guest@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
>>>
>>
>>
>
[Attachment #5 (text/html)]
Was anyone able to figure out what I might be doing wrong on my end?<br><br><div \
class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> After no success \
with everything I tried, I downgraded to asterisk 1.4.25 and went back to my original \
code which worked perfectly on asterisk 1.4.21. However, I am getting the same \
undefined symbol: PQsetdbLogin error in 1.4.25. What I forgot to mention though, is \
that the module that is working in asterisk 1.4.21 is running on a different server. \
Below are the specs for both servers:<br>
<br><u>Server with asterisk 1.4.21 with my asterisk c module running \
perfectly:</u><br>model name : Intel(R) Pentium(R) 4 CPU 3.00GHz<br>processor \
: 2<br>cpu MHz : 3 Ghz<br>Operating System: Fedora Core 5<br>
<br><u>Server with asterisk 1.4.25/1.6.1 that gives me undefined symbol: PQsetdbLogin \
when I tried to load the module in asterisk. This happens even though I include \
<depend>pgsql</depend> in the MODULEINFO in my source code.<br>
</u>model name : Dual-Core AMD Opteron(tm) Processor 1216 HE<br>processor \
: 2<br>cpu MHz : 2.2 Ghz<br>cpu cores : 2<br>clflush size : \
64<br>cache_alignment : 64<br>Operating System: Centos 5 (64 bit)<br>
<br>I hope this information will shed some more light into my problem.<br><br>Thanks \
everyone.<div><div></div><div class="h5"><br><br><br><br><br><div \
class="gmail_quote">On Fri, May 22, 2009 at 9:23 PM, Joel Jn-Francois <span \
dir="ltr"><<a href="mailto:voirtech@gmail.com" \
target="_blank">voirtech@gmail.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>>>Do you build your module \
in the Asterisk tree or outside of it? The<br> </div>
>>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.<div>
<div></div><div><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" \
target="_blank">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>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" \
target="_blank">jabber:tzafrir.cohen@xorcom.com</a><br> +972-50-7952406 \
mailto:<a href="mailto:tzafrir.cohen@xorcom.com" \
target="_blank">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><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> </div></div></blockquote></div><br>
</div></div></blockquote></div><br>
_______________________________________________
--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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic