Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404501 - app-arch/torrentzip-0.2-r1: ioapi.h:40:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
Summary: app-arch/torrentzip-0.2-r1: ioapi.h:40:35: error: expected '=', ',', ';', 'as...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-19 10:47 UTC by Daniel Perzynski
Modified: 2016-02-20 14:38 UTC (History)
2 users (show)

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


Attachments
ebuild patch (torrentzip.diff,4.32 KB, patch)
2012-02-19 13:21 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Perzynski 2012-02-19 10:47:20 UTC
app-arch/torrentzip-0.2-r1 compilation failed with gcc-4.6.2

Reproducible: Always

Steps to Reproduce:
1.emerge torrentzip
2.
3.
Actual Results:  
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-arch/torrentzip-0.2-r1
 * trrntzip_v02_src.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking trrntzip_v02_src.tar.gz to /var/tmp/portage/app-arch/torrentzip-0.2-r1/work
 * Applying fix-perms.patch ...                                                                                                                                             [ ok ]
 * Running eautoreconf in '/var/tmp/portage/app-arch/torrentzip-0.2-r1/work/trrntzip' ...
 * Running aclocal ...                                                                                                                                                      [ ok ]
 * Running autoconf ...                                                                                                                                                     [ ok ]
 * Running autoheader ...                                                                                                                                                   [ ok ]
 * Running automake --add-missing --copy ...                                                                                                                                [ ok ]
>>> Source unpacked in /var/tmp/portage/app-arch/torrentzip-0.2-r1/work
>>> Compiling source in /var/tmp/portage/app-arch/torrentzip-0.2-r1/work/trrntzip ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking for fmod in -lm... yes
checking for zlibVersion in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating torrentzip.spec
config.status: creating config.h
config.status: executing depfiles commands
make -j3 
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/app-arch/torrentzip-0.2-r1/work/trrntzip'
Making all in src
make[2]: Entering directory `/var/tmp/portage/app-arch/torrentzip-0.2-r1/work/trrntzip/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -O2 -march=core2 -mtune=core2 -msse4.1 -pipe -MT ioapi.o -MD -MP -MF .deps/ioapi.Tpo -c -o ioapi.o ioapi.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -O2 -march=core2 -mtune=core2 -msse4.1 -pipe -MT logging.o -MD -MP -MF .deps/logging.Tpo -c -o logging.o logging.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -O2 -march=core2 -mtune=core2 -msse4.1 -pipe -MT platform.o -MD -MP -MF .deps/platform.Tpo -c -o platform.o platform.c
In file included from ioapi.c:14:0:
ioapi.h:40:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:43:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:46:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:49:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:51:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:54:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:56:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:60:5: error: unknown type name 'open_file_func'
ioapi.h:61:5: error: unknown type name 'read_file_func'
ioapi.h:62:5: error: unknown type name 'write_file_func'
ioapi.h:63:5: error: unknown type name 'tell_file_func'
ioapi.h:64:5: error: unknown type name 'seek_file_func'
ioapi.h:65:5: error: unknown type name 'close_file_func'
ioapi.h:66:5: error: unknown type name 'testerror_file_func'
ioapi.h:72:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c:32:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c:35:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c:38:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c:42:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c:44:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c:47:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.c: In function 'fill_fopen_filefunc':
ioapi.c:160:34: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:161:34: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:162:35: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:163:34: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:164:34: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:165:35: warning: assignment makes integer from pointer without a cast [enabled by default]
ioapi.c:166:35: warning: assignment makes integer from pointer without a cast [enabled by default]
make[2]: *** [ioapi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
platform.c: In function 'getch':
platform.c:50:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
In file included from zip.h:61:0,
                 from global.h:25,
                 from logging.h:21,
                 from logging.c:28:
ioapi.h:40:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:43:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:46:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:49:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:51:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:54:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:56:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
ioapi.h:60:5: error: unknown type name 'open_file_func'
ioapi.h:61:5: error: unknown type name 'read_file_func'
ioapi.h:62:5: error: unknown type name 'write_file_func'
ioapi.h:63:5: error: unknown type name 'tell_file_func'
ioapi.h:64:5: error: unknown type name 'seek_file_func'
ioapi.h:65:5: error: unknown type name 'close_file_func'
ioapi.h:66:5: error: unknown type name 'testerror_file_func'
ioapi.h:72:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
In file included from global.h:25:0,
                 from logging.h:21,
                 from logging.c:28:
zip.h:201:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:221:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:227:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:250:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:265:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:290:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:296:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:301:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
zip.h:310:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
logging.c: In function 'OpenProcessLog':
logging.c:125:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
mv -f .deps/platform.Tpo .deps/platform.Po
make[2]: *** [logging.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-arch/torrentzip-0.2-r1/work/trrntzip/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-arch/torrentzip-0.2-r1/work/trrntzip'
make: *** [all] Error 2
emake failed
 * ERROR: app-arch/torrentzip-0.2-r1 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *          ebuild.sh, line   85:  Called src_compile
 *        environment, line 2838:  Called _eapi0_src_compile
 *   phase-helpers.sh, line  537:  Called _eapi2_src_compile
 *   phase-helpers.sh, line  573:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =app-arch/torrentzip-0.2-r1',
 * the complete build log and the output of 'emerge -pqv =app-arch/torrentzip-0.2-r1'.
 * The complete build log is located at '/var/tmp/portage/app-arch/torrentzip-0.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-arch/torrentzip-0.2-r1/temp/environment'.
 * S: '/var/tmp/portage/app-arch/torrentzip-0.2-r1/work/trrntzip'

>>> Failed to emerge app-arch/torrentzip-0.2-r1, Log file:

>>>  '/var/tmp/portage/app-arch/torrentzip-0.2-r1/temp/build.log'


Expected Results:  
torrentzip should compile successfully

Portage 2.2.0_alpha87 (default/linux/amd64/10.0, gcc-4.6.2, glibc-2.14.1-r2, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9000_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Sat, 18 Feb 2012 17: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.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo sunrise UnTraC
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=core2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -mtune=core2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--enable-new-dtags"
LINGUAS="en pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 caps cli cracklib crypt cups cxx dri fortran gdbm gpm iconv idn ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre pppd readline session sse sse2 ssl sysfs tcpd unicode xattr xorg zlib" ALSA_CARDS="hda-intel" 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 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 asis auth_digest authn_dbd cern_meta charset_lite dbd dumpio ident imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http substitute version" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="directory ptp2 sierra template topfield" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-af9015" 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" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en pl" LIRC_DEVICES="userspace" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-19 13:16:42 UTC
sed -e '/define _ZLIBIOAPI_H/ a#define OF(x) x' \
    -i src/ioapi.h || die #404501
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-19 13:21:09 UTC
Created attachment 302491 [details, diff]
ebuild patch

Clean ebuild, bump eapi to save space, fix bug #404501, fix implicit function decleration, move too long description to metadata.xml
Comment 3 Daniel Perzynski 2012-02-25 14:18:39 UTC
I confirm that I'm able to compile and install it now