Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23446 - xfree-drm-4.3.0-r3 fails at i810_dma.o
Summary: xfree-drm-4.3.0-r3 fails at i810_dma.o
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-25 02:36 UTC by Stefan Sarzio
Modified: 2004-11-04 13:33 UTC (History)
1 user (show)

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


Attachments
patch for gentoo makefile fixup patch (i8x0.patch,611 bytes, patch)
2003-11-23 17:35 UTC, Andrew Bevitt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Sarzio 2003-06-25 02:36:05 UTC
[...]
make[3]: Entering directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r3/work/drm'
gcc -I/var/tmp/portage/xfree-drm-4.3.0-r3/work/drm -D__KERNEL__ -
I/usr/src/linux-2.4.20-openmosix-r4/include -Wall -Wstrict-prototypes -Wno-
trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -
mpreferred-stack-boundary=2 -march=i686 -DMODULE  -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=i810_dma  -c -o i810_dma.o i810_dma.c
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:198: too few arguments to function `do_munmap'
make[3]: *** [i810_dma.o] Error 1
make[3]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r3/work/drm'
make[2]: *** [_mod_/var/tmp/portage/xfree-drm-4.3.0-r3/work/drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-openmosix-r4'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r3/work/drm'
make: *** [i810.o] Error 2

!!! ERROR: x11-base/xfree-drm-4.3.0-r3 failed.
!!! Function src_install, Line 115, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge --update xfree-drm
2.
3.

Actual Results:  
s. Details

Expected Results:  
Compiles without errors

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-openmosix-r4 i686 Intel(R) Pentium(R) III Mobile CPU      
1000MHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/co
nfig/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 3dnow libg++ mikmod berkdb slang tetex nas esd ldap mmx sse apm pcmcia 
pnp nls readline trusted cdr cups snmp slp mozilla X motif dga opengl xv -gpm -
kde -qt -qtmt -arts gtk gtk2 gnome gb bonobo libwww libgda gtkhtml tcltk 
ncurses sdl svga imlib lcms gif wmf jpeg png tiff gd avi mpeg quicktime -alsa 
oss dvd xmms oggvorbis ggz pam ssl crypt imap maildir mbox tcpd spell truetype 
xml xml2 pdflib java jikes python perl gdbm -doc odbc mysql innodb zlib galeon 
openoffice encode samba apache apache2 php mod_php mod_ssl plotutils ethereal 
usb -guile"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j6"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg userpriv usersandbox"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-25 02:48:33 UTC
easy solution -- emerge -qpv xfree-drm to see which USE flag applies to you.  emerge it with that USE flag activated.
Comment 2 Stefan Sarzio 2003-06-25 02:54:34 UTC
Ok, now:

--- cut here ---
[ebuild    U ] x11-base/xfree-drm-4.3.0-r3 [4.3.0] -3dfx -gamma +i8x0 -matrox -rage128 -radeon -sis
--- cut here ---

Previously i8x0 was missing.

But I still get the same (as far as I see):

--- cut here ---
make[3]: Entering directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r3/work/drm'
gcc -I/var/tmp/portage/xfree-drm-4.3.0-r3/work/drm -D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE  -nostdinc -iwithprefix include -DKBUILD_BASENAME=i810_dma  -c -o i810_dma.o i810_dma.c
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:198: too few arguments to function `do_munmap'
make[3]: *** [i810_dma.o] Error 1
make[3]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r3/work/drm'
make[2]: *** [_mod_/var/tmp/portage/xfree-drm-4.3.0-r3/work/drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-openmosix-r4'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r3/work/drm'
make: *** [i810.o] Error 2

!!! ERROR: x11-base/xfree-drm-4.3.0-r3 failed.
!!! Function src_install, Line 115, Exitcode 2
!!! (no error message)
--- cut here ---
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-25 03:03:54 UTC
ok, so you actually have an i8x0 vid card then?

seems like your kernel itself has some config options missing in this case.
Comment 4 Stefan Sarzio 2003-06-25 04:03:36 UTC
Yup, got one. The previous versions (currently 4.3.0) installed without problems.

Some values from .config (will post the complete file if necessary):

CONFIG_AGP_I810=y
CONFIG_DRM_I810=y
CONFIG_DRM_I810_XFREE_41=y
# CONFIG_DRM_I830 is not set
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2003-06-25 10:25:33 UTC
You're probably getting conflicts because you built DRM into the kernel.
What you should have:
CONFIG_AGP=y
CONFIG_AGP_I810=y
# CONFIG_DRM is not set
Comment 6 Stefan Sarzio 2003-06-25 23:15:21 UTC
I've changed those settings, recompiled the kernel, rebooted, re-emerge -u xfree-drm again, got the same error - double checked to make sure the new kernel is used...it is.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2003-06-29 00:16:30 UTC
I just released -r4, please try it in a couple of hours or more and see if you get the same error.
Comment 8 Stefan Sarzio 2003-07-01 01:43:50 UTC
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:198: too few arguments to function `do_munmap'
make[3]: *** [i810_dma.o] Error 1
make[3]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r4/work/drm'
make[2]: *** [_mod_/var/tmp/portage/xfree-drm-4.3.0-r4/work/drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-openmosix-r4'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r4/work/drm'
make: *** [i810.o] Error 2
gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I. -I../../.. dristat.c -o dristat
nostrip

>>> Install xfree-drm-4.3.0-r4 into /var/tmp/portage/xfree-drm-4.3.0-r4/image/ category x11-base
 * installing DRM...
install -d -m 0755 /var/tmp/portage/xfree-drm-4.3.0-r4/image//lib/modules/2.4.20-openmosix-r4/kernel/drivers/char/drm
install: cannot stat `i810.o': No such file or directory
install: cannot stat `i830.o': No such file or directory
make: *** [install] Error 1

!!! ERROR: x11-base/xfree-drm-4.3.0-r4 failed.
!!! Function src_install, Line 143, Exitcode 2
!!! (no error message)

Comment 9 Stefan Sarzio 2003-07-01 07:21:03 UTC
Now xfree-drm...-r4 want to emerge gentoo-sources - which is odd since I use (and want to continue to use *gg*) openmosix-sources.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2003-07-01 22:46:02 UTC
Check /var/cache/edb/virtuals and see if a line exists similar to this: 
virtual/linux-sources sys-kernel/openmosix-sources 
 
If it doesn't, please add it. xfree-drm has virtual/linux-sources as a dependency. 
Comment 11 Stefan Sarzio 2003-07-01 23:30:39 UTC
Ok, have done so and it helped with the gentoo/openmosix-sources issue.

But xfree-drm still does not emerge:

emerge --update xfree-drm
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-base/xfree-drm-4.3.0-r4 to /
>>> md5 src_uri ;-) linux-drm-4.3.0-kernelsource-20030618.tar.gz
>>> md5 src_uri ;-) xfree-drm-4.3.0-r4-gentoo-0.2.tar.bz2
>>> Unpacking source...
>>> Unpacking linux-drm-4.3.0-kernelsource-20030618.tar.gz to /var/tmp/portage/xfree-drm-4.3.0-r4/work
>>> Unpacking xfree-drm-4.3.0-r4-gentoo-0.2.tar.bz2 to /var/tmp/portage/xfree-drm-4.3.0-r4/work
 * Applying xfree-drm-4.3.0-r4-gentoo-Makefile-fixup.patch...                                                                                                 [ ok ] * Applying xfree-drm-4.3.0-r4-dristat.patch...                                                                                                               [ ok ]>>> Source unpacked.
 * Building DRM...
make -f Makefile.linux DRM_MODULES=i810.o modules
make[1]: Entering directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r4/work/drm'
make -C /lib/modules/2.4.20-openmosix-r4/build  SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[2]: Entering directory `/usr/src/linux-2.4.20-openmosix-r4'
make -C  /var/tmp/portage/xfree-drm-4.3.0-r4/work/drm CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE" MAKING_MODULES=1 modules
make[3]: Entering directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r4/work/drm'
gcc -I/var/tmp/portage/xfree-drm-4.3.0-r4/work/drm -D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE  -nostdinc -iwithprefix include -DKBUILD_BASENAME=i810_drv  -c -o i810_drv.o i810_drv.c
gcc -I/var/tmp/portage/xfree-drm-4.3.0-r4/work/drm -D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE  -nostdinc -iwithprefix include -DKBUILD_BASENAME=i810_dma  -c -o i810_dma.o i810_dma.c
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:198: too few arguments to function `do_munmap'
make[3]: *** [i810_dma.o] Error 1
make[3]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r4/work/drm'
make[2]: *** [_mod_/var/tmp/portage/xfree-drm-4.3.0-r4/work/drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-openmosix-r4'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r4/work/drm'
make: *** [i810.o] Error 2
gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I. -I../../.. dristat.c -o dristat
nostrip

>>> Install xfree-drm-4.3.0-r4 into /var/tmp/portage/xfree-drm-4.3.0-r4/image/ category x11-base
 * installing DRM...
install -d -m 0755 /var/tmp/portage/xfree-drm-4.3.0-r4/image//lib/modules/2.4.20-openmosix-r4/kernel/drivers/char/drm
install: cannot stat `i810.o': No such file or directory
install: cannot stat `i830.o': No such file or directory
make: *** [install] Error 1

!!! ERROR: x11-base/xfree-drm-4.3.0-r4 failed.
!!! Function src_install, Line 143, Exitcode 2
!!! (no error message)
Comment 12 Stefan Sarzio 2003-07-07 06:42:18 UTC
Still the same with -r.

--- cut here ---
[...]
make[3]: Entering directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r5/work/drm'
gcc -I/var/tmp/portage/xfree-drm-4.3.0-r5/work/drm -D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE  -nostdinc -iwithprefix include -DKBUILD_BASENAME=i810_drv  -c -o i810_drv.o i810_drv.c
gcc -I/var/tmp/portage/xfree-drm-4.3.0-r5/work/drm -D__KERNEL__ -I/usr/src/linux-2.4.20-openmosix-r4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE  -nostdinc -iwithprefix include -DKBUILD_BASENAME=i810_dma  -c -o i810_dma.o i810_dma.c
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:198: too few arguments to function `do_munmap'
make[3]: *** [i810_dma.o] Error 1
make[3]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r5/work/drm'
make[2]: *** [_mod_/var/tmp/portage/xfree-drm-4.3.0-r5/work/drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-openmosix-r4'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/tmp/var_tmp/portage/xfree-drm-4.3.0-r5/work/drm'
make: *** [i810.o] Error 2
gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I. -I../../.. dristat.c -o dristat
nostrip

>>> Install xfree-drm-4.3.0-r5 into /var/tmp/portage/xfree-drm-4.3.0-r5/image/ category x11-base
 * installing DRM...
install -d -m 0755 /var/tmp/portage/xfree-drm-4.3.0-r5/image//lib/modules/2.4.20-openmosix-r4/kernel/drivers/char/drm
install: cannot stat `i810.o': No such file or directory
install: cannot stat `i830.o': No such file or directory
make: *** [install] Error 1

!!! ERROR: x11-base/xfree-drm-4.3.0-r5 failed.
!!! Function src_install, Line 141, Exitcode 2
!!! (no error message)
--- cut here ---
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2003-07-07 12:07:57 UTC
Please verify your kernel configuration against http://www.gentoo.org/doc/en/dri-howto.xml#doc_chap2 as the i810 works for other people. Also check through the rest of the guide (except the CVS section) to be sure you're doing everything properly.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2003-07-07 15:42:20 UTC
Also give ac-sources-2.4.21-r4 a try, according to this guy they fixed some problems with functions that got left out.

http://sourceforge.net/mailarchive/message.php?msg_id=5461599
Comment 15 Stefan Sarzio 2003-07-08 05:45:24 UTC
We already checked the configuration on 25.06.2003 - checked again, everything ok.

Then I tried ac-sources (but 2.4.22_pre3-r1) - now it did work.

I'd like to try openmosix-sources 2.4.21, but unfortunately there's another problem with them. Thus I think we have to wait till that is solved.
Comment 16 Stefan Sarzio 2003-08-06 07:40:45 UTC
This is from openmosix-sources-2.4.21. Still does not work.

--- cut here ---
emerge --update xfree-drm
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-base/xfree-drm-4.3.0-r6 to /
>>> md5 ;-) linux-drm-4.3.0-kernelsource-20030714.tar.gz
>>> md5 ;-) xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2
>>> Unpacking source...
>>> Unpacking linux-drm-4.3.0-kernelsource-20030714.tar.gz to /var/tmp/portage/xfree-drm-4.3.0-r6/work
>>> Unpacking xfree-drm-4.3.0-r6-gentoo-0.3.tar.bz2 to /var/tmp/portage/xfree-drm-4.3.0-r6/work
 * Applying xfree-drm-4.3.0-r6-gentoo-Makefile-fixup.patch...                                                                                                    [ ok ] * Applying xfree-drm-4.3.0-r6-dristat.patch...                                                                                                                  [ ok ]>>> Source unpacked.
 * Building DRM...
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DEXPORT_SYMTAB -I/usr/src/linux/include -c i810_drv.c -o i810_drv.o
In file included from drmP.h:64,
                 from i810_drv.c:35:
/usr/src/linux/include/asm/uaccess.h: In function `mosix_local_statistic':
/usr/src/linux/include/asm/uaccess.h:45: warning: nested extern declaration of `cause_link_error_by_routine_that_does_not_exist'
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -I/usr/src/linux/include -c i810_dma.c -o i810_dma.o
In file included from drmP.h:64,
                 from i810_dma.c:35:
/usr/src/linux/include/asm/uaccess.h: In function `mosix_local_statistic':
/usr/src/linux/include/asm/uaccess.h:45: warning: nested extern declaration of `cause_link_error_by_routine_that_does_not_exist'
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:198: too few arguments to function `do_munmap'
i810_dma.c: In function `i810_freelist_init':
i810_dma.c:326: warning: pointer of type `void *' used in arithmetic
make: *** [i810_dma.o] Error 1
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I../../../../../../include -I../../../../../../../../include -I../../../../../../../../programs/Xserver/hw/xfree86/common -I. -I../../.. -I../../../../../../../../lib/X11 dristat.c -o dristat
xf86drm.c:1170: warning: `drm_unlock_callback' defined but not used

>>> Install xfree-drm-4.3.0-r6 into /var/tmp/portage/xfree-drm-4.3.0-r6/image/ category x11-base
 * installing DRM...
gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -I/usr/src/linux/include -c i810_dma.c -o i810_dma.o
In file included from drmP.h:64,
                 from i810_dma.c:35:
/usr/src/linux/include/asm/uaccess.h: In function `mosix_local_statistic':
/usr/src/linux/include/asm/uaccess.h:45: warning: nested extern declaration of `cause_link_error_by_routine_that_does_not_exist'
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:196: too few arguments to function `do_munmap'
i810_dma.c: In function `i810_freelist_init':
i810_dma.c:326: warning: pointer of type `void *' used in arithmetic
make: *** [i810_dma.o] Error 1

!!! ERROR: x11-base/xfree-drm-4.3.0-r6 failed.
!!! Function src_install, Line 144, Exitcode 2
!!! (no error message)
--- cut here ---
Comment 17 Michael S Costello (MiscRat) 2003-08-21 15:41:25 UTC
I have the same trouble with my attempts to emerge the i8X0 driver.
Digging into the issue... I noticed a broken symlink "/usr/lib/X11/X11"
was a broken symlink pointing to "../X11R6/lib/X11" fixing that did not solve my problem.

Then I focused on other areas of investigation.

The error seems to begin when dristat.c line 36 refers to the location of
Xmalloc and Xfree which are "#define"s to malloc and free in the file "/usr/X11R6/include/X11/Xlibint.h" if I've analyzed correctly.

All of the make arguments printed from the module portions of the build appear to have absolute paths to their includes.  The dristat appears to have ann extraordinary number of "../../../" in it's include paths, which worries me.

More later.  Add me to any discussion as I'd like to assist.
Comment 18 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-21 21:21:31 UTC
This is what I get:

---------------------
nosferatu root # grep -r do_munmap /usr/src/linux/include/*
/usr/src/linux/include/linux/mm.h:extern int do_munmap(struct mm_struct *, unsigned long, size_t);
nosferatu root # grep -r do_munmap /usr/include/linux/*
/usr/include/linux/mm.h:extern int do_munmap(struct mm_struct *, unsigned long, size_t);
nosferatu root # grep -r do_munmap /usr/include/X11/*
nosferatu root #
---------------------------------

Check what it is in your kernel's includes ?
Comment 19 Stefan Sarzio 2003-08-22 00:23:41 UTC
--- cut here ---
# grep -r do_munmap /usr/src/linux/include/*
/usr/src/linux/include/linux/mm.h:extern int do_munmap(struct mm_struct *, unsigned long, size_t, int);


# grep -r do_munmap /usr/include/linux/*
/usr/include/linux/mm.h:extern int do_munmap(struct mm_struct *, unsigned long, size_t);

# grep -r do_munmap /usr/include/X11/*
--- cut here ---
Comment 20 Michael S Costello (MiscRat) 2003-08-22 08:59:04 UTC
Kernel 2.4.21-vanilla sources
The Three Tests... y'all ran result in:
#***
#Command Line Used:
echo "Grep ONE:";
grep -r do_munmap /usr/src/linux/include/*;
echo "Grep TWO:";grep -r do_munmap /usr/include/linux/*;
echo "Grep THREE:";
grep -r do_munmap /usr/include/X11/*;
#***
#No Such File Seen Below
#***
echo "Command: ls -l /usr/include/X11";
ls -l /usr/include/X11;
#***
Grep ONE:
/usr/src/linux/include/linux/mm.h:extern int do_munmap(struct mm_struct *, unsigned long, size_t);
/usr/src/linux/include/linux/modules/ksyms.ver:#define __ver_do_munmap  smp_e3c001da
/usr/src/linux/include/linux/modules/ksyms.ver:#define do_munmap        _set_ver(do_munmap)
Grep TWO:
/usr/include/linux/mm.h:extern int do_munmap(struct mm_struct *, unsigned long, size_t);
Grep THREE:
grep: /usr/include/X11/X11: No such file or directory
Command: ls -l /usr/include/X11
total 4
lrwxrwxrwx    1 root     root           20 Aug  6 18:11 X11 -> ../X11R6/include/X11
drwxr-xr-x    2 bin      bin          4096 Jul 31  2001 bitmaps
***
With the vanilla sources it seems to build the modules fine... the dristat.c is what appears to muck up.  I think one of the patches for xfree-drm get's squirrely with regard to X11 include paths... possibly due to a previous Xfree ebuild gone awry.
Comment 21 Andrew Bevitt 2003-11-23 17:35:00 UTC
Created attachment 21187 [details, diff]
patch for gentoo makefile fixup patch

OK it appears that both the 2.4 series kernels and the drm package do not
detect DO_MUNMAPS_4_ARGS properly. Could someone please test this against the
openmosix 2.4.22 kernel sources, you will need to apply this patch to the patch
supplied by portage, or if you wish just use this tarball instead
www.volutin.net/~andrew/GENTOO/xfree-drm-4.3.0-r6.tar.gz (you will need to
regenerate the package digest files for xfree-drm of course)

This package builds for me, but i do not have an i8x0 video to test on.
Comment 22 Stefan Sarzio 2003-12-03 07:33:23 UTC
I just "lost" my i810, thus I cannot test any more - I'm sorry.
Comment 23 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-04 03:16:03 UTC
Andrew,
Correct me if I'm wrong: this patch is a general fix and not specific to omosix.
Comment 24 Andrew Bevitt 2003-12-04 16:34:38 UTC
This appears the be a general fix yes.

I checked (spyderous: as you mentioned) redhat-sources, vanilla, and a few 
other 2.4 series kernels. The only one Ive found that actually has four 
parameters in the do_munmap() fanction call is : open-mosix...

So yes it is a general patch. With out the patch all kernels I tested will
work, besides open-mosix, with the patch they all work.
Comment 25 Donnie Berkholz (RETIRED) gentoo-dev 2004-03-14 00:43:35 UTC
Bryan can you get this into the patchset?
Comment 26 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-03 20:02:05 UTC
Bryan -- waiting.
Comment 27 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-03 01:52:05 UTC
ping Bryan
Comment 28 Bryan Stine (RETIRED) gentoo-dev 2004-11-04 13:33:42 UTC
Holy jebus, this one apparently evaded me.

Sorry for the wait. Changed in -r6.