compiling fails with the following error: ---------- Using configuration for building DAVFS2 0.2.4: Install prefix: /usr Compiler: x86_64-pc-linux-gnu-gcc neon library: library in /usr (neon 0.24.7) XML parser: using whatever neon uses SSL library: supported by neon Now run 'make' to compile DAVFS2 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/davfs2-0.2.4/work/davfs2-0.2.4 -I./lib -I./src -I/usr/src/linux/include -march=k8 -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -DSYSCONFDIR=\"/etc/davfs2\" -DSTATEDIR=\"/var/run/mount.davfs\" -c src/davfsd.c -o src/davfsd.o x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/davfs2-0.2.4/work/davfs2-0.2.4 -I./lib -I./src -I/usr/src/linux/include -march=k8 -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -DSYSCONFDIR=\"/etc/davfs2\" -DSTATEDIR=\"/var/run/mount.davfs\" -c src/util.c -o src/util.o In file included from src/util.c:37: /usr/src/linux/include/linux/coda.h:762: error: variable or field `__user' declared void /usr/src/linux/include/linux/coda.h:762: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/coda.h:762: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:763: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:763: warning: data definition has no type or storage class /usr/src/linux/include/linux/coda.h:766: error: parse error before '}' token /usr/src/linux/include/linux/coda.h:769: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/coda.h:769: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:772: error: parse error before '}' token src/util.c: In function `dav_get_args': src/util.c:1013: warning: cast to pointer from integer of different size src/util.c: At top level: /usr/src/linux/include/linux/coda.h:771: error: storage size of `vi' isn't known make: *** [src/util.o] Error 1 ---------- compiling of davfs-0.2.3-r1 works fine. Reproducible: Always Steps to Reproduce: bash> emerge davfs2 System Information: CPU: X86_64 KERNEL: Linux version 2.6.12-gentoo-r6 (root@tux) (gcc version 3.4.3 20041125 (Gentoo 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)) make.conf: ---------- CFLAGS="-march=k8 -O2" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="${CFLAGS}" USE="audiofile avi bash-completion foomaticdb ppds oggvorbis unicode" CCACHE_SIZE="2G" ----------
We want emerge --info, NOT make.conf.
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r0, 2.6 .12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.6.13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disab led] ccache version 2.3 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defau lts/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp.belnet .be/mirror/rsync.gentoo.org/gentoo/ http://ftp.heanet.ie/pub/gentoo ftp://ftp.tu -clausthal.de/pub/linux/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa arts audiofile avi bash-completion berkdb bitmap-fonts bonobo cdr crypt cups curl eds encode esd fam flac foomaticdb fortran gdbm gif gnome gp m gstreamer gtk gtk2 imlib ipv6 java jpeg junit kde lzw lzw-tiff mad motif mozil la mp3 mpeg mysql ncurses nls ogg oggvorbis opengl pam pdflib perl png ppds pyth on qt quicktime readline samba sdl slang spell ssl tcpd tiff truetype-fonts type 1-fonts unicode usb userlocales vorbis xine xml xml2 xmms xpm xv zlib userland_G NU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Chances are that nobody will notice the bug again if you forget it to reopen next time. ;p This is strange, it was supposed to be fixed in Bug 81507... Hmmm?
Can you please try -r1? And please try commenting out the patch and how it works without the patch.
same error when using 0.2.4-r1: ---------- x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/davfs2-0.2.4-r1/work/davfs2-0.2.4 -I./lib -I./src -I/usr/src/linux/include -march=k8 -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -DSYSCONFDIR=\"/etc/davfs2\" -DSTATEDIR=\"/var/run/mount.davfs\" -c src/davfsd.c -o src/davfsd.ok x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/davfs2-0.2.4-r1/work/davfs2-0.2.4 -I./lib -I./src -I/usr/src/linux/include -march=k8 -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -DSYSCONFDIR=\"/etc/davfs2\" -DSTATEDIR=\"/var/run/mount.davfs\" -c src/util.c -o src/util.o In file included from src/util.c:37: /usr/src/linux/include/linux/coda.h:762: error: variable or field `__user' declared void /usr/src/linux/include/linux/coda.h:762: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/coda.h:762: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:763: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:763: warning: data definition has no type or storage class /usr/src/linux/include/linux/coda.h:766: error: parse error before '}' token /usr/src/linux/include/linux/coda.h:769: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/coda.h:769: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:772: error: parse error before '}' token src/util.c: In function `dav_get_args': src/util.c:1013: warning: cast to pointer from integer of different size src/util.c: At top level: /usr/src/linux/include/linux/coda.h:771: error: storage size of `vi' isn't known make: *** [src/util.o] Error 1 ---------- error when compiling without include-compiler.patch: ---------- x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/davfs2-0.2.4-r1/work/davfs2-0.2.4 -I./lib -I./src -I/usr/src/linux/include -march=k8 -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -DSYSCONFDIR=\"/etc/davfs2\" -DSTATEDIR=\"/var/run/mount.davfs\" -c src/davfsd.c -o src/davfsd.o In file included from src/davfsd.h:28, from src/davfsd.c:20: /usr/src/linux/include/linux/coda.h:762: error: variable or field `__user' declared void /usr/src/linux/include/linux/coda.h:762: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/coda.h:762: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:763: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:763: warning: data definition has no type or storage class /usr/src/linux/include/linux/coda.h:766: error: parse error before '}' token /usr/src/linux/include/linux/coda.h:769: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/coda.h:769: error: parse error before '*' token /usr/src/linux/include/linux/coda.h:772: error: parse error before '}' token /usr/src/linux/include/linux/coda.h:771: error: storage size of `vi' isn't known make: *** [src/davfsd.o] Error 1 ----------
Created attachment 66458 [details, diff] include-compiler-new.patch Aah, the difference in output is interesting Please try out this new include-compiler.patch, it should work now.
(In reply to comment #6) > Created an attachment (id=66458) [edit] > include-compiler-new.patch > > Aah, the difference in output is interesting > > Please try out this new include-compiler.patch, it should work now. compiled with no errors thx!
thanks, fixed in portage