yes. but 1.0.6 was quite good as i heard. This might be some simple issue.<div><br></div><div>Also i noticed </div><div><div><br></div><div>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</div>
<div># 1 "/usr/src/freeswitch-1.0.6/src/include/switch_cpp.h"</div><div># 1 "<built-in>"</div><div># 1 "<command-line>"</div><div># 1 "/usr/src/freeswitch-1.0.6/src/include/switch_cpp.h"</div>
<div>/usr/src/freeswitch-1.0.6/src/include/switch_cpp.h:11:20: fatal error: switch.h: No such file or directory</div><div>compilation terminated.</div><div><br></div><div>both files are present at</div><div>/usr/src/freeswitch-1.0.6/src/include/switch_cpp.h</div>
<div>/usr/src/freeswitch-1.0.6/src/include/switch.h</div><div><br></div><div>any idea?</div><div><br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 8:30 PM, Peter Olsson <span dir="ltr"><<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="SV" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D">My suggestion is to use the current git HEAD. 1.0.6 is really old by now...<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D">/Peter<u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:10.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D"><u></u> <u></u></span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt">Från:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>För </b>Abdul Basit<br>
<b>Skickat:</b> den 20 oktober 2011 17:21<br><b>Till:</b> FreeSWITCH Users Help<br><b>Ämne:</b> [Freeswitch-users] error while compiling switch_swigable_cpp.h<u></u><u></u></span></p></div><div><div></div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi!<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I am trying to compile freeswitch-1.0.6. while make following error occur.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Any suggestion why its happening? Solution.... <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
<u></u> <u></u></p></div><div><div><p class="MsoNormal">creating <a href="http://libpcreposix.la" target="_blank">libpcreposix.la</a><u></u><u></u></p></div><div><p class="MsoNormal">(cd .libs && rm -f <a href="http://libpcreposix.la" target="_blank">libpcreposix.la</a> && ln -s ../<a href="http://libpcreposix.la" target="_blank">libpcreposix.la</a> <a href="http://libpcreposix.la" target="_blank">libpcreposix.la</a>)<u></u><u></u></p>
</div><div><p class="MsoNormal">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; \<u></u><u></u></p>
</div><div><p class="MsoNormal"> then mv -f ".deps/pcrecpp.Tpo" ".deps/pcrecpp.Plo"; else rm -f ".deps/pcrecpp.Tpo"; exit 1; fi<u></u><u></u></p></div><div><p class="MsoNormal"> 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<u></u><u></u></p>
</div><div><p class="MsoNormal">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<u></u><u></u></p>
</div><div><p class="MsoNormal">o pcre_scanner.cc; \<u></u><u></u></p></div><div><p class="MsoNormal"> then mv -f ".deps/pcre_scanner.Tpo" ".deps/pcre_scanner.Plo"; else rm -f ".deps/pcre_scanner.Tpo"; exit 1; fi<u></u><u></u></p>
</div><div><p class="MsoNormal"> 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<u></u><u></u></p></div><div><p class="MsoNormal">
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<u></u><u></u></p></div><div><p class="MsoNormal">
tringpiece.lo pcre_stringpiece.cc; \<u></u><u></u></p></div><div><p class="MsoNormal"> then mv -f ".deps/pcre_stringpiece.Tpo" ".deps/pcre_stringpiece.Plo"; else rm -f ".deps/pcre_stringpiece.Tpo"; exit 1; fi<u></u><u></u></p>
</div><div><p class="MsoNormal"> 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<u></u><u></u></p></div><div>
<p class="MsoNormal">/bin/bash ./libtool --tag=CXX --mode=link g++ -g -O2 -o <a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a> -rpath /usr/local/freeswitch/lib -version-info 0:0:0 pcrecpp.lo pcre_scanner.lo pcre_stringpiece.lo <a href="http://libpcre.la" target="_blank">libpcre.la</a><u></u><u></u></p>
</div><div><p class="MsoNormal">rm -fr .libs/libpcrecpp.a .libs/<a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a> .libs/libpcrecpp.lai<u></u><u></u></p></div><div><p class="MsoNormal">ar cru .libs/libpcrecpp.a pcrecpp.o pcre_scanner.o pcre_stringpiece.o<u></u><u></u></p>
</div><div><p class="MsoNormal">ranlib .libs/libpcrecpp.a<u></u><u></u></p></div><div><p class="MsoNormal">creating <a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a><u></u><u></u></p></div><div><p class="MsoNormal">
(cd .libs && rm -f <a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a> && ln -s ../<a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a> <a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a>)<u></u><u></u></p>
</div><div><p class="MsoNormal">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; \<u></u><u></u></p></div><div><p class="MsoNormal"> then mv -f ".deps/pcretest.Tpo" ".deps/pcretest.Po"; else rm -f ".deps/pcretest.Tpo"; exit 1; fi<u></u><u></u></p>
</div><div><p class="MsoNormal">pcretest.c: In function âextend_inputlineâ:<u></u><u></u></p></div><div><p class="MsoNormal">pcretest.c:253:7: warning: format not a string literal and no format arguments [-Wformat-security]<u></u><u></u></p>
</div><div><p class="MsoNormal">/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -o pcretest pcretest.o <a href="http://libpcreposix.la" target="_blank">libpcreposix.la</a><u></u><u></u></p></div><div><p class="MsoNormal">
gcc -g -O2 -o pcretest pcretest.o ./.libs/libpcreposix.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a<u></u><u></u></p></div><div><p class="MsoNormal">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; \<u></u><u></u></p>
</div><div><p class="MsoNormal"> then mv -f ".deps/pcregrep.Tpo" ".deps/pcregrep.Po"; else rm -f ".deps/pcregrep.Tpo"; exit 1; fi<u></u><u></u></p></div><div><p class="MsoNormal">/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -o pcregrep pcregrep.o <a href="http://libpcreposix.la" target="_blank">libpcreposix.la</a><u></u><u></u></p>
</div><div><p class="MsoNormal">gcc -g -O2 -o pcregrep pcregrep.o ./.libs/libpcreposix.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a<u></u><u></u></p></div><div><p class="MsoNormal">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; \<u></u><u></u></p>
</div><div><p class="MsoNormal"> then mv -f ".deps/pcrecpp_unittest.Tpo" ".deps/pcrecpp_unittest.Po"; else rm -f ".deps/pcrecpp_unittest.Tpo"; exit 1; fi<u></u><u></u></p></div><div><p class="MsoNormal">
/bin/bash ./libtool --tag=CXX --mode=link g++ -g -O2 -o pcrecpp_unittest pcrecpp_unittest.o <a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a><u></u><u></u></p></div><div><p class="MsoNormal">g++ -g -O2 -o pcrecpp_unittest pcrecpp_unittest.o ./.libs/libpcrecpp.a /usr/src/freeswitch-1.0.6/libs/pcre/.libs/libpcre.a<u></u><u></u></p>
</div><div><p class="MsoNormal">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; \<u></u><u></u></p>
</div></div><div><div><p class="MsoNormal"> then mv -f ".deps/pcre_scanner_unittest.Tpo" ".deps/pcre_scanner_unittest.Po"; else rm -f ".deps/pcre_scanner_unittest.Tpo"; exit 1; fi<u></u><u></u></p>
</div><div><p class="MsoNormal">/bin/bash ./libtool --tag=CXX --mode=link g++ -g -O2 -o pcre_scanner_unittest pcre_scanner_unittest.o <a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a><u></u><u></u></p>
</div>
<div><p class="MsoNormal">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<u></u><u></u></p></div><div><p class="MsoNormal">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; \<u></u><u></u></p>
</div><div><p class="MsoNormal"> then mv -f ".deps/pcre_stringpiece_unittest.Tpo" ".deps/pcre_stringpiece_unittest.Po"; else rm -f ".deps/pcre_stringpiece_unittest.Tpo"; exit 1; fi<u></u><u></u></p>
</div><div><p class="MsoNormal">/bin/bash ./libtool --tag=CXX --mode=link g++ -g -O2 -o pcre_stringpiece_unittest pcre_stringpiece_unittest.o <a href="http://libpcrecpp.la" target="_blank">libpcrecpp.la</a><u></u><u></u></p>
</div><div><p class="MsoNormal">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<u></u><u></u></p></div><div><p class="MsoNormal">
make[2]: Leaving directory `/usr/src/freeswitch-1.0.6/libs/pcre'<u></u><u></u></p></div><div><p class="MsoNormal">make[1]: Leaving directory `/usr/src/freeswitch-1.0.6/libs/pcre'<u></u><u></u></p></div><div><p class="MsoNormal">
make[1]: Entering directory `/usr/src/freeswitch-1.0.6/libs/srtp'<u></u><u></u></p></div><div><p class="MsoNormal">make[1]: Leaving directory `/usr/src/freeswitch-1.0.6/libs/srtp'<u></u><u></u></p></div><div><p class="MsoNormal">
<span><span style="background:#FFFF66">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</span></span><u></u><u></u></p>
</div><div><p class="MsoNormal"><span><span style="background:#FFFF66">make: *** [src/include/switch_swigable_cpp.h] Error 1</span></span><u></u><u></u></p></div><div><p class="MsoNormal">root@ubuntufs:/usr/src/freeswitch-1.0.6#<u></u><u></u></p>
</div><div><p class="MsoNormal">root@ubuntufs:/usr/src/freeswitch-1.0.6#<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Last action <u></u><u></u></p></div><div>
<p class="MsoNormal">
<u></u> <u></u></p></div><div><p class="MsoNormal"><span><span style="background:#FFFF66">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</span></span><u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">is returning empty src/include/switch_swigable_cpp.h file<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
<u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Regards,<u></u><u></u></p></div></div></div><p class="MsoNormal"></p><div><div>
</div><div class="h5"><br>Abdul Basit | <a href="tel:%2B92%2032%201416%204196" value="+923214164196" target="_blank">+92 32 1416 4196</a> | <a href="tel:%2B92%2030%200841%201445" value="+923008411445" target="_blank">+92 30 0841 1445</a><br>
</div></div>!DSPAM:4ea03c8532762022373163! <u></u><u></u><p></p></div></div><br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Regards,</div><br>Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445<br>
</div></div>