[Freeswitch-users] error while compiling switch_swigable_cpp.h

Abdul Basit basit.engg at gmail.com
Thu Oct 20 19:24:59 MSD 2011


just to add

root at 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 at 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 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
>



-- 
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/b9f895bf/attachment.html 


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