is it safe to remove warnings as error ? I'd like to correct it but don't know enough C language to do it. ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, January 25, 2011 12:28 AM Subject: ESL php client no luck from libs/esl make phpmod make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/home/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes" CXXFLAGS="-I/home/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable" CXX_CFLAGS="" -C php make[1]: Entering directory `/home/src/freeswitch/libs/esl/php' g++ -I/home/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o cc1plus: warnings being treated as errors esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â make[1]: *** [esl_wrap.o] Error 1 make[1]: Leaving directory `/home/src/freeswitch/libs/esl/php' make: *** [phpmod] Error 2 PHP 4.4.9 is instlalled on my server Thanks
yes! you need to remove -Werror -Wno-unused-variable from PICKY and CXXFLAGS, then build will work On Tue, Jan 25, 2011 at 9:03 PM, Madovsky <infos@madovsky.org> wrote:
is it safe to remove warnings as error ? I'd like to correct it but don't know enough C language to do it.
----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, January 25, 2011 12:28 AM Subject: ESL php client no luck from libs/esl make phpmod
make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/home/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes" CXXFLAGS="-I/home/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable" CXX_CFLAGS="" -C php make[1]: Entering directory `/home/src/freeswitch/libs/esl/php' g++ -I/home/src/freeswitch/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o cc1plus: warnings being treated as errors esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â esl_wrap.cpp:2565: error: deprecated conversion from string constant to âchar*â make[1]: *** [esl_wrap.o] Error 1 make[1]: Leaving directory `/home/src/freeswitch/libs/esl/php' make: *** [phpmod] Error 2 PHP 4.4.9 is instlalled on my server
Thanks
_______________________________________________ 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
participants (2)
-
jesse
-
Madovsky