<div dir="ltr">i tried with latest version freeswitch-1.4.7 than i got this<div style>how could i solve it ???</div><div style><br></div><div style><br></div><div><div style="font-family:arial,sans-serif;font-size:13px"> CC     mod_cdr_pg_csv_la-mod_cdr_pg_csv.lo</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:40:34: error: postgresql/libpq-fe.h: No such file or directory</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:83: error: expected specifier-qualifier-list before ‘PGconn’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: In function ‘config_validate_spool_dir’:</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:110: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: At top level:</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:121: error: ‘struct &lt;anonymous&gt;’ has no member named ‘legs’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:122: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_format’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:123: error: ‘struct &lt;anonymous&gt;’ has no member named ‘rotate’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:124: error: ‘struct &lt;anonymous&gt;’ has no member named ‘debug’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:127: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: In function ‘do_rotate’:</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:167: error: ‘struct &lt;anonymous&gt;’ has no member named ‘rotate’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:187: error: ‘struct &lt;anonymous&gt;’ has no member named ‘rotate’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: In function ‘insert_cdr’:</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:250: error: ‘PGresult’ undeclared (first use in this function)</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:250: error: (Each undeclared identifier is reported only once</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:250: error: for each function it appears in.)</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:250: error: ‘res’ undeclared (first use in this function)</div>
<div style="font-family:arial,sans-serif;font-size:13px">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 *’)</div><div style="font-family:arial,sans-serif;font-size:13px">
cc1: warnings being treated as errors</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:250: error: statement with no effect</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:255: error: ‘struct &lt;anonymous&gt;’ has no member named ‘debug’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:259: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_mutex’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:259: error: passing argument 1 of ‘switch_mutex_lock’ from incompatible pointer type</div>
<div style="font-family:arial,sans-serif;font-size:13px">../../../../src/include/switch_apr.h:351: note: expected ‘struct switch_mutex_t *’ but argument is of type ‘struct switch_xml_config_item_t *’</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:261: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:261: error: implicit declaration of function ‘PQstatus’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:261: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:261: error: ‘CONNECTION_OK’ undeclared (first use in this function)</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:261: error: comparison between pointer and integer</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:262: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:262: error: implicit declaration of function ‘PQconnectdb’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:262: error: statement with no effect</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:265: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:265: error: comparison between pointer and integer</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:266: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:266: error: statement with no effect</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:268: error: implicit declaration of function ‘PQerrorMessage’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:268: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:268: error: format ‘%s’ expects type ‘char *’, but argument 8 has type ‘int’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:272: error: implicit declaration of function ‘PQexec’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:272: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:272: error: statement with no effect</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:273: error: implicit declaration of function ‘PQresultStatus’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:273: error: ‘PGRES_COMMAND_OK’ undeclared (first use in this function)</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:273: error: comparison between pointer and integer</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:274: error: implicit declaration of function ‘PQresultErrorMessage’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:274: error: format ‘%s’ expects type ‘char *’, but argument 8 has type ‘int’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:275: error: implicit declaration of function ‘PQclear’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:282: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_mutex’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:282: error: passing argument 1 of ‘switch_mutex_unlock’ from incompatible pointer type</div>
<div style="font-family:arial,sans-serif;font-size:13px">../../../../src/include/switch_apr.h:357: note: expected ‘struct switch_mutex_t *’ but argument is of type ‘struct switch_xml_config_item_t *’</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:289: error: implicit declaration of function ‘PQfinish’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:289: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:290: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:290: error: statement with no effect</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:291: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_mutex’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:291: error: passing argument 1 of ‘switch_mutex_unlock’ from incompatible pointer type</div>
<div style="font-family:arial,sans-serif;font-size:13px">../../../../src/include/switch_apr.h:357: note: expected ‘struct switch_mutex_t *’ but argument is of type ‘struct switch_xml_config_item_t *’</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:294: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_format’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:294: error: comparison between pointer and integer</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:295: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:299: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: In function ‘my_on_reporting’:</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:323: error: ‘struct &lt;anonymous&gt;’ has no member named ‘legs’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:323: error: invalid operands to binary &amp; (have ‘struct switch_xml_config_item_t *’ and ‘int’)</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:323: error: ‘struct &lt;anonymous&gt;’ has no member named ‘legs’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:323: error: invalid operands to binary &amp; (have ‘struct switch_xml_config_item_t *’ and ‘int’)</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:324: error: ‘struct &lt;anonymous&gt;’ has no member named ‘legs’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:324: error: invalid operands to binary &amp; (have ‘struct switch_xml_config_item_t *’ and ‘int’)</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:335: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:335: error: passing argument 1 of ‘switch_dir_make_recursive’ from incompatible pointer type</div>
<div style="font-family:arial,sans-serif;font-size:13px">../../../../src/include/switch_apr.h:898: note: expected ‘const char *’ but argument is of type ‘struct switch_xml_config_item_t *’</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:336: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:336: error: format ‘%s’ expects type ‘char *’, but argument 8 has type ‘struct switch_xml_config_item_t *’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:340: error: ‘struct &lt;anonymous&gt;’ has no member named ‘debug’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:361: error: implicit declaration of function ‘PQescapeString’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: In function ‘event_handler’:</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:411: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:412: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:413: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:413: error: statement with no effect</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: In function ‘load_config’:</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:444: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:445: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:446: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_mutex’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:446: error: passing argument 1 of ‘switch_mutex_destroy’ from incompatible pointer type</div>
<div style="font-family:arial,sans-serif;font-size:13px">../../../../src/include/switch_apr.h:344: note: expected ‘struct switch_mutex_t *’ but argument is of type ‘struct switch_xml_config_item_t *’</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:447: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:447: error: statement with no effect</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:452: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_mutex’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:452: error: passing argument 1 of ‘switch_mutex_init’ from incompatible pointer type</div>
<div style="font-family:arial,sans-serif;font-size:13px">../../../../src/include/switch_apr.h:337: note: expected ‘struct switch_mutex_t **’ but argument is of type ‘struct switch_xml_config_item_t (*)[1]’</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c: In function ‘mod_cdr_pg_csv_load’:</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:528: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div><div style="font-family:arial,sans-serif;font-size:13px">
mod_cdr_pg_csv.c:528: error: passing argument 1 of ‘switch_dir_make_recursive’ from incompatible pointer type</div><div style="font-family:arial,sans-serif;font-size:13px">../../../../src/include/switch_apr.h:898: note: expected ‘const char *’ but argument is of type ‘struct switch_xml_config_item_t *’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:529: error: ‘struct &lt;anonymous&gt;’ has no member named ‘spool_dir’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:529: error: format ‘%s’ expects type ‘char *’, but argument 8 has type ‘struct switch_xml_config_item_t *’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c: In function ‘mod_cdr_pg_csv_shutdown’:</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:550: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:551: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_connection’</div><div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:552: error: ‘struct &lt;anonymous&gt;’ has no member named ‘db_online’</div>
<div style="font-family:arial,sans-serif;font-size:13px">mod_cdr_pg_csv.c:552: error: statement with no effect</div><div style="font-family:arial,sans-serif;font-size:13px">make: *** [mod_cdr_pg_csv_la-mod_cdr_pg_csv.lo] Error 1</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 24, 2014 at 3:47 AM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>that tarball will not be foxed it has been deprecated. try using the latest version<br><br><div>Ken</div>
Sent from my iPad</div><div><div class="h5"><div><br>On Aug 23, 2014, at 7:01, Mujahid Ali &lt;<a href="mailto:mujahid@ictinnovations.com" target="_blank">mujahid@ictinnovations.com</a>&gt; wrote:<br><br></div><blockquote type="cite">
<div><div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">i&#39;m building freeswitch rpm from spec file</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">

i download <a href="http://files.freeswitch.org/freeswitch-1.4.5.tar.bz2" style="font-family:&#39;Times New Roman&#39;;font-size:medium" target="_blank">freeswitch-1.4.5.tar.bz2</a> from <a href="http://files.freeswitch.org/" target="_blank">http://files.freeswitch.org/</a></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">but during rpm building there is alot of errors like</div></div><div><br></div><div><br></div><div>

error: Installed (but unpackaged) file(s) found:</div><div>   /etc/freeswitch/autoload_configs/format_cdr.conf.xml</div><div>   /etc/freeswitch/autoload_configs/opus.conf.xml</div><div>   /etc/freeswitch/autoload_configs/spidermonkey.conf.xml</div>

<div>   /etc/freeswitch/autoload_configs/v8.conf.xml</div><div>   /etc/freeswitch/lang/sv/sv.xml</div><div>   /etc/freeswitch/lang/sv/vm/sounds.xml</div><div><br></div><div><br></div><div>RPM build errors:</div><div>    Installed (but unpackaged) file(s) found:</div>

<div>   /etc/freeswitch/autoload_configs/format_cdr.conf.xml</div><div>   /etc/freeswitch/autoload_configs/opus.conf.xml</div><div>   /etc/freeswitch/autoload_configs/spidermonkey.conf.xml</div><div>   /etc/freeswitch/autoload_configs/v8.conf.xml</div>

<div>   /etc/freeswitch/lang/sv/sv.xml</div><div>   /etc/freeswitch/lang/sv/vm/sounds.xml</div><div><br></div></div>
</div></blockquote></div></div><div class=""><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br>
<span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br>
<span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span><br>
<span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></span><br>
<span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br>
<span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div>
</blockquote></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>