This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/3093] New: Fails to build with GCC 4.2


Systemtap fails to build with gcc 4.2 due to deprecated conversion from string
constant to char * :

> make[3]: Entering directory `/build/tbm/systemtap-0.0.20060812/build-tree/src'
> if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. 
-DPKGLIBDIR='"/usr/lib/systemtap"'
+-DPKGDATADIR='"/usr/share/systemtap"'   -Werror -Wall -Wall -g -O2 -MT
stap-main.o -MD -MP -MF
+".deps/stap-main.Tpo" -c -o stap-main.o `test -f 'main.cxx' || echo
'./'`main.cxx; \
>       then mv -f ".deps/stap-main.Tpo" ".deps/stap-main.Po"; else rm -f
".deps/stap-main.Tpo"; exit 1; fi
> cc1plus: warnings being treated as errors
> main.cxx: In function 'int main(int, char* const*)':
> main.cxx:303: warning: deprecated conversion from string constant to 'char*'
> main.cxx:304: warning: deprecated conversion from string constant to 'char*'
> main.cxx:321: warning: deprecated conversion from string constant to 'char*'
> make[3]: *** [stap-main.o] Error 1
> make[3]: Leaving directory `/build/tbm/systemtap-0.0.20060812/build-tree/src'

and 

| if /usr/lib/gcc-snapshot/bin/g++ -DHAVE_CONFIG_H -I. -I. -I. 
-DPKGLIBDIR='"/usr/lib/systemtap"'
+-DPKGDATADIR='"/usr/share/systemtap"'   -Werror -Wall -Wall -g -O2 -MT
stap-tapsets.o -MD -MP -MF
+".deps/stap-tapsets.Tpo" -c -o stap-tapsets.o `test -f 'tapsets.cxx' || echo
'./'`tapsets.cxx; \
|        then mv -f ".deps/stap-tapsets.Tpo" ".deps/stap-tapsets.Po"; else rm -f
".deps/stap-tapsets.Tpo";
+exit 1; fi
| cc1plus: warnings being treated as errors
| tapsets.cxx: In member function 'void dwflpp::setup(bool)':
| tapsets.cxx:766: warning: deprecated conversion from string constant to 'char*'
| make[2]: *** [stap-tapsets.o] Error 1

This bug was originaly reported by Martin Michlmayr, bug report is available
here: http://bugs.debian.org/383780 .

-- 
           Summary: Fails to build with GCC 4.2
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: eugen at debian dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=3093

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]