Ubuntu 11.10: wo ist /usr/include/sys??? - ist nun /usr/include/linux
Alexander Beck-Ratzka
alexander.beck-ratzka at aei.mpg.de
Di Apr 17 13:18:35 UTC 2012
On Tuesday 17 April 2012 13:36:45 Nils Kassube wrote:
> Alexander Beck-Ratzka wrote:
> > Mag ja sein, aber das ist definitiv kein POSIX-Standard, dieser
> > schreibt nämlich lediglich /usr/include/sys vor, und kein
> > /usr/include/x86_64-linux- gnu!
> >
> > Wenn ich über eine IDE wie beispielsweise Eclipse gehe, so wird
> > /usr/include/x86_64-linux-gnu nicht auf den Include-Pfad gesetzt.
>
> Kleiner Tipp: Vielleicht solltest Du einen Bugreport schreiben. Dann
> wird es vielleicht in der Zukunft wieder nach POSIX behandelt. Ich weiß
> nun allerdings nicht, ob dafür Ubuntu zuständig ist, oder der GCC.
>
Also das ist ja prinzipiell schon Bestand des C-Compilers, allerdings können
auch andere C-Compiler drauf zugreifen. Im Header sys/types.h werden die
"primitive system data types" definiert, also hier steht nichts GCC-
spezifisches, sehr wohl aber C-spezifisches. Zu Beginn steht da:
[snip]
/* Copyright (C) 1991,1992,1994-2002,2006,2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
/*
* POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
*/
[snip]
So ein kleines Bonmot das doch schon ziemlich auf einen Bug oder auf Ignoranz
der Ubuntu-Herausgeber hindeutet: in der Header-Datei
/usr/include/x86_64-linux-gnu/sys/types.h
steht genau derselber Comment-Header wie ich ich oben aufgeführt habe, also
auch der Satz:
" POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>"
Ich denke, dem ist nichts mehr hinzu zu fügen :-(
Liebe Grüße
Alexander
Mehr Informationen über die Mailingliste ubuntu-de