[Freeswitch-users] error while compiling switch_swigable_cpp.h

Peter Olsson peter.olsson at visionutveckling.se
Thu Oct 20 19:30:56 MSD 2011

My suggestion is to use the current git HEAD. 1.0.6 is really old by now...


Från: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] För Abdul Basit
Skickat: den 20 oktober 2011 17:21
Till: FreeSWITCH Users Help
Ämne: [Freeswitch-users] error while compiling switch_swigable_cpp.h


I am trying to compile freeswitch-1.0.6. while make following error occur.

Any suggestion why its happening? Solution....

creating libpcreposix.la<http://libpcreposix.la>
(cd .libs && rm -f libpcreposix.la<http://libpcreposix.la> && ln -s ../libpcreposix.la<http://libpcreposix.la> libpcreposix.la<http://libpcreposix.la>)
if /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcrecpp.lo -MD -MP -MF ".deps/pcrecpp.Tpo" -c -o pcrecpp.lo pcrecpp.cc; \
        then mv -f ".deps/pcrecpp.Tpo" ".deps/pcrecpp.Plo"; else rm -f ".deps/pcrecpp.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo -c pcrecpp.cc  -fPIC -DPIC -o pcrecpp.o
if /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcre_scanner.lo -MD -MP -MF ".deps/pcre_scanner.Tpo" -c -o pcre_scanner.l
o pcre_scanner.cc; \
        then mv -f ".deps/pcre_scanner.Tpo" ".deps/pcre_scanner.Plo"; else rm -f ".deps/pcre_scanner.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pcre_scanner.lo -MD -MP -MF .deps/pcre_scanner.Tpo -c pcre_scanner.cc  -fPIC -DPIC -o pcre_scanner.o
if /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcre_stringpiece.lo -MD -MP -MF ".deps/pcre_stringpiece.Tpo" -c -o pcre_s
tringpiece.lo pcre_stringpiece.cc; \
        then mv -f ".deps/pcre_stringpiece.Tpo" ".deps/pcre_stringpiece.Plo"; else rm -f ".deps/pcre_stringpiece.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pcre_stringpiece.lo -MD -MP -MF .deps/pcre_stringpiece.Tpo -c pcre_stringpiece.cc  -fPIC -DPIC -o pcre_stringpiece.o
/bin/bash ./libtool --tag=CXX --mode=link g++  -g -O2   -o libpcrecpp.la<http://libpcrecpp.la> -rpath /usr/local/freeswitch/lib -version-info 0:0:0                            pcrecpp.lo pcre_scanner.lo pcre_stringpiece.lo libpcre.la<http://libpcre.la>
rm -fr  .libs/libpcrecpp.a .libs/libpcrecpp.la<http://libpcrecpp.la> .libs/libpcrecpp.lai
ar cru .libs/libpcrecpp.a  pcrecpp.o pcre_scanner.o pcre_stringpiece.o
ranlib .libs/libpcrecpp.a
creating libpcrecpp.la<http://libpcrecpp.la>
(cd .libs && rm -f libpcrecpp.la<http://libpcrecpp.la> && ln -s ../libpcrecpp.la<http://libpcrecpp.la> libpcrecpp.la<http://libpcrecpp.la>)
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcretest.o -MD -MP -MF ".deps/pcretest.Tpo" -c -o pcretest.o pcretest.c; \
        then mv -f ".deps/pcretest.Tpo" ".deps/pcretest.Po"; else rm -f ".deps/pcretest.Tpo"; exit 1; fi
pcretest.c: In function âextend_inputlineâ:
pcretest.c:253:7: warning: format not a string literal and no format arguments [-Wformat-security]
/bin/bash ./libtool --tag=CC --mode=link gcc  -g -O2   -o pcretest  pcretest.o libpcreposix.la<http://libpcreposix.la>
gcc -g -O2 -o pcretest pcretest.o  ./.libs/libpcreposix.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcregrep.o -MD -MP -MF ".deps/pcregrep.Tpo" -c -o pcregrep.o pcregrep.c; \
        then mv -f ".deps/pcregrep.Tpo" ".deps/pcregrep.Po"; else rm -f ".deps/pcregrep.Tpo"; exit 1; fi
/bin/bash ./libtool --tag=CC --mode=link gcc  -g -O2   -o pcregrep  pcregrep.o libpcreposix.la<http://libpcreposix.la>
gcc -g -O2 -o pcregrep pcregrep.o  ./.libs/libpcreposix.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a
if g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcrecpp_unittest.o -MD -MP -MF ".deps/pcrecpp_unittest.Tpo" -c -o pcrecpp_unittest.o pcrecpp_unittest.cc; \
        then mv -f ".deps/pcrecpp_unittest.Tpo" ".deps/pcrecpp_unittest.Po"; else rm -f ".deps/pcrecpp_unittest.Tpo"; exit 1; fi
/bin/bash ./libtool --tag=CXX --mode=link g++  -g -O2   -o pcrecpp_unittest  pcrecpp_unittest.o libpcrecpp.la<http://libpcrecpp.la>
g++ -g -O2 -o pcrecpp_unittest pcrecpp_unittest.o  ./.libs/libpcrecpp.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a
if g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcre_scanner_unittest.o -MD -MP -MF ".deps/pcre_scanner_unittest.Tpo" -c -o pcre_scanner_unittest.o pcre_scanner_unittest.cc; \
        then mv -f ".deps/pcre_scanner_unittest.Tpo" ".deps/pcre_scanner_unittest.Po"; else rm -f ".deps/pcre_scanner_unittest.Tpo"; exit 1; fi
/bin/bash ./libtool --tag=CXX --mode=link g++  -g -O2   -o pcre_scanner_unittest  pcre_scanner_unittest.o libpcrecpp.la<http://libpcrecpp.la>
g++ -g -O2 -o pcre_scanner_unittest pcre_scanner_unittest.o  ./.libs/libpcrecpp.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a
if g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pcre_stringpiece_unittest.o -MD -MP -MF ".deps/pcre_stringpiece_unittest.Tpo" -c -o pcre_stringpiece_unittest.o pcre_stringpiece_unittest.cc; \
        then mv -f ".deps/pcre_stringpiece_unittest.Tpo" ".deps/pcre_stringpiece_unittest.Po"; else rm -f ".deps/pcre_stringpiece_unittest.Tpo"; exit 1; fi
/bin/bash ./libtool --tag=CXX --mode=link g++  -g -O2   -o pcre_stringpiece_unittest  pcre_stringpiece_unittest.o libpcrecpp.la<http://libpcrecpp.la>
g++ -g -O2 -o pcre_stringpiece_unittest pcre_stringpiece_unittest.o  ./.libs/libpcrecpp.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a
make[2]: Leaving directory `/usr/src/freeswitch-1.0.6/libs/pcre'
make[1]: Leaving directory `/usr/src/freeswitch-1.0.6/libs/pcre'
make[1]: Entering directory `/usr/src/freeswitch-1.0.6/libs/srtp'
make[1]: Leaving directory `/usr/src/freeswitch-1.0.6/libs/srtp'
gcc -E /usr/src/freeswitch-1.0.6/src/include/switch_cpp.h -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h
make: *** [src/include/switch_swigable_cpp.h] Error 1
root at ubuntufs:/usr/src/freeswitch-1.0.6#
root at ubuntufs:/usr/src/freeswitch-1.0.6#

Last action

gcc -E /usr/src/freeswitch-1.0.6/src/include/switch_cpp.h -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h

is returning empty src/include/switch_swigable_cpp.h file


Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111020/7ff4386d/attachment-0001.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list