Subject: pkg/36894: games/scummvm build fails
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jan.m.danielsson@gmail.com>
List: pkgsrc-bugs
Date: 09/04/2007 07:35:01
>Number:         36894
>Category:       pkg
>Synopsis:       games/scummvm build fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 04 07:35:01 +0000 2007
>Originator:     Jan Danielsson
>Release:        NetBSD/amd64 3.1
>Organization:
Confuse A Cat Inc.
>Environment:
NetBSD nl102-238-202.student.uu.se 3.1 NetBSD 3.1 (ANCA) #4: Tue Jul 17 18:57:21 CEST 2007  root@nl102-238-202.student.uu.se:/usr/src/sys/arch/amd64/compile/ANCA amd64

>Description:
Building games/scummvm results in:

===================================
[---]
mkdir -p backends/saves/compressed/.deps
c++ -Wp,-MMD,"backends/saves/compressed/.deps/compressed-saves.d",-MQ,"backends/saves/compressed/compressed-saves.o",-MP -Wall -O2 -
backends/saves/compressed/compressed-saves.cpp:34:5: warning: "ZLIB_VERNUM" is not defined
backends/saves/compressed/compressed-saves.cpp:35:2: #error Version 1.2.0.4 or newer of zlib is required for this code
gmake: *** [backends/saves/compressed/compressed-saves.o] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/games/scummvm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/games/scummvm
===================================

>How-To-Repeat:
Just build games/scummvm on a NetBSD/amd64 3.1 system.
>Fix:
I assume that defining ZLIB_VERNUM could help, but I also assume that hardcoding ZLIB_VERNUM isn't the proper way to do it.