Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mednafen fails to build [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
log_null
n00b
n00b


Joined: 28 Nov 2011
Posts: 6

PostPosted: Mon Nov 28, 2011 1:35 pm    Post subject: Mednafen fails to build [SOLVED] Reply with quote

When trying to build mednafen:

Code:
[ebuild  N    ] games-emulation/mednafen-0.8.13.3  USE="alsa nls (-altivec) -cjk -debug -jack"


Build goes fine until this:

Code:

...
compress/unzip.h:324:42: error: expected initializer before 'OF'
file.cpp: In function 'MDFNFILE* MakeMemWrap(void*, int)':
file.cpp:256:44: error: 'unzGetCurrentFileInfo' was not declared in this scope
file.cpp:274:56: error: 'unzReadCurrentFile' was not declared in this scope
file.cpp:289:25: error: 'unzCloseCurrentFile' was not declared in this scope
file.cpp:290:14: error: 'unzClose' was not declared in this scope
file.cpp: In function 'MDFNFILE* MDFN_fopen(const char*, const char*, const char*, const char*)':
file.cpp:329:21: error: 'unzOpen' was not declared in this scope
file.cpp:334:36: error: 'unzGoToFirstFile' was not declared in this scope
file.cpp:337:15: error: 'unzClose' was not declared in this scope
file.cpp:350:71: error: 'unzGetCurrentFileInfo' was not declared in this scope
file.cpp:353:17: error: 'unzClose' was not declared in this scope
file.cpp:373:37: error: 'unzGoToNextFile' was not declared in this scope
file.cpp:378:18: error: 'unzClose' was not declared in this scope
file.cpp:382:39: error: 'unzGoToFirstFile' was not declared in this scope
file.cpp:385:18: error: 'unzClose' was not declared in this scope
file.cpp:394:38: error: 'unzOpenCurrentFile' was not declared in this scope
file.cpp:397:15: error: 'unzClose' was not declared in this scope
file.cpp: In function 'bool MDFN_DumpToFileReal(const char*, int, const std::vector<PtrLengthPair>&)':
file.cpp:660:66: warning: too many arguments for format
file.cpp:673:85: warning: too many arguments for format
file.cpp:690:66: warning: too many arguments for format
file.cpp:701:70: warning: too many arguments for format
file.cpp: In function 'bool ApplyIPS(FILE*, MDFNFILE*, const char*)':
file.cpp:144:39: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
make[2]: *** [file.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/games-emulation/mednafen-0.8.13.3/work/mednafen/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-emulation/mednafen-0.8.13.3/work/mednafen/src'
make: *** [all-recursive] Error 1
emake failed
 * ERROR: games-emulation/mednafen-0.8.13.3 failed (compile phase):
 *   died running emake, base_src_make
 *
 * Call stack:
 *     ebuild.sh, line   84:  Called src_compile
 *   environment, line 3049:  Called games_src_compile
 *   environment, line 2009:  Called base_src_make
 *   environment, line  549:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 *
 * If you need support, post the output of 'emerge --info =games-emulation/mednafen-0.8.13.3',
 * the complete build log and the output of 'emerge -pqv =games-emulation/mednafen-0.8.13.3'.
 * The complete build log is located at '/var/tmp/portage/games-emulation/mednafen-0.8.13.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/mednafen-0.8.13.3/temp/environment'.
 * S: '/var/tmp/portage/games-emulation/mednafen-0.8.13.3/work/mednafen'


Here is the make.conf:

Code:

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"

USE="a52 aalib aalib alsa alsa apng artist-screen ass audiofile cairo cdio cdparanoia colors curl dirac directfb -doc -dso dts dv dvd dvdnav enca encode faac faad fbcon fbcon figlet flac fontconfig ftp gif gif git -gnome gpg highlight hwdb iconv icu imagemagick imap imlib iostats -ipv6 jadetex joystick jpeg jpeg jpeg2k -kde key-screen lame libcaca libcaca libmpeg2 live lyrics-screen lzo mmx mmx mouse mp3 mp3 mp3 mpd mpg123 mpg123 msn network offensive ogg opengl osdmenu oss pdf perl png png pop python quicktime radio rar real rtc sasl scanner schroedinger search-screen shm sidebar smime smtp song-screen speex sse sse sse2 sse2 subversion -test theora theora theora threads tiff toolame tremor truetype truetype twitter twolame twolame udev unicode USE=savedconfig vim-syntax vorbis vorbis X X x264 xinerama xinerama xscreensaver xv xvid xvid zip"

MAKEOPTS="-j3"
INPUT_DEVICES="evdev keyboard mouse joystick synaptics"
VIDEO_CARDS="vesa fbdev intel"
GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://gentoo.arcticnetwork.ca/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
LINGUAS="en en_US pt_BR"
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
PORTAGE_NICENESS="15"
FEATURES="-collision-protect"
FETCHCOMMAND="/usr/bin/axel -a -o \${DISTDIR}/\${FILE} \${URI}"
RESUMECOMMAND="${FETCHCOMMAND}"


Here's the build info:

Code:

Portage 2.1.10.37 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r0, 3.1.0-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.0-gentoo-r1-x86_64-Pentium-R-_Dual-Core_CPU_T4400_@_2.20GHz-with-gentoo-2.1
Timestamp of tree: Fri, 25 Nov 2011 22:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://gentoo.arcticnetwork.ca/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.ISO-8859-1"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US pt_BR"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aalib acl alsa amd64 apng artist-screen ass audiofile berkdb bzip2 cairo cdio cdparanoia cli colors cracklib crypt cups curl cxx dirac directfb dri dts dv dvd dvdnav enca encode faac faad fbcon figlet flac fontconfig fortran ftp gdbm gif git gpg gpm highlight hwdb iconv icu imagemagick imap imlib iostats jadetex joystick jpeg jpeg2k key-screen lame libcaca libmpeg2 live lyrics-screen lzo mmx modules mouse mp3 mpd mpg123 msn mudflap multilib ncurses network nls nptl nptlonly offensive ogg opengl openmp osdmenu oss pam pcre pdf perl png pop pppd python quicktime radio rar readline rtc sasl savedconfig scanner schroedinger search-screen session shm sidebar smime smtp song-screen speex sse sse2 ssl subversion sysfs tcpd theora threads tiff toolame tremor truetype twitter twolame udev unicode vim-syntax vorbis x264 xinerama xorg xscreensaver xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US pt_BR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Is zlib changes causing these problems when building ?


Last edited by log_null on Thu Dec 08, 2011 11:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
log_null
n00b
n00b


Joined: 28 Nov 2011
Posts: 6

PostPosted: Thu Dec 08, 2011 4:30 am    Post subject: Reply with quote

I've update whole system, but still breaking.
Back to top
View user's profile Send private message
log_null
n00b
n00b


Joined: 28 Nov 2011
Posts: 6

PostPosted: Thu Dec 08, 2011 11:50 pm    Post subject: Reply with quote

Downgrade zlib to zlib-1.2.5.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum