Those 2 lines were not guarenteed to fix the problem but an example of what the fix might look like... You'll need to adjust it for libpq-fe vs libpq And theres probably other flags that might need to be set as well... K On 3/20/12 12:30 PM, "Zenny" <garbytrash@gmail.com> wrote:
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:4 0: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@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@gmx.com> wrote:
On Tue, 20 Mar 2012 08:57:56 -0500 Ken Rice <krice@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org