Bug 368541 - sys/io.h missing from glibc-headers
Summary: sys/io.h missing from glibc-headers
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: ppc64
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 368401
TreeView+ depends on / blocked
Reported: 2007-11-06 17:07 UTC by Phil Knirsch
Modified: 2016-11-24 12:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-11-06 17:15:35 UTC
Type: ---

Attachments (Terms of Use)

Description Phil Knirsch 2007-11-06 17:07:28 UTC
Description of problem:

While compiling a package that needs iopl i got this error message on ppc64:

 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mminimal-toc -o .libs/bmc-watchdog 
bmc_watchdog-bmc-watchdog.o  ../../libfreeipmi/src/.libs/libfreeipmi.so -lgcrypt
../../libfreeipmi/src/.libs/libfreeipmi.so: undefined reference to `inb'
../../libfreeipmi/src/.libs/libfreeipmi.so: undefined reference to `outb'
../../libfreeipmi/src/.libs/libfreeipmi.so: undefined reference to `iopl'

After looking into it it turns out that ppc64 doesn't come with a sys/io.h
header file.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Try compile an application that uses iopl on ppc64
2. Watch it fail
Actual results:

See above.

Expected results:

Program should compile resp. sys/io.h should be present on ppc64.

Additional info:

I'm not sure if iopl and friends are available at all on ppc64, so this might
actually be NOTABUG and just not possible on ppc64.

Comment 1 Ulrich Drepper 2007-11-06 17:15:35 UTC
It is NOTABUG.  ppc64 doesn't have this I/O port concept, at least not exposed
to userlevel.  The code must be ported to ppc64.

Comment 2 Jakub Jelinek 2007-11-06 17:17:42 UTC
Yeah, there is no iopl and friends, only mmapped io, on ppc*, sparc*, s390*
and most other arches.  Only i?86, x86_64, ia64 and alpha have it.

Comment 3 Phil Knirsch 2007-11-07 09:24:14 UTC
Ok, thanks, clearly notabug then.

Read ya, Phil

Note You need to log in before you can comment on or make changes to this bug.