Ron Alford wrote:

> Then did make again.  The error file is attached.
> 
>   ------------------------------------------------------------------------
> make[1]: Entering directory `/usr/src/ax25-utils-2.1.42/lib'
> gcc -Wall -Wstrict-prototypes -O2 -c -o axutils.o axutils.c
> gcc -Wall -Wstrict-prototypes -O2 -c -o axconfig.o axconfig.c
> gcc -Wall -Wstrict-prototypes -O2 -c -o daemon.o daemon.c
> gcc -Wall -Wstrict-prototypes -O2 -c -o nrconfig.o nrconfig.c
> gcc -Wall -Wstrict-prototypes -O2 -c -o procutils.o procutils.c
> procutils.c: In function `read_proc_ax25':
> procutils.c:36: `errno' undeclared (first use this function)
> procutils.c:36: (Each undeclared identifier is reported only once
> procutils.c:36: for each function it appears in.)
> procutils.c: In function `read_proc_ax25_route':
> procutils.c:107: `errno' undeclared (first use this function)
> procutils.c: In function `read_proc_nr_neigh':
> procutils.c:154: `errno' undeclared (first use this function)
> procutils.c: In function `read_proc_nr_nodes':
> procutils.c:194: `errno' undeclared (first use this function)
> procutils.c: In function `get_call':
> procutils.c:255: `errno' undeclared (first use this function)
> make[1]: *** [procutils.o] Error 1
> make[1]: Leaving directory `/usr/src/ax25-utils-2.1.42/lib'
> make: *** [all] Error 2

It sounds to me like procutils.c is missing an include for errno.h

Open up procutils.c and look for lines that look like:-

#include <something.h>

Add a line at the top of these that reads:-

#include <errno.h>

and then compile again. If that doesn't fix then, there is someting
broken in your /usr/include.

Damian


-- 
 ______________________________________________________________________
* Damian Ivereigh     *      ||        ||      * Cisco Systems, Inc.   *
* MIS Printer Admin   *    .||||.    .||||.    * Sydney, Australia     *
* Linux Bigot         * ..:||||||:..:||||||:.. * +61 2 8448 7344       *
* [EMAIL PROTECTED]    *   cisco Systems, Inc.  * Fax: +61 2 8448 7228  *
*______________________________________________________________________*

Reply via email to