#include <linux/errno.h> WHERE are these includes?

#include <linux/errno.h> WHERE are these includes?

Post by Allen Pourati » Fri, 10 May 1996 04:00:00



I'm trying to re-compile some sources that compiled under Linux 1.1.54
under linux 1.2.13 (ELF) and I get error messages like the follwing:

--------------------------------------------------------------

cd ~/temp_archive/
make -k
gcc -c -g register.c
In file included from /usr/include/stdlib.h:42,
                 from register.c:2:
/usr/include/errno.h:27: linux/errno.h: No such file or directory
make: *** [register.o] Error 1
gcc -c -g parsereg.c
In file included from /usr/include/stdlib.h:42,
                 from parsereg.c:4:
/usr/include/errno.h:27: linux/errno.h: No such file or directory

-----------------------------------------------------------------

Where do I install these mythical "linux" includes from?  They seem to be
called from errno.h which in turn is called from stdlib.h

A hint would be greatly appreciated.

Allen Pouratian
UC Berkeley

 
 
 

#include <linux/errno.h> WHERE are these includes?

Post by Frants » Fri, 10 May 1996 04:00:00



>Where do I install these mythical "linux" includes from?  They seem to be
>called from errno.h which in turn is called from stdlib.h

/usr/include/linux should be a symbolic link to the include directory of the
linux source (generally /usr/src/linux/include). So you should install the
sources and create the symbolic link. While you are at it you should also
make /usr/include/asm a symbolic link to /usr/src/arch/asm-i386 if that is the
appropriate platform. Symbolic links like the above are created by the
following commands:

        ln -s /usr/src/linux/include /usr/include/linux
        ln -s /usr/src/linux/arch/asm-i386 /usr/include/asm

Now just hope this is correct :-)

PF
--
/***************************************************************\

Doing:  RCFS (Radio Control Flight Simulator)

 
 
 

#include <linux/errno.h> WHERE are these includes?

Post by Aaron Cran » Fri, 10 May 1996 04:00:00


| I'm trying to re-compile some sources that compiled under Linux 1.1.54
| under linux 1.2.13 (ELF) and I get error messages like the follwing:

<snip>

| /usr/include/errno.h:27: linux/errno.h: No such file or directory

<snip>

| Where do I install these mythical "linux" includes from?  They seem to be
| called from errno.h which in turn is called from stdlib.h
|
| A hint would be greatly appreciated.
|
| Allen Pouratian
| UC Berkeley

Try this as root:

# cd /usr/include
# ln -s /usr/src/linux/include/linux linux

If your kernel source tree is called something like /usr/src/linux-1.2.13,
you'll also need to:

# cd /usr/src
# ln -s linux-1.2.13 linux

If you use Slackware 3, the kernel source tree is called linuxelf-1.2.13

After this, whenever you upgrade the kernel, make sure that /usr/src/linux
is a symlink to the current kernel source tree, and you shouldn't have any
problems.

Regards.
--- Aaron Crane, undergrad at SOAS, University of London
Snail: International Hall, Brunswick Square, London, WC1N 1AS, England
Voice: +44 (0)171-837 0746 x7312 (ask for me in room 111)
ObSig: "Object-oriented programming is an exceptionally bad idea which could
       only have originated in California."  (Edsger Dijkstra)