The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ArthurDenture on November 05, 2013, 04:38:12 AM

Title: Build failed in Jenkins: makeobj #74
Post by: ArthurDenture on November 05, 2013, 04:38:12 AM
See http://ec2-54-242-171-11.compute-1.amazonaws.com/jenkins/job/makeobj/74/ (http://ec2-54-242-171-11.compute-1.amazonaws.com/jenkins/job/makeobj/74/)

Looks like makeobj doesn't compile at HEAD, possibly due to the #include changes to besch/writer/image_writer.cc in revision 6889 (https://github.com/aburch/simutrans/commit/5ccff6233748e7ec99e1ba93da1947d4f9253ba9).


+ make
===> CXX ../besch/writer/bridge_writer.cc
===> CXX ../besch/writer/building_writer.cc
===> CXX ../besch/writer/citycar_writer.cc
===> CXX ../besch/writer/crossing_writer.cc
===> CXX ../besch/writer/factory_writer.cc
../besch/writer/factory_writer.cc: In member function 'virtual std::string factory_writer_t::get_node_name(FILE*) const':
../besch/writer/factory_writer.cc:261:35: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
===> CXX ../besch/writer/get_climate.cc
===> CXX ../besch/writer/get_waytype.cc
===> CXX ../besch/writer/good_writer.cc
===> CXX ../besch/writer/groundobj_writer.cc
===> CXX ../besch/writer/ground_writer.cc
===> CXX ../besch/writer/image_writer.cc
../besch/writer/image_writer.cc: In member function 'void image_writer_t::write_obj(FILE*, obj_node_t&, std::string, uint32)':
../besch/writer/image_writer.cc:208:2: error: 'memset' was not declared in this scope
Title: Re: Build failed in Jenkins: makeobj #74
Post by: prissi on November 05, 2013, 09:36:40 PM
Aparently on windows string includes cstring. Thank for the test.
Title: Re: Build failed in Jenkins: makeobj #74
Post by: ArthurDenture on November 06, 2013, 02:13:47 AM
Oops, the fix revealed another one: http://ec2-54-242-171-11.compute-1.amazonaws.com/jenkins/job/makeobj/75/changes (http://ec2-54-242-171-11.compute-1.amazonaws.com/jenkins/job/makeobj/75/changes)


+ make
===> CXX ../besch/writer/bridge_writer.cc
[snip]
===> CXX ../besch/writer/way_writer.cc
===> CXX ../besch/writer/way_obj_writer.cc
===> CXX ../besch/writer/xref_writer.cc
../besch/writer/xref_writer.cc: In member function 'virtual void xref_writer_t::dump_node(FILE*, const obj_node_info_t&)':
../besch/writer/xref_writer.cc:38:33: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
===> CXX ../utils/dr_rdpng.cc
../utils/dr_rdpng.cc: In function 'bool load_block(unsigned char**, unsigned int*, unsigned int*, const char*, int)':
../utils/dr_rdpng.cc:135:64: error: 'errno' was not declared in this scope


I think (well, the manpage thinks) that <errno.h> is the standard header file for that.
Title: [fixed] Re: Build failed in Jenkins: makeobj #74
Post by: ArthurDenture on November 07, 2013, 03:59:36 AM
All fixed! http://ec2-54-242-171-11.compute-1.amazonaws.com/jenkins/job/makeobj/ (http://ec2-54-242-171-11.compute-1.amazonaws.com/jenkins/job/makeobj/)
Title: Re: Build failed in Jenkins: makeobj #74
Post by: Dwachs on November 07, 2013, 05:31:12 PM
thank you for reporting