error while compiling switch_swigable_cpp.h
Hi! I am trying to compile freeswitch-1.0.6. while make following error occur. Any suggestion why its happening? Solution.... creating libpcreposix.la (cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la 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-rpath /usr/local/freeswitch/lib -version-info 0:0:0 pcrecpp.lo pcre_scanner.lo pcre_stringpiece.lo libpcre.la rm -fr .libs/libpcrecpp.a .libs/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 (cd .libs && rm -f libpcrecpp.la && ln -s ../libpcrecpp.la 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 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 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 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 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 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@ubuntufs:/usr/src/freeswitch-1.0.6# root@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 -- Regards, Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
just to add root@ubuntufs:~# uname -a Linux ubuntufs 3.0.0-12-generic-pae #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 i686 i686 i386 GNU/Linux On Thu, Oct 20, 2011 at 8:20 PM, Abdul Basit <basit.engg@gmail.com> wrote:
Hi!
I am trying to compile freeswitch-1.0.6. while make following error occur.
Any suggestion why its happening? Solution....
creating libpcreposix.la (cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la 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-rpath /usr/local/freeswitch/lib -version-info 0:0:0 pcrecpp.lo pcre_scanner.lo pcre_stringpiece.lo libpcre.la rm -fr .libs/libpcrecpp.a .libs/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 (cd .libs && rm -f libpcrecpp.la && ln -s ../libpcrecpp.la 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 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 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 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 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 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@ubuntufs:/usr/src/freeswitch-1.0.6# root@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
-- Regards,
Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
-- Regards, Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
My suggestion is to use the current git HEAD. 1.0.6 is really old by now... /Peter Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@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 Hi! 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@ubuntufs:/usr/src/freeswitch-1.0.6# root@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 -- Regards, Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445 !DSPAM:4ea03c8532762022373163!
yes. but 1.0.6 was quite good as i heard. This might be some simple issue. Also i noticed root@ubuntufs:/usr/src/freeswitch-1.0.6# 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 # 1 "/usr/src/freeswitch-1.0.6/src/include/switch_cpp.h" # 1 "<built-in>" # 1 "<command-line>" # 1 "/usr/src/freeswitch-1.0.6/src/include/switch_cpp.h" /usr/src/freeswitch-1.0.6/src/include/switch_cpp.h:11:20: fatal error: switch.h: No such file or directory compilation terminated. both files are present at /usr/src/freeswitch-1.0.6/src/include/switch_cpp.h /usr/src/freeswitch-1.0.6/src/include/switch.h any idea? On Thu, Oct 20, 2011 at 8:30 PM, Peter Olsson < peter.olsson@visionutveckling.se> wrote:
My suggestion is to use the current git HEAD. 1.0.6 is really old by now... ****
** **
/Peter****
** **
** **
*Från:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@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****
** **
Hi!****
** **
I am trying to compile freeswitch-1.0.6. while make following error occur. ****
** **
Any suggestion why its happening? Solution.... ****
** **
** **
creating libpcreposix.la****
(cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la 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-rpath /usr/local/freeswitch/lib -version-info 0:0:0 pcrecpp.lo pcre_scanner.lo pcre_stringpiece.lo libpcre.la****
rm -fr .libs/libpcrecpp.a .libs/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****
(cd .libs && rm -f libpcrecpp.la && ln -s ../libpcrecpp.la 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****
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****
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****
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****
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****
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@ubuntufs:/usr/src/freeswitch-1.0.6#****
root@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****
** **
** **
** **
-- ****
Regards,****
Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445 !DSPAM:4ea03c8532762022373163! ****
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
-- Regards, Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
Well, I figured out the solution. Actually, my ubuntu sever was most up-to-date with gcc 4.6. FS was failing while compiling with gcc versions 4.5 and 4.6 I downgraded it to gcc-4.4 and everything started working. I spend 10 hrs in installing FS on different platforms, changed header files path in FS code and comparing the installed packages. On centos 5.7 FS installed perfectly without any modification because that was using gcc-4.1. No +ve help i got from forum :( I cannot welcome the older and newer version arguments. FS must work. -- regards, Abdul Basit On Sat, Oct 22, 2011 at 3:33 AM, Michael Collins <msc@freeswitch.org> wrote:
On Thu, Oct 20, 2011 at 8:41 AM, Abdul Basit <basit.engg@gmail.com> wrote:
yes. but 1.0.6 was quite good as i heard. This might be some simple issue.
Whoever told you that was either high or living in the past. :) The latest git HEAD is way better than 1.0.6
-MC
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
Moreover, I tested with latest git HEAD. This has more issues. Downgrade to gcc-4.4 works as well. On Sun, Oct 23, 2011 at 3:01 PM, Abdul Basit <basit.engg@gmail.com> wrote:
Well, I figured out the solution.
Actually, my ubuntu sever was most up-to-date with gcc 4.6. FS was failing while compiling with gcc versions 4.5 and 4.6
I downgraded it to gcc-4.4 and everything started working.
I spend 10 hrs in installing FS on different platforms, changed header files path in FS code and comparing the installed packages. On centos 5.7 FS installed perfectly without any modification because that was using gcc-4.1.
No +ve help i got from forum :( I cannot welcome the older and newer version arguments. FS must work.
-- regards,
Abdul Basit
On Sat, Oct 22, 2011 at 3:33 AM, Michael Collins <msc@freeswitch.org>wrote:
On Thu, Oct 20, 2011 at 8:41 AM, Abdul Basit <basit.engg@gmail.com>wrote:
yes. but 1.0.6 was quite good as i heard. This might be some simple issue.
Whoever told you that was either high or living in the past. :) The latest git HEAD is way better than 1.0.6
-MC
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
-- Regards, Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
On Sun, Oct 23, 2011 at 3:42 AM, Abdul Basit <basit.engg@gmail.com> wrote:
Moreover, I tested with latest git HEAD. This has more issues. Downgrade to gcc-4.4 works as well.
The GCC guys do this all the time - something that compiles perfectly fine in the previous version now becomes a warning in the new version of gcc. Downgrading to gcc 4.4 is the best choice under the circumstances. -MC
Abdul Basit wrote:
No +ve help i got from forum :( I cannot welcome the older and newer version arguments. FS must work. Sorry to hear that. Perhaps, we all won't like to live in the past?
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT and ONLY consumes 3 Watts of electricity. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/error-while-compiling-switch-s... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (4)
-
Abdul Basit
-
mazilo
-
Michael Collins
-
Peter Olsson