Bug 985151

Summary: GCC6: xosview fails to build
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: OtherAssignee: Dr. Werner Fink <werner>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: forgotten_lNYeazqpWh, matz
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: 984984    
Attachments: Build log with gcc6/g++-6

Description Dominique Leuenberger 2016-06-16 13:36:39 UTC
Since the update to GCC6, openSUSE:Factory/ xosview fails to build
Comment 1 Dr. Werner Fink 2016-06-17 07:17:11 UTC
Then choose gcc5, every week a "neue Sau durch's Dorf" ... sorry I've no time to fix xosview next view weeks.
Comment 2 Dominique Leuenberger 2016-06-17 07:28:12 UTC
(In reply to Dr. Werner Fink from comment #1)
> Then choose gcc5, every week a "neue Sau durch's Dorf" ... sorry I've no
> time to fix xosview next view weeks.

osc dr openSUSE:Factory xosview -m 'No time for maintenance'

is a valid alternative - as much as is asking the openSUSE community on openSUSE-factory@o.o for help.. you know the game.
Comment 3 Dr. Werner Fink 2016-06-17 08:19:44 UTC
(In reply to Dominique Leuenberger from comment #2)


> osc dr openSUSE:Factory xosview -m 'No time for maintenance'
> is a valid alternative

It is not ... I'm using xosview, what about switching gcc?

And if I read the log file I guess that gcc6 is a to overshooting or in other words gcc/g++ is not python.
Comment 4 Dr. Werner Fink 2016-06-17 08:30:14 UTC
SR#402871
Comment 5 Dr. Werner Fink 2016-06-17 08:35:18 UTC
Created attachment 681158 [details]
Build log with gcc6/g++-6

-Wmisleading-indentation and template problems ... whereas I'm not sure if this is a bug in xosview code or a missing/dropped feature in the ostream implementation.
Comment 6 Dominique Leuenberger 2016-06-17 09:18:44 UTC
(In reply to Dr. Werner Fink from comment #5)
> Created attachment 681158 [details]
> Build log with gcc6/g++-6
> 
> -Wmisleading-indentation and template problems ... whereas I'm not sure if
> this is a bug in xosview code or a missing/dropped feature in the ostream
> implementation.

A compiler that knows what it does...

the code is confusing two variables:

  std::ifstream temp_file(_tempfile);
  std::ifstream high_file(_highfile);

    std::cerr << "Can not open file : " << temp_file << std::endl;
    std::cerr << "Can not open file : " << high_file << std::endl;

It meant to print the file name, which is actually _highfile and _tempfile... ups