Page 1 of 1

[svn 3151] zlib library version error

Posted: Mon Apr 04, 2011 10:55 pm
by complexityQuantifier
When I compile tome svn 3151 on a fully-updated Ubuntu Maverick machine, then try to run t-engine, I get:

Code: Select all

SELF /home/creidieki/bin/t-engine4/te4runner.tec
NO SELFEXE: bootstrapping from CWD
Booting T-Engine from: /home/creidieki/bin/t-engine4/t-engine
SelfExe gave us app directory of:	/home/creidieki/bin/t-engine4/
Looking for cores	te4core	-1	 <=> 	te4core-13.tec
Possible engine core	te4core-13.tec
Selected cores:	13	te4core-13.tec
Using TE4CORE: 	/engines/cores/te4core-13.tec	/home/creidieki/bin/t-engine4//game/engines/cores/te4core-13.tec
Runner booting core: /home/creidieki/bin/t-engine4//game/engines/cores/te4core-13.tec
Runner booting core: /home/creidieki/bin/t-engine4//game/engines/cores/te4core-13.tec
[CPU] Detected 8 CPUs
NO SELFEXE: bootstrapping from CWD
PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.3, library: 1.2.3.4)
I can verify that Ubuntu ships with zlib1g version "1.2.3.4.dfsg-3ubuntu1", and I don't have the option of installing any other versions. I've tried running "premake4 clean" and then "make clean", and even deleting every file listed by "svn status". There weren't any warnings in the "Building luazlib" section of compilation.

Re: [svn 3151] zlib library version error

Posted: Tue Apr 05, 2011 1:20 am
by Freddybear
svn t-engine includes the v1.2.3 zlib code.
You could possibly try to rearrange the compile instructions for lzlib in build/te4core.lua.

Re: [svn 3151] zlib library version error

Posted: Tue Apr 05, 2011 1:52 am
by complexityQuantifier
Yeah, I got it working by downloading zlib 1.2.3.4 and putting it in the directory.

Re: [svn 3151] zlib library version error

Posted: Tue Apr 05, 2011 6:52 am
by TheDevilWearsPravda
I'm getting the same result on my archlinux machine. Zlib has been 1.2.5 for quite some time, I don't know exactly what I should do.

Re: [svn 3151] zlib library version error

Posted: Tue Apr 05, 2011 6:56 am
by TheDevilWearsPravda
Maybe we should build using the user's zlib instead of the out of date zlib provided? I'm out of my element here.

Re: [svn 3151] zlib library version error

Posted: Wed Apr 06, 2011 12:50 am
by darkgod
Hummm weirdness! I should use the compiled version .. hummmmm

Re: [svn 3151] zlib library version error

Posted: Wed Apr 06, 2011 4:55 pm
by greycat
Bug still happens in svn 3171. Copying zlib 1.2.3.4 source files into src/physfs/zlib123/ works around it, but obviously that's not the REAL fix, because then you'd still fail on users' systems that have 1.2.3.3 or 1.2.3.5 or whatever.

I'd agree that t-engine should be using the installed zlib as long as it meets a sane minimum level -- that's what most autoconf-based projects do.