failure in compiling - how to fix - help needed

Questions or HOWTOs about the above? Post 'em here...
Post Reply
nostromo
Private First Class
Private First Class
Posts: 24
Joined: Mon Apr 27, 2009 8:56 pm

failure in compiling - how to fix - help needed

Post 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?
User avatar
Bullet Catcher
Captain
Captain
Posts: 564
Joined: Sat Dec 23, 2006 7:56 am
Location: Escondido, California

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

Post 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.
nostromo
Private First Class
Private First Class
Posts: 24
Joined: Mon Apr 27, 2009 8:56 pm

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

Post 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
Post Reply