Martin Steinmann | 19 Aug 01:21

FreeSWITCH build error

g++ -w -DMULTIPLICITY -DEMBED_PERL -I/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/include -I/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/libs/libteletone/src -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o freeswitch_perl.o freeswitch_perl.cpp
In file included from freeswitch_perl.cpp:2:
freeswitch_perl.h:13:20: error: EXTERN.h: No such file or directory
freeswitch_perl.h:14:18: error: perl.h: No such file or directory
freeswitch_perl.h:24: error: ISO C++ forbids declaration of 'PerlInterpreter' with no type
freeswitch_perl.h:24: error: expected ';' before '*' token
freeswitch_perl.h:25: error: ISO C++ forbids declaration of 'PerlInterpreter' with no type
freeswitch_perl.h:25: error: expected ';' before '*' token
freeswitch_perl.h:28: error: ISO C++ forbids declaration of 'SV' with no type
freeswitch_perl.h:28: error: expected ';' before '*' token
freeswitch_perl.h:40: error: 'SV' has not been declared
freeswitch_perl.h:49: error: 'PerlInterpreter' has not been declared
mod_perl_extra.h:5: error: variable or field 'mod_perl_conjure_event' declared void
mod_perl_extra.h:5: error: 'PerlInterpreter' was not declared in this scope
mod_perl_extra.h:5: error: 'my_perl' was not declared in this scope
mod_perl_extra.h:5: error: expected primary-expression before '*' token
mod_perl_extra.h:5: error: 'event' was not declared in this scope
mod_perl_extra.h:5: error: expected primary-expression before 'const'
mod_perl_extra.h:5: error: initializer expression list treated as compound expression
mod_perl_extra.h:6: error: variable or field 'mod_perl_conjure_stream' declared void
mod_perl_extra.h:6: error: 'PerlInterpreter' was not declared in this scope
mod_perl_extra.h:6: error: 'my_perl' was not declared in this scope
mod_perl_extra.h:6: error: expected primary-expression before '*' token
mod_perl_extra.h:6: error: 'stream' was not declared in this scope
mod_perl_extra.h:6: error: expected primary-expression before 'const'
mod_perl_extra.h:6: error: initializer expression list treated as compound expression
freeswitch_perl.cpp:5: error: 'STRLEN' does not name a type
freeswitch_perl.cpp: In constructor 'PERL::Session::Session()':
freeswitch_perl.cpp:13: error: 'my_perl' was not declared in this scope
freeswitch_perl.cpp: In constructor 'PERL::Session::Session(char*, CoreSession*)':
freeswitch_perl.cpp:18: error: 'my_perl' was not declared in this scope
freeswitch_perl.cpp: In constructor 'PERL::Session::Session(switch_core_session_t*)':
freeswitch_perl.cpp:34: error: 'my_perl' was not declared in this scope
freeswitch_perl.cpp: At global scope:
freeswitch_perl.cpp:73: error: variable or field 'setPERL' declared void
freeswitch_perl.cpp:73: error: 'int PERL::Session::setPERL' is not a static member of 'class PERL::Session'
freeswitch_perl.cpp:73: error: 'PerlInterpreter' was not declared in this scope
freeswitch_perl.cpp:73: error: 'pi' was not declared in this scope
freeswitch_perl.cpp:74: error: expected ',' or ';' before '{' token
make[8]: *** [freeswitch_perl.o] Error 1
make[8]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/mod/languages/mod_perl'
make[7]: *** [all] Error 1
make[7]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/mod/languages/mod_perl'
make[6]: *** [languages/mod_perl-all] Error 1
make[6]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/mod'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1'
error: Bad exit status from /var/tmp/rpm-tmp.48593 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.48593 (%build)
make[2]: *** [build-rpms] Error 1
make[2]: Leaving directory `/home/sipxbuild/src/main/lib/freeswitch/build'
make[1]: *** [freeswitch.bld] Error 2
make[1]: Leaving directory `/home/sipxbuild/src/main/lib'
make: *** [freeswitch] Error 2
[sipxbuild <at> build lib]$

<div>

<p>g++ -w -DMULTIPLICITY -DEMBED_PERL -I/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/include -I/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/libs/libteletone/src -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o freeswitch_perl.o freeswitch_perl.cpp<br>
In file included from freeswitch_perl.cpp:2:<br>
freeswitch_perl.h:13:20: error: EXTERN.h: No such file or directory<br>
freeswitch_perl.h:14:18: error: perl.h: No such file or directory<br>
freeswitch_perl.h:24: error: ISO C++ forbids declaration of 'PerlInterpreter' with no type<br>
freeswitch_perl.h:24: error: expected ';' before '*' token<br>
freeswitch_perl.h:25: error: ISO C++ forbids declaration of 'PerlInterpreter' with no type<br>
freeswitch_perl.h:25: error: expected ';' before '*' token<br>
freeswitch_perl.h:28: error: ISO C++ forbids declaration of 'SV' with no type<br>
freeswitch_perl.h:28: error: expected ';' before '*' token<br>
freeswitch_perl.h:40: error: 'SV' has not been declared<br>
freeswitch_perl.h:49: error: 'PerlInterpreter' has not been declared<br>
mod_perl_extra.h:5: error: variable or field 'mod_perl_conjure_event' declared void<br>
mod_perl_extra.h:5: error: 'PerlInterpreter' was not declared in this scope<br>
mod_perl_extra.h:5: error: 'my_perl' was not declared in this scope<br>
mod_perl_extra.h:5: error: expected primary-expression before '*' token<br>
mod_perl_extra.h:5: error: 'event' was not declared in this scope<br>
mod_perl_extra.h:5: error: expected primary-expression before 'const'<br>
mod_perl_extra.h:5: error: initializer expression list treated as compound expression<br>
mod_perl_extra.h:6: error: variable or field 'mod_perl_conjure_stream' declared void<br>
mod_perl_extra.h:6: error: 'PerlInterpreter' was not declared in this scope<br>
mod_perl_extra.h:6: error: 'my_perl' was not declared in this scope<br>
mod_perl_extra.h:6: error: expected primary-expression before '*' token<br>
mod_perl_extra.h:6: error: 'stream' was not declared in this scope<br>
mod_perl_extra.h:6: error: expected primary-expression before 'const'<br>
mod_perl_extra.h:6: error: initializer expression list treated as compound expression<br>
freeswitch_perl.cpp:5: error: 'STRLEN' does not name a type<br>
freeswitch_perl.cpp: In constructor 'PERL::Session::Session()':<br>
freeswitch_perl.cpp:13: error: 'my_perl' was not declared in this scope<br>
freeswitch_perl.cpp: In constructor 'PERL::Session::Session(char*, CoreSession*)':<br>
freeswitch_perl.cpp:18: error: 'my_perl' was not declared in this scope<br>
freeswitch_perl.cpp: In constructor 'PERL::Session::Session(switch_core_session_t*)':<br>
freeswitch_perl.cpp:34: error: 'my_perl' was not declared in this scope<br>
freeswitch_perl.cpp: At global scope:<br>
freeswitch_perl.cpp:73: error: variable or field 'setPERL' declared void<br>
freeswitch_perl.cpp:73: error: 'int PERL::Session::setPERL' is not a static member of 'class PERL::Session'<br>
freeswitch_perl.cpp:73: error: 'PerlInterpreter' was not declared in this scope<br>
freeswitch_perl.cpp:73: error: 'pi' was not declared in this scope<br>
freeswitch_perl.cpp:74: error: expected ',' or ';' before '{' token<br>
make[8]: *** [freeswitch_perl.o] Error 1<br>
make[8]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/mod/languages/mod_perl'<br>
make[7]: *** [all] Error 1<br>
make[7]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/mod/languages/mod_perl'<br>
make[6]: *** [languages/mod_perl-all] Error 1<br>
make[6]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src/mod'<br>
make[5]: *** [all-recursive] Error 1<br>
make[5]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1/src'<br>
make[4]: *** [all-recursive] Error 1<br>
make[4]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1'<br>
make[3]: *** [all] Error 2<br>
make[3]: Leaving directory `/home/sipxbuild/rpmbuild/BUILD/sipx-freeswitch-1.0.1'<br>
error: Bad exit status from /var/tmp/rpm-tmp.48593 (%build)<br><br><br>
RPM build errors:<br>
&nbsp;&nbsp;&nbsp; Bad exit status from /var/tmp/rpm-tmp.48593 (%build)<br>
make[2]: *** [build-rpms] Error 1<br>
make[2]: Leaving directory `/home/sipxbuild/src/main/lib/freeswitch/build'<br>
make[1]: *** [freeswitch.bld] Error 2<br>
make[1]: Leaving directory `/home/sipxbuild/src/main/lib'<br>
make: *** [freeswitch] Error 2<br>
[sipxbuild <at> build lib]$<br>
</p>

</div>

Gmane