[Freeswitch-users] error while compiling switch_swigable_cpp.h
Abdul Basit
basit.engg at gmail.com
Thu Oct 20 19:41:55 MSD 2011
yes. but 1.0.6 was quite good as i heard. This might be some simple issue.
Also i noticed
root at 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 at 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 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****
>
> ** **
>
> 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 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****
>
> ** **
>
> ** **
>
> ** **
>
> -- ****
>
> Regards,****
>
>
> Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
> !DSPAM:4ea03c8532762022373163! ****
>
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111020/0c090584/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list