Bug 136 - kdrive build fail
Summary: kdrive build fail
Status: CLOSED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xephyr (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-05 00:32 UTC by Johan Dahlin
Modified: 2011-10-15 17:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.