The International Simutrans Forum

 

Author Topic: Compileerror in Version 3689 (all Systems, but not windows)  (Read 1596 times)

0 Members and 1 Guest are viewing this topic.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Compileerror in Version 3689 (all Systems, but not windows)
« 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::parse_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

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: Compileerror in Version 3689 (all Systems, but not windows)
« Reply #1 on: August 20, 2010, 06:51:01 AM »
Linux already gave it to the error with r3686

Windows MS VC++ works

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Compileerror in Version 3689 (all Systems, but not windows)
« Reply #2 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 ...

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10820
  • Languages: De,EN,JP
Re: Compileerror in Version 3689 (all Systems, but not windows)
« Reply #3 on: August 20, 2010, 01:32:25 PM »
SHould be solved, input file was missing.