"make install" fails building ne2000 on pc586

Harry Courtice hcourtice at optushome.com.au
Fri Sep 21 01:43:28 UTC 2001


----- Original Message -----
From: "Harry Courtice" <hcourtice at optushome.com.au>
To: <rtems-users at OARcorp.com>
Sent: Thursday, September 20, 2001 8:38 PM
Subject: "make install" fails building samples/hello


> Hello
>
> I am using cygwin/win98. I am trying to build RTEMS for a target pc386.
When
> I do "make install" I get the following error, and the make halts.
>

Thanks for those answers. I've now got past hello, and am at my next
sticking point. Is this easier with Linux, or does everyone have these
problems?

Here is my next error. It first came up during "make install", but I've
re-run make here from the source directory where the problem is.

BASH.EXE-2.04$
BASH.EXE-2.04$ pwd
/data/rtems/tools/build-rtems/i386-rtems/c/pc586/lib/libbsp/i386/pc386/ne200
0
BASH.EXE-2.04$ make install
/OPT/RTEMS/BIN/i386-rtems-gcc --pipe -B../../../../../../../../pc586/lib/ -s
pecs

bsp_specs -qrtems -g -Wall -ansi -fasm    -mcpu=i586     -c -D__INSIDE_RTEMS
_BS
D_TCPIP_STACK__ -O4 -o o-optimize/ne2000.o
../../../../../../../../../rtems-4.5.
0/c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c: In function `ne_init_hardware':
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:447: warning: assignment from incompatible pointer type
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c: In function `ne_ioctl':
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:897: `SIOCGIFADDR' undeclared (first use in this function)
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:897: (Each undeclared identifier is reported only once
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:897: for each function it appears in.)
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:898: `SIOCSIFADDR' undeclared (first use in this function)
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:902: `SIOCSIFFLAGS' undeclared (first use in this function)
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:922: warning: implicit declaration of function `_IO'
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:922: case label does not reduce to an integer constant
../../../../../../../../../rtems-4.5.0/c/src/lib/libbsp/i386/pc386/ne2000/ne
2000
.c:899: warning: unreachable code at beginning of switch statement
make: *** [o-optimize/ne2000.o] Error 1
BASH.EXE-2.04$


The problem seems to be that   .../c/src/libnetworking/sys/sockio.h is not
being included, despite the fact that it is clearly included at the
beginning of ne2000.c

<snip>

#include <bsp.h>
#include <wd80x3.h>

#include <stdio.h>
#include <assert.h>

#include <rtems/error.h>
#include <rtems/rtems_bsdnet.h>

#include <sys/param.h>
#include <sys/mbuf.h>
#include <sys/socket.h>

#include <sys/sockio.h>            <----- Here it is..

#include <net/if.h>

#include <netinet/in.h>
#include <netinet/if_ether.h>

<snip>


I put a "#error GOT HERE" in the beginning of the
.../c/src/libnetworking/sys/sockio.h file, but it never came up during the
make, so I don't think it's being included.

Any more clues?

Thanks,

Harry Courtice




More information about the users mailing list