Menu

build break

Help
Rajeev
2008-03-07
2013-05-15
  • Rajeev

    Rajeev - 2008-03-07

    Hi,

    I am trying to build mod_cplusplus latest version download(on 7th March) its breaking with warning.I commented the code and compiled, its working. I installed the same on my machine and my existing code is generating warnings when I am trying to set the content_type.

    Here is the line, which gives me warning:

    pRequest->content_type( "text/xml" );

    warning is:  warning: deprecated conversion from string constant to ‘char*'

    here is the output of build:
    $ make
    /bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0  -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -Wall -Werror -g -I/home/rajeev/Desktop/mod_cplusplus/include  -g -O2 -MT test_handler.lo -MD -MP -MF .deps/test_handler.Tpo -c -o test_handler.lo test_handler.cpp
    mkdir .libs
    g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -Wall -Werror -g -I/home/rajeev/Desktop/mod_cplusplus/include -g -O2 -MT test_handler.lo -MD -MP -MF .deps/test_handler.Tpo -c test_handler.cpp  -fPIC -DPIC -o .libs/test_handler.o
    cc1plus: warnings being treated as errors
    test_handler.cpp: In member function ‘virtual int TestHandler::handler(ApacheRequestRec*)’:
    test_handler.cpp:21: warning: deprecated conversion from string constant to ‘char*’
    make: *** [test_handler.lo] Error 1

     
    • John K. Sterling

      Thanks for the info about your machine (uname -a) and apache (httpd -V).  In the mean time I'll take a look.

       
      • John K. Sterling

        I just re-read my note and it didn't make sense.  I meant to ask:

        Can you please send me info about your machine (uname -a) and apache (httpd -V)?

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.