Bug 1031322

Summary: libcamgm fails to build with GCC 7
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Cristian Rodríguez <crrodriguez>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mc
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1030236    

Description Martin Liška 2017-03-28 12:06:10 UTC
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/libcamgm/standard/x86_64

[   53s] Exception.cpp: In member function 'virtual std::__cxx11::string ca_mgm::Exception::getFullMessage() const':
[   53s] Exception.cpp:107:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
[   53s]                         (getFile() == '\0')?"[no file]":getFile(),
[   53s]                                       ^~~~
[   53s] /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -I. -I.  -pthread -DLOCALEDIR=\"/usr/share/locale\" -D_LARGE_FILES=  -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG -W -Wall -c -o LDAPUrlImpl.lo LDAPUrlImpl.cpp
[   53s] Exception.cpp:111:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
[   53s]                         (getMessage() == '\0')?"[no message]":getMessage()
[   53s]                                          ^~~~
[   53s] make[3]: *** [Makefile:708: Exception.lo] Error 1
[   53s] make[3]: *** Waiting for unfinished jobs....
[   53s] libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I. -I. -pthread -DLOCALEDIR=\"/usr/share/locale\" -D_LARGE_FILES= -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG -W -Wall -c LDAPUrlImpl.cpp  -fPIC -DPIC -o .libs/LDAPUrlImpl.o
[   53s] LogControl.cpp: In function 'std::ostream& ca_mgm::logger::operator<<(std::ostream&, const ca_mgm::logger::LogControlImpl&)':
[   53s] LogControl.cpp:323:84: warning: unused parameter 'obj' [-Wunused-parameter]
[   53s]        inline std::ostream & operator<<( std::ostream & str, const LogControlImpl & obj )
[   53s]                                                                                     ^~~

Can be tested in openSUSE:Factory:Staging:Gcc7 project.
Comment 1 Cristian Rodríguez 2017-04-04 04:21:42 UTC
Not sure why it was assigned to me in the first place..but anyways fixed in request id 485009.