Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25796 - [linux-headers] Arch has odd paths?

Attached to Project: Arch Linux
Opened by F. Bogo the III. (fogobogo) - Sunday, 28 August 2011, 02:01 GMT
Last edited by Ionut Biru (wonder) - Sunday, 28 August 2011, 12:59 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

signal.h doesnt want to be included.

Name : linux-headers
Version : 3.0.3-1

Steps to reproduce:

$> cat fail.c

#include <stdio.h>
#include <signal.h>

int
main()
{
return 0;
}


$> gcc fail.c

In file included from /usr/include/signal.h:339:0,
from fail.c:2:
/usr/include/bits/sigcontext.h:28:29: fatal error: asm/sigcontext.h: No such file or directory
compilation terminated.

$> gcc fail.c -I /usr/src/linux-3.0-ARCH/arch/x86/include/ -I /usr/src/linux-3.0-ARCH/include/ -Wall
In file included from /usr/src/linux-3.0-ARCH/arch/x86/include/asm/sigcontext.h:5:0,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:339,
from fail.c:2:
/usr/src/linux-3.0-ARCH/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"; [-Wcpp]
This task depends upon

Closed by  Ionut Biru (wonder)
Sunday, 28 August 2011, 12:59 GMT
Reason for closing:  Not a bug
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 28 August 2011, 05:40 GMT
Nonono... You need to install linux-api-headers (for userspace apps)
linux-headers is for LKM
Comment by F. Bogo the III. (fogobogo) - Sunday, 28 August 2011, 11:55 GMT
aha! Ok my bad then. A quick scan over linux-headers revealed there is plenty signal.h and I was pretty tired. "Bug" fixed can be closed.

Loading...