Page 1 of 1

failure in compiling - how to fix - help needed

Posted: Sat Sep 19, 2009 4:24 pm
by nostromo
I tried to compile bzflag, bzfs (with plugin support), bzadmin from the source
(downloaded with svn, on debian 5)

I get the following messages:

Code: Select all


bzfsPlugins.cxx: In function 'int getPluginVersion(void*)':
bzfsPlugins.cxx:174: warning: dereferencing type-punned pointer will break strict-aliasing rules
bzfsPlugins.cxx: In function 'bool load1Plugin(std::string, std::string)':
bzfsPlugins.cxx:204: warning: dereferencing type-punned pointer will break strict-aliasing rules
bzfsPlugins.cxx: In function 'void unload1Plugin(int)':bzfsPlugins.cxx:232: warning: dereferencing type-punned pointer will break strict-aliasing rules
pushstats.cpp: In member function 'void StatPush::buildStateHash(std::string&)':
pushstats.cpp:183: warning: unused variable 'playerID'

The bzflag-client, bzfs and bzadmin binares are build, all other things are there too.

What does that mean, how can I fix it, is it necessary to fix it?

Re: failure in compiling - how to fix - help needed

Posted: Mon Sep 21, 2009 5:52 am
by Bullet Catcher
For the record, the unused variable in pushstats.cpp has been fixed in the Subversion repository as of revision 20642.

The "dereferencing type-punned pointer" warnings are not seen with gcc 4.1.2 and older, but they do show up with gcc 4.3.2. It should be safe to ignore them.

Re: failure in compiling - how to fix - help needed

Posted: Mon Sep 21, 2009 3:58 pm
by nostromo
I can confirm,
with subversion repository 20648,
I only get the "dereferencing type-punned pointer" - the "unused variable" is gone.

Till now there havent been problems, with the compiled binaries, so I think we can close this topic.
:rip:

Thnx for your help, Bullet Catcher