[Freeswitch-users] FS compilation errored out at building mod_cdr_pg_csv

Zenny garbytrash at gmail.com
Tue Mar 20 20:30:44 MSK 2012


Hi Ken:

Thanks for your input, but even after inserting two lines you advised
in Makefile pops out the same error.

# grep -n libpq-fe.h make-error1.txt
4:/usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:40:22:
error: libpq-fe.h: No such file or directory

However, I did see the a problem with ./configure also.
# grep -n libpq-fe.h configure-output1.txt
1440:checking libpq-fe.h usability... no
1441:checking libpq-fe.h presence... no
1442:checking for libpq-fe.h... no

What I meant is if ./configure is reporting the unavailability of
libpq-fe.h, is that possible by just making changes in the Makefile? I
know I may sound pretty dumb! ;-)

/z



On 3/20/12, Ken Rice <krice at freeswitch.org> wrote:
> Actually there just needs to be a pg_config check in there... This will
> completely solve the problem in a cross platform sorta way
>
> Something like this in the Makefile
>
> LOCAL_CFLAGS=-I`pg_config --pkgincludedir` -I/usr/include ${EXTRA_FLAGS}
> LOCAL_LDFLAGS=`pg_config --libdir`/libpq.so
>
> Maybe a few extra things in there. But that will clean up that pathing issue
> and this is cross platform for properly installed postgresql
>
> K
>
>
> On 3/20/12 9:13 AM, "Bzzz" <lazyvirus at gmx.com> wrote:
>
>> On Tue, 20 Mar 2012 08:57:56 -0500
>> Ken Rice <krice at freeswitch.org> wrote:
>>
>>> That's not a good way to solve the problem... The problem after a quick
>>> look
>>> is hardcoded paths for pgsql...
>>
>> Hmm, I didn't check but there's also usually a configure option to
>> point to unusual paths (some' like: --with-thelibIwant=/....)
>
>
>
> _________________________________________________________________________
> 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