Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406847 - games-emulation/openmsx-0.8.1 build failure (and solution)
Summary: games-emulation/openmsx-0.8.1 build failure (and solution)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-03-04 03:28 UTC by Fernando Boaglio
Modified: 2012-10-21 03:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Working ebuild for openMSX 0.8.2 (openmsx-0.8.2.ebuild,1.60 KB, text/plain)
2012-08-06 20:50 UTC, Maks Verver
Details
Patch from openmsx-0.8.1.ebuild to openmsx-0.8.2.ebuild (openmsx-0.8.2.ebuild.patch,804 bytes, patch)
2012-08-06 22:14 UTC, Maks Verver
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Boaglio 2012-03-04 03:28:36 UTC
games-emulation/openmsx-0.8.1 fails but I found a way to fix it and maybe you should do it


Reproducible: Always

Steps to Reproduce:
1.emerge games-emulation/openmsx


Actual Results:  
...

Compiling serialize.cc...
Compiling serialize_core.cc...
In file included from src/serialize.cc:15:0:
/usr/include/zlib.h:1204:26: error: conflicting declaration 'typedef struct gzFile_s* gzFile'
src/serialize.hh:20:15: error: 'gzFile' has a previous declaration as 'typedef void* gzFile'
make: *** [derived/x86_64-linux-opt/obj/serialize.o] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: games-emulation/openmsx-0.8.1 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2156:  Called die
 * The specific snippet of code:
 *       emake CXXFLAGS="${CXXFLAGS}" INSTALL_SHARE_DIR="${GAMES_DATADIR}"/${PN} || die
 * 
 * If you need support, post the output of 'emerge --info =games-emulation/openmsx-0.8.1',
 * the complete build log and the output of 'emerge -pqv =games-emulation/openmsx-0.8.1'.
 * The complete build log is located at '/var/tmp/portage/games-emulation/openmsx-0.8.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/openmsx-0.8.1/temp/environment'.
 * S: '/var/tmp/portage/games-emulation/openmsx-0.8.1/work/openmsx-0.8.1'

>>> Failed to emerge games-emulation/openmsx-0.8.1, Log file:


Expected Results:  
emerged successfuly 


This is what I did to fix it:

Google lead me to this: http://lists.debian.org/debian-qa-packages/2012/02/msg00171.html

and then:

cd /var/tmp/portage/games-emulation/openmsx-0.8.1/work/openmsx-0.8.1
vi src/serialize.hh
removed : typedef void* gzFile;
added   : #include <zlib.h>

make 
make install
-> everything went ok
Comment 1 Sergey Kondakov 2012-03-10 15:30:54 UTC
i can confirm this issue and the fix too.
Comment 2 Maks Verver 2012-08-06 20:50:02 UTC
I tried resolving this by upgrading to openMSX 0.8.2 but unfortunately the problem is still present in that version.  It's easy to work around, fortunately.  I'll attach an updated ebuild.
Comment 3 Maks Verver 2012-08-06 20:50:43 UTC
Created attachment 320588 [details]
Working ebuild for openMSX 0.8.2
Comment 4 Julian Ospald 2012-08-06 20:53:35 UTC
attach the patch and an ebuild diff (not an entire build) if there are significant changes other than an epatch line
Comment 5 Maks Verver 2012-08-06 22:14:03 UTC
Created attachment 320592 [details, diff]
Patch from openmsx-0.8.1.ebuild to openmsx-0.8.2.ebuild
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2012-10-21 03:02:18 UTC
probably fixed with 0.9.1.  reopen if not.