<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">You appear to be lacking the necessary
postgres-devel package on your system. If you don't intend to use
that module, you can disable using it. I think it was this past
Wednesday or the week prior that Ken Rice gave a discussion on our
weekly developers' conference call about the build system and how
to do exactly this. I don't know offhand where the archives are
of these recordings, but if you can find them, they are worthwhile
to listen to.<br>
<pre class="moz-signature" cols="72">--
Yossi Neiman
On 08/22/2014 11:30 PM, Mujahid Ali wrote:
</pre>
</div>
<blockquote
cite="mid:CAJT02Hy=USpSjeew3B8SM4rBR_LbHBhMHvnPmcZZiwON7VWiDQ@mail.gmail.com"
type="cite">
<div dir="ltr">i'm building freeswitch rpm from spec file
<div><br>
</div>
<div style="">i download <a moz-do-not-send="true"
href="http://files.freeswitch.org/freeswitch-1.4.7.tar.bz2"
style="font-family:'Times New Roman';font-size:medium">freeswitch-1.4.7.tar.bz2</a> from <a
moz-do-not-send="true" href="http://files.freeswitch.org/">http://files.freeswitch.org/</a></div>
<div style=""><br>
</div>
<div style="">but during rpm building there is alot of errors
like</div>
<div style=""><br>
</div>
<div style="">
<div>making all mod_cdr_pg_csv</div>
<div>make[4]: Entering directory
`/root/rpmbuild/BUILD/freeswitch-1.4.7/src/mod/event_handlers/mod_cdr_pg_csv'</div>
<div> CC mod_cdr_pg_csv_la-mod_cdr_pg_csv.lo</div>
<div>mod_cdr_pg_csv.c:40:33: error: postgresql/libpq-fe.h: No
such file or directory</div>
<div>mod_cdr_pg_csv.c:83: error: expected
specifier-qualifier-list before 'PGconn'</div>
<div>mod_cdr_pg_csv.c: In function
'config_validate_spool_dir':</div>
<div>mod_cdr_pg_csv.c:110: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>mod_cdr_pg_csv.c: At top level:</div>
<div>mod_cdr_pg_csv.c:121: error: 'struct <anonymous>'
has no member named 'legs'</div>
<div>mod_cdr_pg_csv.c:122: error: 'struct <anonymous>'
has no member named 'spool_format'</div>
<div>mod_cdr_pg_csv.c:123: error: 'struct <anonymous>'
has no member named 'rotate'</div>
<div>mod_cdr_pg_csv.c:124: error: 'struct <anonymous>'
has no member named 'debug'</div>
<div>mod_cdr_pg_csv.c:127: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>mod_cdr_pg_csv.c: In function 'do_rotate':</div>
<div>mod_cdr_pg_csv.c:167: error: 'struct <anonymous>'
has no member named 'rotate'</div>
<div>mod_cdr_pg_csv.c:187: error: 'struct <anonymous>'
has no member named 'rotate'</div>
<div>mod_cdr_pg_csv.c: In function 'insert_cdr':</div>
<div>mod_cdr_pg_csv.c:250: error: 'PGresult' undeclared (first
use in this function)</div>
<div>mod_cdr_pg_csv.c:250: error: (Each undeclared identifier
is reported only once</div>
<div>mod_cdr_pg_csv.c:250: error: for each function it appears
in.)</div>
<div>mod_cdr_pg_csv.c:250: error: 'res' undeclared (first use
in this function)</div>
<div>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>cc1: warnings being treated as errors</div>
<div>mod_cdr_pg_csv.c:250: error: statement with no effect</div>
<div>mod_cdr_pg_csv.c:255: error: 'struct <anonymous>'
has no member named 'debug'</div>
<div>mod_cdr_pg_csv.c:259: error: 'struct <anonymous>'
has no member named 'db_mutex'</div>
<div>mod_cdr_pg_csv.c:259: error: passing argument 1 of
'switch_mutex_lock' from incompatible pointer type</div>
<div>../../../../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>mod_cdr_pg_csv.c:261: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:261: error: implicit declaration of
function 'PQstatus'</div>
<div>mod_cdr_pg_csv.c:261: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:261: error: 'CONNECTION_OK' undeclared
(first use in this function)</div>
<div>mod_cdr_pg_csv.c:261: error: comparison between pointer
and integer</div>
<div>mod_cdr_pg_csv.c:262: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:262: error: implicit declaration of
function 'PQconnectdb'</div>
<div>mod_cdr_pg_csv.c:262: error: statement with no effect</div>
<div>mod_cdr_pg_csv.c:265: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:265: error: comparison between pointer
and integer</div>
<div>mod_cdr_pg_csv.c:266: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:266: error: statement with no effect</div>
<div>mod_cdr_pg_csv.c:268: error: implicit declaration of
function 'PQerrorMessage'</div>
<div>mod_cdr_pg_csv.c:268: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:268: error: format '%s' expects type
'char *', but argument 8 has type 'int'</div>
<div>mod_cdr_pg_csv.c:272: error: implicit declaration of
function 'PQexec'</div>
<div>mod_cdr_pg_csv.c:272: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:272: error: statement with no effect</div>
<div>mod_cdr_pg_csv.c:273: error: implicit declaration of
function 'PQresultStatus'</div>
<div>mod_cdr_pg_csv.c:273: error: 'PGRES_COMMAND_OK'
undeclared (first use in this function)</div>
<div>mod_cdr_pg_csv.c:273: error: comparison between pointer
and integer</div>
<div>mod_cdr_pg_csv.c:274: error: implicit declaration of
function 'PQresultErrorMessage'</div>
<div>mod_cdr_pg_csv.c:274: error: format '%s' expects type
'char *', but argument 8 has type 'int'</div>
<div>mod_cdr_pg_csv.c:275: error: implicit declaration of
function 'PQclear'</div>
<div>mod_cdr_pg_csv.c:282: error: 'struct <anonymous>'
has no member named 'db_mutex'</div>
<div>mod_cdr_pg_csv.c:282: error: passing argument 1 of
'switch_mutex_unlock' from incompatible pointer type</div>
<div>../../../../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>mod_cdr_pg_csv.c:289: error: implicit declaration of
function 'PQfinish'</div>
<div>mod_cdr_pg_csv.c:289: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:290: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:290: error: statement with no effect</div>
<div>mod_cdr_pg_csv.c:291: error: 'struct <anonymous>'
has no member named 'db_mutex'</div>
<div>mod_cdr_pg_csv.c:291: error: passing argument 1 of
'switch_mutex_unlock' from incompatible pointer type</div>
<div>../../../../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>mod_cdr_pg_csv.c:294: error: 'struct <anonymous>'
has no member named 'spool_format'</div>
<div>mod_cdr_pg_csv.c:294: error: comparison between pointer
and integer</div>
<div>mod_cdr_pg_csv.c:295: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>mod_cdr_pg_csv.c:299: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>mod_cdr_pg_csv.c: In function 'my_on_reporting':</div>
<div>mod_cdr_pg_csv.c:323: error: 'struct <anonymous>'
has no member named 'legs'</div>
<div>mod_cdr_pg_csv.c:323: error: invalid operands to binary
& (have 'struct switch_xml_config_item_t *' and 'int')</div>
<div>mod_cdr_pg_csv.c:323: error: 'struct <anonymous>'
has no member named 'legs'</div>
<div>mod_cdr_pg_csv.c:323: error: invalid operands to binary
& (have 'struct switch_xml_config_item_t *' and 'int')</div>
<div>mod_cdr_pg_csv.c:324: error: 'struct <anonymous>'
has no member named 'legs'</div>
<div>mod_cdr_pg_csv.c:324: error: invalid operands to binary
& (have 'struct switch_xml_config_item_t *' and 'int')</div>
<div>mod_cdr_pg_csv.c:335: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>mod_cdr_pg_csv.c:335: error: passing argument 1 of
'switch_dir_make_recursive' from incompatible pointer type</div>
<div>../../../../src/include/switch_apr.h:898: note: expected
'const char *' but argument is of type 'struct
switch_xml_config_item_t *'</div>
<div>mod_cdr_pg_csv.c:336: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>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>mod_cdr_pg_csv.c:340: error: 'struct <anonymous>'
has no member named 'debug'</div>
<div>mod_cdr_pg_csv.c:361: error: implicit declaration of
function 'PQescapeString'</div>
<div>mod_cdr_pg_csv.c: In function 'event_handler':</div>
<div>mod_cdr_pg_csv.c:411: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:412: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:413: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:413: error: statement with no effect</div>
<div>mod_cdr_pg_csv.c: In function 'load_config':</div>
<div>mod_cdr_pg_csv.c:444: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:445: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:446: error: 'struct <anonymous>'
has no member named 'db_mutex'</div>
<div>mod_cdr_pg_csv.c:446: error: passing argument 1 of
'switch_mutex_destroy' from incompatible pointer type</div>
<div>../../../../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>mod_cdr_pg_csv.c:447: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:447: error: statement with no effect</div>
<div>mod_cdr_pg_csv.c:452: error: 'struct <anonymous>'
has no member named 'db_mutex'</div>
<div>mod_cdr_pg_csv.c:452: error: passing argument 1 of
'switch_mutex_init' from incompatible pointer type</div>
<div>../../../../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>mod_cdr_pg_csv.c: In function 'mod_cdr_pg_csv_load':</div>
<div>mod_cdr_pg_csv.c:528: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>mod_cdr_pg_csv.c:528: error: passing argument 1 of
'switch_dir_make_recursive' from incompatible pointer type</div>
<div>../../../../src/include/switch_apr.h:898: note: expected
'const char *' but argument is of type 'struct
switch_xml_config_item_t *'</div>
<div>mod_cdr_pg_csv.c:529: error: 'struct <anonymous>'
has no member named 'spool_dir'</div>
<div>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>mod_cdr_pg_csv.c: In function 'mod_cdr_pg_csv_shutdown':</div>
<div>mod_cdr_pg_csv.c:550: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:551: error: 'struct <anonymous>'
has no member named 'db_connection'</div>
<div>mod_cdr_pg_csv.c:552: error: 'struct <anonymous>'
has no member named 'db_online'</div>
<div>mod_cdr_pg_csv.c:552: error: statement with no effect</div>
<div>make[4]: *** [mod_cdr_pg_csv_la-mod_cdr_pg_csv.lo] Error
1</div>
<div>make[4]: Leaving directory
`/root/rpmbuild/BUILD/freeswitch-1.4.7/src/mod/event_handlers/mod_cdr_pg_csv'</div>
<div>make[3]: *** [mod_cdr_pg_csv-all] Error 1</div>
<div>make[3]: Leaving directory
`/root/rpmbuild/BUILD/freeswitch-1.4.7/src/mod'</div>
<div>make[2]: *** [all-recursive] Error 1</div>
<div>make[2]: Leaving directory
`/root/rpmbuild/BUILD/freeswitch-1.4.7/src'</div>
<div>make[1]: *** [all-recursive] Error 1</div>
<div>make[1]: Leaving directory
`/root/rpmbuild/BUILD/freeswitch-1.4.7'</div>
<div>make: *** [all] Error 2</div>
<div>error: Bad exit status from /var/tmp/rpm-tmp.76GyR0
(%build)</div>
<div><br>
</div>
<div><br>
</div>
<div>RPM build errors:</div>
<div> Bad exit status from /var/tmp/rpm-tmp.76GyR0 (%build)</div>
<div><br>
</div>
<div style="">how can i solve it</div>
</div>
<div style=""><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>