Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74749 - sys-apps/dmapi-2.2.0 fails compilation due to __user attribute in /usr/include/xfs/xfs_fs.h
Summary: sys-apps/dmapi-2.2.0 fails compilation due to __user attribute in /usr/includ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-17 06:09 UTC by Peter `MathFox' Roozemaal
Modified: 2005-04-28 00:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter `MathFox' Roozemaal 2004-12-17 06:09:42 UTC
Emerge dmapi fails with the following error:

gcc -O2 -O2 -DNDEBUG -funsigned-char -Wall -I./include -DVERSION=\"2.2.0\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"dmapi\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DNDEBUG -funsigned-char -Wall -I../include -DVERSION=\"2.2.0\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"dmapi\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fno-strict-aliasing -c dm_handle.c  -fPIC -DPIC -o .libs/dm_handle.o
In file included from dm_handle.c:43:
/usr/include/xfs/xfs_fs.h:319: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:321: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:322: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:323: error: parse error before '}' token
/usr/include/xfs/xfs_fs.h:350: error: variable or field `__user' declared void
/usr/include/xfs/xfs_fs.h:350: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:352: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:354: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:355: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:356: error: parse error before '}' token
/usr/include/xfs/xfs_fs.h:366: error: field `hreq' has incomplete type
/usr/include/xfs/xfs_fs.h:367: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:375: error: field `hreq' has incomplete type
/usr/include/xfs/xfs_fs.h:379: error: variable or field `__user' declared void
/usr/include/xfs/xfs_fs.h:379: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:385: error: variable or field `__user' declared void
/usr/include/xfs/xfs_fs.h:385: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:386: error: parse error before '*' token
/usr/include/xfs/xfs_fs.h:389: error: parse error before '}' token
/usr/include/xfs/xfs_fs.h:392: error: field `hreq' has incomplete type
/usr/include/xfs/xfs_fs.h:394: error: field `__user' has incomplete type
/usr/include/xfs/xfs_fs.h:394: error: parse error before '*' token
make[1]: *** [dm_handle.lo] Error 1
make: *** [default] Error 2
 
!!! ERROR: sys-apps/dmapi-2.2.0 failed.

The offending code for the first errors in /usr/include/xfs/xfs_fs.h:

typedef struct xfs_fsop_bulkreq {
        __u64           __user *lastip; /* last inode # pointer         */
        __s32           icount;         /* count of entries in buffer   */
        void            __user *ubuffer;/* user buffer for inode desc.  */
        __s32           __user *ocount; /* output count pointer         */
} xfs_fsop_bulkreq_t;

(there are more __user annotations later on in the file)
Comment 1 SpanKY gentoo-dev 2004-12-17 06:33:25 UTC
you neglected to provide `emerge info` like the bug report page says to
Comment 2 Peter `MathFox' Roozemaal 2004-12-17 06:46:17 UTC
== emerge info ==

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r9 x86_64 4
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.nedlinux.nl http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr http://gentoo.math.bme.hu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts berkdb bitmap-fonts bonobo cdr crypt doc dvd dvdr esd f77 fam flac fortran gdbm gif gnome gpm gstreamer gtk gtkhtml guile imagemagick imlib ipv6 java jp2 jpeg junit kde ldap libwww lm-sensors lzw lzw-tiff mad mikmod motif mozilla multilib mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl png postgres python qt readline samba sdl slang ssl tcltk tcpd tetex tiff
truetype usb userlocales xml xml2 xmms xpm xrandr xv zlib"
Comment 3 SpanKY gentoo-dev 2005-04-27 21:20:15 UTC
updated linux headers should resolve this
Comment 4 Peter `MathFox' Roozemaal 2005-04-28 00:01:13 UTC
Yes, fixed with the 2.6.8.1-r4 kernel header package