Re: [Freeswitch-users] FS compilation errored out at building mod_cdr_pg_csv
Seems like you're missing some PostgreSQL files; error: libpq-fe.h: No such file or directory /Peter -----Ursprungligt meddelande----- Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] För Zenny Skickat: den 20 mars 2012 13:36 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] FS compilation errored out at building mod_cdr_pg_csv Hi: I tried to build FS from git and it halts with the following error. Could not figure out what could be wrong? Thanks in advance for any hints or imputs to overcome! [QUOTE] .... making all mod_cdr_pg_csv Compiling /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c... quiet_libtool: compile: gcc -I/usr/include/postgresql -I/usr/src/freeswitch/libs/curl/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DHAVE_CONFIG_H -c /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c -fPIC -DPIC -o .libs/mod_cdr_pg_csv.o /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 /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:83: error: expected specifier-qualifier-list before 'PGconn' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'config_validate_spool_dir': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:110: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: At top level: /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:121: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:122: error: 'struct <anonymous>' has no member named 'spool_format' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:123: error: 'struct <anonymous>' has no member named 'rotate' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:124: error: 'struct <anonymous>' has no member named 'debug' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:127: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'do_rotate': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:167: error: 'struct <anonymous>' has no member named 'rotate' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:187: error: 'struct <anonymous>' has no member named 'rotate' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'insert_cdr': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: 'PGresult' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: (Each undeclared identifier is reported only once /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: for each function it appears in.) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: 'res' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: invalid operands to binary * (have 'struct switch_xml_config_item_t *' and 'struct switch_xml_config_item_t *') cc1: warnings being treated as errors /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:255: error: 'struct <anonymous>' has no member named 'debug' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:259: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:259: error: passing argument 1 of 'switch_mutex_lock' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:400: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: implicit declaration of function 'PQstatus' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: 'CONNECTION_OK' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:262: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:262: error: implicit declaration of function 'PQconnectdb' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:262: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:265: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:265: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:266: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:266: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:268: error: implicit declaration of function 'PQerrorMessage' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:268: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:268: error: format '%s' expects type 'char *', but argument 8 has type 'int' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:272: error: implicit declaration of function 'PQexec' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:272: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:272: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:273: error: implicit declaration of function 'PQresultStatus' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:273: error: 'PGRES_COMMAND_OK' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:273: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:274: error: implicit declaration of function 'PQresultErrorMessage' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:274: error: format '%s' expects type 'char *', but argument 8 has type 'int' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:275: error: implicit declaration of function 'PQclear' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:282: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:282: error: passing argument 1 of 'switch_mutex_unlock' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:406: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:289: error: implicit declaration of function 'PQfinish' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:289: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:290: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:290: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:291: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:291: error: passing argument 1 of 'switch_mutex_unlock' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:406: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:294: error: 'struct <anonymous>' has no member named 'spool_format' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:294: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:295: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:299: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'my_on_reporting': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: invalid operands to binary & (have 'struct switch_xml_config_item_t *' and 'int') /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: invalid operands to binary & (have 'struct switch_xml_config_item_t *' and 'int') /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:324: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:324: error: invalid operands to binary & (have 'struct switch_xml_config_item_t *' and 'int') /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:335: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:335: error: passing argument 1 of 'switch_dir_make_recursive' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:947: note: expected 'const char *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:336: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:336: error: format '%s' expects type 'char *', but argument 8 has type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:340: error: 'struct <anonymous>' has no member named 'debug' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:361: error: implicit declaration of function 'PQescapeString' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'event_handler': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:411: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:412: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:413: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:413: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'load_config': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:444: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:445: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:446: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:446: error: passing argument 1 of 'switch_mutex_destroy' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:393: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:447: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:447: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:452: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:452: error: passing argument 1 of 'switch_mutex_init' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:386: note: expected 'struct switch_mutex_t **' but argument is of type 'struct switch_xml_config_item_t (*)[1]' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'mod_cdr_pg_csv_load': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:528: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:528: error: passing argument 1 of 'switch_dir_make_recursive' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:947: note: expected 'const char *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:529: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:529: error: format '%s' expects type 'char *', but argument 8 has type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'mod_cdr_pg_csv_shutdown': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:550: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:551: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:552: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:552: error: statement with no effect make[5]: *** [mod_cdr_pg_csv.lo] 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 [/QUOTE] zenny _________________________________________________________________________ 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 !DSPAM:4f68788832761165663031!
Thanks Peter. But when I checked I have: # find / -name libpq-fe.h /usr/pgsql-9.1/include/libpq-fe.h The file is there. It was compiled from the source in centos6. On 3/20/12, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
Seems like you're missing some PostgreSQL files;
error: libpq-fe.h: No such file or directory
/Peter
-----Ursprungligt meddelande----- Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] För Zenny Skickat: den 20 mars 2012 13:36 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] FS compilation errored out at building mod_cdr_pg_csv
Hi:
I tried to build FS from git and it halts with the following error. Could not figure out what could be wrong? Thanks in advance for any hints or imputs to overcome!
[QUOTE] .... making all mod_cdr_pg_csv Compiling /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c... quiet_libtool: compile: gcc -I/usr/include/postgresql -I/usr/src/freeswitch/libs/curl/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DHAVE_CONFIG_H -c /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c -fPIC -DPIC -o .libs/mod_cdr_pg_csv.o /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 /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:83: error: expected specifier-qualifier-list before 'PGconn' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'config_validate_spool_dir': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:110: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: At top level: /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:121: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:122: error: 'struct <anonymous>' has no member named 'spool_format' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:123: error: 'struct <anonymous>' has no member named 'rotate' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:124: error: 'struct <anonymous>' has no member named 'debug' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:127: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'do_rotate': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:167: error: 'struct <anonymous>' has no member named 'rotate' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:187: error: 'struct <anonymous>' has no member named 'rotate' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'insert_cdr': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: 'PGresult' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: (Each undeclared identifier is reported only once /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: for each function it appears in.) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: 'res' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: invalid operands to binary * (have 'struct switch_xml_config_item_t *' and 'struct switch_xml_config_item_t *') cc1: warnings being treated as errors /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:250: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:255: error: 'struct <anonymous>' has no member named 'debug' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:259: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:259: error: passing argument 1 of 'switch_mutex_lock' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:400: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: implicit declaration of function 'PQstatus' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: 'CONNECTION_OK' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:261: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:262: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:262: error: implicit declaration of function 'PQconnectdb' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:262: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:265: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:265: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:266: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:266: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:268: error: implicit declaration of function 'PQerrorMessage' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:268: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:268: error: format '%s' expects type 'char *', but argument 8 has type 'int' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:272: error: implicit declaration of function 'PQexec' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:272: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:272: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:273: error: implicit declaration of function 'PQresultStatus' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:273: error: 'PGRES_COMMAND_OK' undeclared (first use in this function) /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:273: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:274: error: implicit declaration of function 'PQresultErrorMessage' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:274: error: format '%s' expects type 'char *', but argument 8 has type 'int' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:275: error: implicit declaration of function 'PQclear' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:282: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:282: error: passing argument 1 of 'switch_mutex_unlock' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:406: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:289: error: implicit declaration of function 'PQfinish' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:289: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:290: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:290: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:291: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:291: error: passing argument 1 of 'switch_mutex_unlock' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:406: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:294: error: 'struct <anonymous>' has no member named 'spool_format' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:294: error: comparison between pointer and integer /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:295: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:299: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'my_on_reporting': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: invalid operands to binary & (have 'struct switch_xml_config_item_t *' and 'int') /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:323: error: invalid operands to binary & (have 'struct switch_xml_config_item_t *' and 'int') /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:324: error: 'struct <anonymous>' has no member named 'legs' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:324: error: invalid operands to binary & (have 'struct switch_xml_config_item_t *' and 'int') /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:335: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:335: error: passing argument 1 of 'switch_dir_make_recursive' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:947: note: expected 'const char *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:336: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:336: error: format '%s' expects type 'char *', but argument 8 has type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:340: error: 'struct <anonymous>' has no member named 'debug' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:361: error: implicit declaration of function 'PQescapeString' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'event_handler': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:411: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:412: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:413: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:413: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'load_config': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:444: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:445: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:446: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:446: error: passing argument 1 of 'switch_mutex_destroy' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:393: note: expected 'struct switch_mutex_t *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:447: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:447: error: statement with no effect /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:452: error: 'struct <anonymous>' has no member named 'db_mutex' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:452: error: passing argument 1 of 'switch_mutex_init' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:386: note: expected 'struct switch_mutex_t **' but argument is of type 'struct switch_xml_config_item_t (*)[1]' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'mod_cdr_pg_csv_load': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:528: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:528: error: passing argument 1 of 'switch_dir_make_recursive' from incompatible pointer type /usr/src/freeswitch/src/include/switch_apr.h:947: note: expected 'const char *' but argument is of type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:529: error: 'struct <anonymous>' has no member named 'spool_dir' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:529: error: format '%s' expects type 'char *', but argument 8 has type 'struct switch_xml_config_item_t *' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c: In function 'mod_cdr_pg_csv_shutdown': /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:550: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:551: error: 'struct <anonymous>' has no member named 'db_connection' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:552: error: 'struct <anonymous>' has no member named 'db_online' /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c:552: error: statement with no effect make[5]: *** [mod_cdr_pg_csv.lo] 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 [/QUOTE]
zenny
_________________________________________________________________________ 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
!DSPAM:4f68788832761165663031!
_________________________________________________________________________ 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
On Tue, 20 Mar 2012 13:12:20 +0000 Zenny <garbytrash@gmail.com> wrote:
But when I checked I have:
# find / -name libpq-fe.h /usr/pgsql-9.1/include/libpq-fe.h
The file is there. It was compiled from the source in centos6.
As it was compiled, there's chances that this lib isn't accounted in the system; did you run ldconfig after installation? JY --
Yes, I did ldconfig after the installation. On 3/20/12, Bzzz <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 13:12:20 +0000 Zenny <garbytrash@gmail.com> wrote:
But when I checked I have:
# find / -name libpq-fe.h /usr/pgsql-9.1/include/libpq-fe.h
The file is there. It was compiled from the source in centos6.
As it was compiled, there's chances that this lib isn't accounted in the system; did you run ldconfig after installation?
JY --
_________________________________________________________________________ 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
On Tue, 20 Mar 2012 13:28:39 +0000 Zenny <garbytrash@gmail.com> wrote:
Yes, I did ldconfig after the installation.
But when I checked I have: # find / -name libpq-fe.h /usr/pgsql-9.1/include/libpq-fe.h
That don't look like a regular path (such as: /usr/include/.....) make a symlink: ln -s /usr/pgsql-9.1/ /usr/include/ re-ldconfig and retry. -- Love is the process of my leading you gently back to yourself. -- Saint Exupery
That's not a good way to solve the problem... The problem after a quick look is hardcoded paths for pgsql... On 3/20/12 8:42 AM, "Bzzz" <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 13:28:39 +0000 Zenny <garbytrash@gmail.com> wrote:
Yes, I did ldconfig after the installation.
But when I checked I have: # find / -name libpq-fe.h /usr/pgsql-9.1/include/libpq-fe.h
That don't look like a regular path (such as: /usr/include/.....) make a symlink: ln -s /usr/pgsql-9.1/ /usr/include/ re-ldconfig and retry.
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=/....) --
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=/....)
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@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
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 :-( On 3/20/12, 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: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@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
On Tue, 20 Mar 2012 17:53:37 +0000 Zenny <garbytrash@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. -- QOTD: All I want is more than my fair share.
On 3/20/12, Bzzz <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 17:53:37 +0000 Zenny <garbytrash@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@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
On Tue, 20 Mar 2012 18:09:49 +0000 Zenny <garbytrash@gmail.com> wrote:
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.
Hmm, may be you should test the modifications Ken mentioned (into Makefile)? -- No matter how clever the hardware boys are, the software boys piss it away.
On 3/20/12, Bzzz <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 18:09:49 +0000 Zenny <garbytrash@gmail.com> wrote:
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.
Hmm, may be you should test the modifications Ken mentioned (into Makefile)?
Already did the changes as Ken suggested, but with the same error!!! :-(
-- No matter how clever the hardware boys are, the software boys piss it away.
_________________________________________________________________________ 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
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@gmail.com> wrote:
On 3/20/12, Bzzz <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 17:53:37 +0000 Zenny <garbytrash@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@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
Thank Ken: I do see : # ldconfig -v | grep pq libpqwalreceiver.so -> libpqwalreceiver.so libpq.so.5 -> libpq.so.5.4 libipq.so.0 -> libipq.so.0.0.0 where do I need to add manually? /etc/ld.so.conf.d/? On 3/20/12, Ken Rice <krice@freeswitch.org> wrote:
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@gmail.com> wrote:
On 3/20/12, Bzzz <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 17:53:37 +0000 Zenny <garbytrash@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@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
_________________________________________________________________________ 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
I also tried to export with 'pg_config --includedir' instead of --pkgincludedir below before I executed ./configure: # export CFLAGS=-I'pg_config --includedir' [freeswitch]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... configure: error: in `/usr/src/freeswitch': configure: error: C compiler cannot create executables In this case, even ./configure failed. My include directories are: # pg_config | grep INCLUDE INCLUDEDIR = /usr/pgsql-9.1/include PKGINCLUDEDIR = /usr/pgsql-9.1/include INCLUDEDIR-SERVER = /usr/pgsql-9.1/include/server Where did I go wrong? On 3/20/12, Zenny <garbytrash@gmail.com> wrote:
Thank Ken:
I do see :
# ldconfig -v | grep pq libpqwalreceiver.so -> libpqwalreceiver.so libpq.so.5 -> libpq.so.5.4 libipq.so.0 -> libipq.so.0.0.0
where do I need to add manually? /etc/ld.so.conf.d/?
On 3/20/12, Ken Rice <krice@freeswitch.org> wrote:
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@gmail.com> wrote:
On 3/20/12, Bzzz <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 17:53:37 +0000 Zenny <garbytrash@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@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
_________________________________________________________________________ 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
On 21-03-12 12:01, Zenny wrote:
I also tried to export with 'pg_config --includedir' instead of --pkgincludedir below before I executed ./configure:
# export CFLAGS=-I'pg_config --includedir' [freeswitch]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... configure: error: in `/usr/src/freeswitch': configure: error: C compiler cannot create executables
In this case, even ./configure failed. My include directories are:
# pg_config | grep INCLUDE INCLUDEDIR = /usr/pgsql-9.1/include PKGINCLUDEDIR = /usr/pgsql-9.1/include INCLUDEDIR-SERVER = /usr/pgsql-9.1/include/server
Where did I go wrong?
I don't know which distro you use but that directory (/usr/pgsql-9.1) looks odd. If you use CentOS or RHEL why don't you just remove all stock postgresql RPMs from your box and install a decent PostgreSQL 9.1 RPM via http://yum.postgresql.org/ Regards, Patrick
On 3/21/12, Patrick Lists <freeswitch-list@puzzled.xs4all.nl> wrote:
On 21-03-12 12:01, Zenny wrote:
I also tried to export with 'pg_config --includedir' instead of --pkgincludedir below before I executed ./configure:
# export CFLAGS=-I'pg_config --includedir' [freeswitch]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... configure: error: in `/usr/src/freeswitch': configure: error: C compiler cannot create executables
In this case, even ./configure failed. My include directories are:
# pg_config | grep INCLUDE INCLUDEDIR = /usr/pgsql-9.1/include PKGINCLUDEDIR = /usr/pgsql-9.1/include INCLUDEDIR-SERVER = /usr/pgsql-9.1/include/server
Where did I go wrong?
I don't know which distro you use but that directory (/usr/pgsql-9.1) looks odd. If you use CentOS or RHEL why don't you just remove all stock postgresql RPMs from your box and install a decent PostgreSQL 9.1 RPM via http://yum.postgresql.org/
I am using CentOS6. I installed the RPMs directly downloading the repos from: rpm -ivh http://yum.postgresql.org/9.1/redhat/rhel-6-x86:64/pgdg-centos91-9.1-4.noarc...
Regards, Patrick
_________________________________________________________________________ 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
On 21-03-12 13:42, Zenny wrote:
I don't know which distro you use but that directory (/usr/pgsql-9.1) looks odd. If you use CentOS or RHEL why don't you just remove all stock postgresql RPMs from your box and install a decent PostgreSQL 9.1 RPM via http://yum.postgresql.org/
I am using CentOS6. I installed the RPMs directly downloading the repos from: rpm -ivh http://yum.postgresql.org/9.1/redhat/rhel-6-x86:64/pgdg-centos91-9.1-4.noarc...
I just checked the postgresql-9.1 server RPM and you are right. Wow... The PostgreSQL packager could read up on the RPM Packaging Guide Lines and the FHS. I guess they packaged it so that it does not interfere with the RHEL/CentOS provided PostgreSQL RPMs but putting everything in a non-standard location clearly causes challenges as you are experiencing right now. I'm afraid I can't be of any help. Regards, Patrick
According to the FS wiki, on CentOS 6 you need to run ./configure --without-libcurl --without-pgsql. See if that helps. Release(es) 6 and Later ... Also, when using release 6 and later, make sure to configure with "./configure --without-libcurl --without-pgsql", this is to make sure that FreeSWITCH uses it's own curl library, instead of the system provided, and that it doesn't try to use the system provided postgresql libs. If using the system provided versions linking errors will occur. Hopefully this will be auto detected in a near future. Related Jira issues are: FS-3384, FS-3630 and FS-3393. 2012/3/21 Patrick Lists <freeswitch-list@puzzled.xs4all.nl>
On 21-03-12 13:42, Zenny wrote:
I don't know which distro you use but that directory (/usr/pgsql-9.1) looks odd. If you use CentOS or RHEL why don't you just remove all stock postgresql RPMs from your box and install a decent PostgreSQL 9.1 RPM via http://yum.postgresql.org/
I am using CentOS6. I installed the RPMs directly downloading the repos from: rpm -ivh http://yum.postgresql.org/9.1/redhat/rhel-6-x86:64/pgdg-centos91-9.1-4.noarc...
I just checked the postgresql-9.1 server RPM and you are right. Wow... The PostgreSQL packager could read up on the RPM Packaging Guide Lines and the FHS. I guess they packaged it so that it does not interfere with the RHEL/CentOS provided PostgreSQL RPMs but putting everything in a non-standard location clearly causes challenges as you are experiencing right now. I'm afraid I can't be of any help.
Regards, Patrick
_________________________________________________________________________ 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
On 3/21/12, Vitalie Colosov <vetali100@gmail.com> wrote:
According to the FS wiki, on CentOS 6 you need to run ./configure --without-libcurl --without-pgsql. See if that helps.
Tried also with above, but ends up in the same error saying libpq-fe.h not found! Hmmmmm!
Release(es) 6 and Later
...
Also, when using release 6 and later, make sure to configure with "./configure --without-libcurl --without-pgsql", this is to make sure that FreeSWITCH uses it's own curl library, instead of the system provided, and that it doesn't try to use the system provided postgresql libs. If using the system provided versions linking errors will occur. Hopefully this will be auto detected in a near future. Related Jira issues are: FS-3384, FS-3630 and FS-3393.
2012/3/21 Patrick Lists <freeswitch-list@puzzled.xs4all.nl>
On 21-03-12 13:42, Zenny wrote:
I don't know which distro you use but that directory (/usr/pgsql-9.1) looks odd. If you use CentOS or RHEL why don't you just remove all stock postgresql RPMs from your box and install a decent PostgreSQL 9.1 RPM via http://yum.postgresql.org/
I am using CentOS6. I installed the RPMs directly downloading the repos from: rpm -ivh http://yum.postgresql.org/9.1/redhat/rhel-6-x86:64/pgdg-centos91-9.1-4.noarc...
I just checked the postgresql-9.1 server RPM and you are right. Wow... The PostgreSQL packager could read up on the RPM Packaging Guide Lines and the FHS. I guess they packaged it so that it does not interfere with the RHEL/CentOS provided PostgreSQL RPMs but putting everything in a non-standard location clearly causes challenges as you are experiencing right now. I'm afraid I can't be of any help.
Regards, Patrick
_________________________________________________________________________ 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
On Wed, 21 Mar 2012 16:48:43 +0000 Zenny <garbytrash@gmail.com> wrote:
According to the FS wiki, on CentOS 6 you need to run ./configure --without-libcurl --without-pgsql. See if that helps.
Tried also with above, but ends up in the same error saying libpq-fe.h not found!
Hmmmmm!
So, use Debian! Ok->[] --
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
Check to see how those libs are getting specified in the Makefile for that module... You'll notice that the paths are hardcoded... This could really use some pg_config love K On 3/20/12 8:28 AM, "Zenny" <garbytrash@gmail.com> wrote:
Yes, I did ldconfig after the installation.
On 3/20/12, Bzzz <lazyvirus@gmx.com> wrote:
On Tue, 20 Mar 2012 13:12:20 +0000 Zenny <garbytrash@gmail.com> wrote:
But when I checked I have:
# find / -name libpq-fe.h /usr/pgsql-9.1/include/libpq-fe.h
The file is there. It was compiled from the source in centos6.
As it was compiled, there's chances that this lib isn't accounted in the system; did you run ldconfig after installation?
JY --
_________________________________________________________________________ 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
participants (6)
-
Bzzz
-
Ken Rice
-
Patrick Lists
-
Peter Olsson
-
Vitalie Colosov
-
Zenny