X-4.1.0 and kernel-2.4.17

Benoit Izac benoit.izac at nerim.net
Sun Jan 13 11:33:50 PST 2002


I had a problem with installation (not compilation) of Xfree86-4.1.0 on
my LFS with a kernel-2.4.17.

When I typed 'make install', I had:
sis_alloc.c: In function `sis_free_fb':
sis_alloc.c:154: `SIS_IOCTL_FB_FREE' undeclared (first use in this
sis_alloc.c: In function `sis_alloc_agp':
sis_alloc.c:197: `SIS_IOCTL_AGP_ALLOC' undeclared (first use in this
sis_alloc.c: In function `sis_free_agp':
sis_alloc.c:224: `SIS_IOCTL_AGP_FREE' undeclared (first use in this
make[5]: *** [sis_alloc.o] Error 1
make[5]: Leaving directory `/usr/src/X11/xc/lib/GL/mesa/src/drv/sis'

For resolve it, I add '# define CONFIG_DRM_SIS' in
Like this:

#if defined(__linux__)
# include <linux/config.h>
# define CONFIG_DRM_SIS       /* <--- Here */
# include <asm/ioctl.h>         /* For _IO* macros */
# define DRM_IOCTL_NR(n)             _IOC_NR(n)
#elif defined(__FreeBSD__)
# include <sys/ioccom.h>
# define DRM_IOCTL_NR(n)             ((n) & 0xff)

Now, compilation and installation work.

Best regards.
Benoit Izac
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe hints' in the subject header of the message

More information about the hints mailing list