View Issue Details

IDProjectCategoryView StatusLast Update
0004537Spring engineLinuxpublic2017-09-24 19:11
ReporterMisolavera Assigned Toabma  
PrioritylowSeverityblockReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version97.0.1+git 
Summary0004537: cannot compile with gcc 4.9.1 due to deprecated std class
DescriptionFollowing files won't compile due to std::auto_ptr deprecated.
rts/lib/assimp/code/STEPFileReader.cpp
rts/lib/assimp/code/IFCLoader.cpp
Steps To Reproducecompile it with gcc 4.9.1
Additional InformationReplace it with std::unique_ptr that do basically the same thing but with extended template features.
TagsNo tags attached.
Checked infolog.txt for Errors

Relationships

related to 0004014 resolvedabma update assimp / merge support for blender 2.63+ 

Activities

cleanrock

2014-09-07 16:40

reporter   ~0013612

I only get deprecation warnings here with 4.9.1:
rts/lib/assimp/code/IFCLoader.cpp:539:26: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9.1/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
  std::auto_ptr<aiNode> nd(new aiNode());

Are you using -Werror (Make all warnings into errors) ?

cleanrock

2014-09-07 16:52

reporter   ~0013613

You can also try one of these:
-Wno-deprecated-declarations
-Wno-deprecated
-w

Misolavera

2014-09-07 17:11

reporter   ~0013615

Last edited: 2014-09-07 17:15

Maybe it's my configuration, I'm quite new at compiling spring :)

I didn't defined any flag, so everything is default:
cmake .
make spring


It says it's a warning so I ignored it but at the end, it doesn't link against it. When doing the modification, it does link fine.

abma

2014-09-07 18:41

administrator   ~0013617

please give the full output when you compile it. i'm using gcc 4.9.1, too and had no issues.

which version of spring do you compile?

Misolavera

2014-09-07 22:11

reporter   ~0013618

Last edited: 2014-09-07 22:13

97.0.1-360

[A few hours later]

I think I found out why the link against the Assimp lib was failing.

I did use "make spring -j 4" and it was just bad luck I managed to reproduce it twice in a row before posting.
I got a similar error on another part.
Making a clean and make -j 3 or 2 worked fine each time.

Sorry to have made you waste your time on this chair-keyboard interface issue.

abma

2014-09-08 00:25

administrator   ~0013619

next time please copy and paste the output. still i have no clue which error message you got.

"std::auto_ptr deprecated." is clearly not the error, it was/is a warning.

Issue History

Date Modified Username Field Change
2014-09-07 14:36 Misolavera New Issue
2014-09-07 16:39 Misolavera Tag Attached: not spring's fault
2014-09-07 16:40 cleanrock Note Added: 0013612
2014-09-07 16:52 cleanrock Note Added: 0013613
2014-09-07 17:11 Misolavera Note Added: 0013615
2014-09-07 17:15 Misolavera Note Edited: 0013615
2014-09-07 18:41 abma Note Added: 0013617
2014-09-07 18:41 abma Status new => feedback
2014-09-07 18:42 abma Relationship added related to 0004014
2014-09-07 22:11 Misolavera Note Added: 0013618
2014-09-07 22:11 Misolavera Status feedback => new
2014-09-07 22:13 Misolavera Note Edited: 0013618
2014-09-08 00:23 abma Status new => closed
2014-09-08 00:23 abma Assigned To => abma
2014-09-08 00:23 abma Resolution open => unable to reproduce
2014-09-08 00:25 abma Note Added: 0013619
2017-09-24 19:11 Kloot Tag Detached: not spring's fault