[M3devel] asm/ipc.h not present on ubuntu 6.10
Tony Hosking
hosking at cs.purdue.edu
Mon Feb 12 21:41:23 CET 2007
It turns out that you don't need to include <asm/ipc.h> so I've gone
ahead and deleted that line.
On Feb 7, 2007, at 12:48 PM, Daniel Alejandro Benavides D. wrote:
> Hello:
> Yes I do have by default the following kernel headers
> on
> /usr/src
>
> drwxr-xr-x 19 root root 4096 2006-10-25 09:06
> linux-headers-2.6.17-10
> drwxr-xr-x 4 root root 4096 2006-10-25 09:06
> linux-headers-2.6.17-10-generic
>
> A comment, linux-headers-2.6.17-10-generic just have
> symbolic links to the other.
>
> admin11 at sl11:/usr/src$ ls -al
> linux-headers-2.6.17-10/include/
> total 192
> drwxr-xr-x 43 root root 4096 2006-10-25 09:06 .
> drwxr-xr-x 19 root root 4096 2006-10-25 09:06 ..
> drwxr-xr-x 3 root root 4096 2006-10-25 09:06 acpi
> lrwxrwxrwx 1 root root 8 2007-02-06 08:13 asm ->
> asm-i386
>
> the file
> /usr/src/linux-headers-2.6.17-10/include/asm/ipc.h
> has the preproccesor line:
> #include <asm-generic/ipc.h>
>
> Besides there ir asm headers on the directory
> /usr/include
> the thing is In this version of Ubuntu Edgy, the
> directory /usr/include has the following directories:
>
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 arpa
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 asm
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05
> asm-generic
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 asm-i386
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05
> asm-x86_64
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 bits
> drwxr-xr-x 3 root root 4,0K 2007-02-06 10:51 c++
> drwxr-xr-x 2 root root 4,0K 2007-02-06 09:52 GL
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 gnu
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 gphoto2
> drwxr-xr-x 2 root root 4,0K 2006-06-19 17:55 gsl
> drwxr-xr-x 3 root root 4,0K 2006-10-25 09:05 kde
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 libexif
> drwxr-xr-x 15 root root 8,0K 2006-10-25 09:05 linux
> drwxr-xr-x 2 root root 4,0K 2007-02-06 10:14 Mrm
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 net
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 netash
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 netatalk
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 netax25
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05
> neteconet
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 netinet
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 netipx
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05
> netpacket
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 netrom
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 netrose
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 nfs
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05
> protocols
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:06
> python2.4
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 rpc
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 rpcsvc
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 scsi
> drwxr-xr-x 2 root root 4,0K 2006-10-25 09:05 sys
> drwxr-xr-x 2 root root 4,0K 2007-02-06 10:14 uil
> drwxr-xr-x 9 root root 4,0K 2007-02-06 09:54 X11
> drwxr-xr-x 2 root root 8,0K 2007-02-06 10:14 Xm
>
> but the file ipc.h doesnt exist on /usr/include/asm,
> It does a file named ipcbuf.h
>
> Comparing to the Ubuntu 6.06 Dapper, the directory
> /usr/include has only directories X11 gsl and
> python2.4. But the directory
> /usr/src/linux-headers-2.6.15-27/include/asm/ipc.h it
> does exists and have the line
> #include <asm-generic/ipc.h>
>
> So Its almost the same situation in terms of contents
> of the files on linux headers but, the difference is
> the .c file of the error was looking first on
> /usr/include and not on the linux headers, so maybe
> quake takes the first option in this Edgy, then It
> didint find the file, so it complains.
>
> Could be a bug or a missing header on /usr/include on
> this new ubuntu ? I will ask help on Ubuntu forums.
>
> Thanks,
> Daniel Benavides
>
> --- Stefan Sperling <stsp at stsp.in-berlin.de> wrote:
>
>> On Tue, Feb 06, 2007 at 05:13:43PM +0100, Olaf
>> Wagner wrote:
>>>
>>> On Tue, February 6, 2007 4:39 pm, Daniel Alejandro
>> Benavides D. wrote:
>>>> Hi:
>>>> Im compiling all the system and I got this error
>>>>
>>>> On the file
>>>> cm3/m3-libs/m3gc-simple/src/runtime/LINUXLIBC6
>>>> the line 19 has the following include:
>>>>
>>>> #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
>>>> #include <asm/ipc.h>
>>>> #endif
>>>>
>>>> Is there a problem changing the include to
>>>> #include <asm-generic/ipc.h> ?
>>
>> Yes.
>>
>>>> This kernel is 2.6.17-10-generic
>>
>> The -generic in that version number has nothing to
>> do with
>> include/asm-generic. It is a custom string added by
>> the Ubuntu
>> developers to identify which kernel variant is
>> running.
>> See the CONFIG_LOCALVERSION kernel configuration
>> option.
>>
>> The include/asm-generic directory is used for
>> platform
>> independent parts the assembler code in Linux relies
>> on
>> (constant definitions, common macros, etc.)
>>
>> The asm/ include directory is usually a symlink, and
>> does not exist in a freshly extracted linux source
>> tree.
>>
>> For example, this is from the source tree of a build
>> of
>> Linux for the ARM architecture:
>>
>> [stsp at ted ~/dslinux/src/linux-2.6.x/include]$ ls
>> -l asm
>> lrwxr-xr-x 1 stsp stsp 7B 22 Dec 12:07 asm@
>> -> asm-arm
>>
>> Note that asm/ipc.h includes asm-generic/ipc.h:
>>
>> [stsp at ted ~/dslinux/src/linux-2.6.x/include]$ grep
>> asm-generic/ipc.h asm/ipc.h
>> #include <asm-generic/ipc.h>
>>
>>> If this is the location the file has moved to it
>> is certainly correct
>>> at least for your workspace. Before you check-in
>> such a change, you
>>> should add an appropriate version check of course,
>> or other people
>>> using other Linux versions will have similar
>> problems as you.
>>
>> I think the problem is somewhere else.
>>
>> Daniel, are you sure you have a kernel source or
>> kernel headers
>> package for your architecture installed on your
>> Ubuntu system?
>>
>> --
>> stefan
>> http://stsp.in-berlin.de
>> PGP Key: 0xF59D25F0
>>
>
>
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
> _______________________________________________
> M3devel mailing list
> M3devel at elegosoft.com
> https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel
More information about the M3devel
mailing list