Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102357 - error compiling davfs2-0.2.4 on amd64
Summary: error compiling davfs2-0.2.4 on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-13 05:42 UTC by Marc
Modified: 2005-08-21 02:49 UTC (History)
3 users (show)

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


Attachments
include-compiler-new.patch (include-compiler-new.patch,1.23 KB, patch)
2005-08-21 01:57 UTC, Stefan Schweizer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 2005-08-13 05:42:40 UTC
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"
----------
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-13 06:11:46 UTC
We want emerge --info, NOT make.conf.
Comment 2 Marc 2005-08-13 06:31:56 UTC
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
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-08-13 12:26:21 UTC
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?
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2005-08-20 13:39:57 UTC
Can you please try -r1?

And please try commenting out the patch and how it works without the patch.
Comment 5 Marc 2005-08-21 01:39:31 UTC
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
----------
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2005-08-21 01:57:17 UTC
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.
Comment 7 Marc 2005-08-21 02:33:59 UTC
(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!

Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2005-08-21 02:49:20 UTC
thanks, fixed in portage