alright, who screwed up iniparser?

Discuss the future of Warzone 2100 with us.
Post Reply
ouch
Trained
Trained
Posts: 122
Joined: 13 Nov 2007, 02:01

alright, who screwed up iniparser?

Post by ouch »

Just did an svn update today and now it won't compile.

Code: Select all

../../../lib/iniparser/iniparser.c:20:36: error: lib/framework/wzglobal.h: No such file or directory
../../../lib/iniparser/iniparser.c:21:33: error: lib/framework/types.h: No such file or directory
../../../lib/iniparser/iniparser.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PHYSFS_printf’
cc1: warnings being treated as errors
../../../lib/iniparser/iniparser.c: In function ‘iniparser_dump_ini’:
../../../lib/iniparser/iniparser.c:238: error: implicit declaration of function ‘PHYSFS_printf’
make[3]: *** [iniparser.o] Error 1
make[3]: Leaving directory `/home/ouch/Desktop/warzone/linux/lib/iniparser'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ouch/Desktop/warzone/linux/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ouch/Desktop/warzone/linux'
make: *** [all] Error 2
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: alright, who screwed up iniparser?

Post by stiv »

Just did an svn update today and it *did* compile. Rev 7951

Do an 'svn update' to make sure and maybe a 'make clean; make'
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: alright, who screwed up iniparser?

Post by Zarel »

I did an svn update today, and it doesn't compile when warnings are treated as errors!

Oh, wait, they've been doing that for at least several months now, on Windows. :(
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: alright, who screwed up iniparser?

Post by stiv »

No such file or directory is an error, not a warning.

Building with the following compiler flags here (gcc 4.3.2 on loonix)

-Wall -Werror -Wno-unused-label -Wno-pointer-to-int-cast -Wmissing-field-initializers -Wcast-align -Wwrite-strings -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wno-format-security -Wdeclaration-after-statement
../../../lib/iniparser/iniparser.c:20:36: error: lib/framework/wzglobal.h: No such file or directory
That looks suspicious. What directory are you building from, ouch?
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: alright, who screwed up iniparser?

Post by i-NoD »

That's from #778 and changes to iniparser caused by that ticket... Dunno how to fix the problem with the additional includes on Unix (as they are ok for MSVC) but I do know that the implicit declaration error should be resolved by the patch I've attached to the ticket...
Post Reply