The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: wernieman on August 20, 2010, 06:36:59 am

Title: Compileerror in Version 3689 (all Systems, but not windows)
Post by: wernieman on August 20, 2010, 06:36:59 am
The Nightly-Server have Problem with compiling the 3689

The last Lines with the gcc3:
Code: [Select]
dataobj/einstellungen.cc: In member function `void einstellungen_t::p****_simuconf(tabfile_t&, sint16&, sint16&, sint16&, std::string&)':
dataobj/einstellungen.cc:671: warning: cast from `const char*' to `void*' discards qualifiers from pointer target type
===> CXX dataobj/fahrplan.cc
===> CXX dataobj/freelist.cc
===> CXX dataobj/koord.cc
===> CXX dataobj/koord3d.cc
===> CXX dataobj/loadsave.cc
===> CXX dataobj/marker.cc
===> CXX dataobj/network.cc
dataobj/network.cc: In function `const char* network_open_address(const char*)':
dataobj/network.cc:127: error: `gethostbyname' was not declared in this scope
dataobj/network.cc:129: error: invalid use of undefined type `struct hostent'
dataobj/network.cc:126: error: forward declaration of `struct hostent'
dataobj/network.cc:127: warning: unused variable 'gethostbyname'
dataobj/network.cc: In function `void network_core_shutdown()':
dataobj/network.cc:630: warning: cast from `const char*' to `void*' discards qualifiers from pointer target type
make: *** [dataobj/network.o] Error 1

I get this eror in:
Code: [Select]
ERROR gcc gcc3 und Version 3689
ERROR gcc gcc4 und Version 3689
ERROR gcc linux64 und Version 3689
ERROR gcc macintel und Version 3689
ERROR gcc macpowerpc und Version 3689
Title: Re: Compileerror in Version 3689 (all Systems, but not windows)
Post by: Frank on August 20, 2010, 06:51:01 am
Linux already gave it to the error with r3686

Windows MS VC++ works
Title: Re: Compileerror in Version 3689 (all Systems, but not windows)
Post by: wernieman on August 20, 2010, 07:23:24 am
Windows-Cross-Compiler (mingw32 on Linux with cross-gcc) work too

Only (see my post) linux and mac have the problem ...
Title: Re: Compileerror in Version 3689 (all Systems, but not windows)
Post by: prissi on August 20, 2010, 01:32:25 pm
SHould be solved, input file was missing.