Bug 136

Summary: kdrive build fail
Product: xorg Reporter: Johan Dahlin <johan>
Component: Server/DDX/XephyrAssignee: Keith Packard <keithp>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Johan Dahlin 2003-11-05 00:32:57 UTC
I file included from vga.c:35:
/usr/include/asm/io.h:4:2: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
/usr/include/sys/io.h:34: warning: `ioperm' declared `static' but never defined
/usr/include/sys/io.h:39: warning: `iopl' declared `static' but never defined

Changing asm/io.h to sys/io.h and removing the extern defines around the include
solves the problem.

I'm on Fedora Core 0.95 (test 3) with:
gcc version 3.3.1 20030930 (Red Hat Linux 3.3.1-6)
kernel 2.4.22-1.2088.nptl
glibc 2.3.2-98
Comment 1 Johan Dahlin 2003-11-05 00:34:06 UTC
Oops, forgot the path since there are two vga.c: 

hw/kdrive/src/vga.c

(sorry for the bug spam)
Comment 2 Timothée Lecomte 2006-08-18 14:13:23 UTC
Was fixed in 2003 :

commit d221c484f9521c780fc3c7e88833c62e50463c6d
Author: Eric Anholt <anholt@freebsd.org>
Date:   Mon Dec 1 01:46:42 2003 +0000

    Remove sys/io.h inclusion from some files that didn't need it, and change
        asm/io.h to sys/io.h in vga.c, which newer Linux complains about.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.