[Freeswitch-users] FS compilation errored out at building mod_cdr_pg_csv
Ken Rice
krice at freeswitch.org
Tue Mar 20 21:29:43 MSK 2012
This error is common if ldd cant find libpq... Does it show up in " ldconfig
-v |grep pq" if not you'll need to add the directory those libs live in to
your ld.so.conf or ld.so.conf.d as is proper on your platform
On 3/20/12 1:09 PM, "Zenny" <garbytrash at gmail.com> wrote:
> On 3/20/12, Bzzz <lazyvirus at gmx.com> wrote:
>> On Tue, 20 Mar 2012 17:53:37 +0000
>> Zenny <garbytrash at gmail.com> wrote:
>>
>>> Just to test, I directly specified /usr/pgsql-9.1/include/libpq-fe.h
>>> in
>>> /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c
>>>
>>> It seemed to have progressed a bit further, but spits out the error:
>>>
>>> Creating mod_cdr_pg_csv.la...
>>> /usr/bin/ld: cannot find -lpq
>>> collect2: ld returned 1 exit status
>>> cat: .libs/mod_cdr_pg_csv.log: No such file or directory
>>> make[5]: *** [mod_cdr_pg_csv.la] Error 1
>>> make[4]: *** [all] Error 1
>>> make[3]: *** [mod_cdr_pg_csv-all] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>
>> Seems normal: you give it the pq header, so it can compile, but it
>> can't link against nothing.
>
> Right. But how could that be solved? I am just struggling with this for a
> while.
>
> Linking directly the /usr/include with /user/pgsql-9.1/include? that
> may affect other applications I guess.
>
>>
>> --
>> QOTD:
>> All I want is more than my fair share.
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list