Network Builds
James Yates
j.yates at quartzuk.com
Mon Mar 29 08:38:08 UTC 2004
Hi Chris,
I think I had made a mistake when integrating it into my BSP. Have rectified the problem however
now when I link i get the build warnings:
test.c:43: warning: implicit declaration of function `getsockopt'
test.c: In function `transmitUdp':
test.c:82: warning: implicit declaration of function `socket'
test.c:90: warning: implicit declaration of function `bind'
test.c:96: warning: implicit declaration of function `sendto'
test.c:103: warning: implicit declaration of function `setsockopt'
test.c: In function `transmitTcp':
test.c:160: warning: implicit declaration of function `connect'
test.c: In function `echoTask':
test.c:211: warning: implicit declaration of function `send'
test.c: In function `echoServer':
test.c:248: warning: implicit declaration of function `listen'
test.c:255: warning: implicit declaration of function `accept'
I have included <rtems/rtems_bsdnet.h> <netinet/in.h> <sys/types.h>
<sys/socket.h>.
Any ideas? Many thanks for all your help.
James
-----Original Message-----
From: Chris Johns [mailto:chrisj at rtems.org]
Sent: 26 March 2004 21:17
To: James Yates
Cc: rtems-users at rtems.com; Joel Sherrill
Subject: Re: Network Builds
James Yates wrote:
>
> Then I build my application but get the build error:
>
> networkconfig.h:80: `BSP_cs8900_attach' undeclared here (not in a function)
> networkconfig.h:80: initializer element is not constant
> networkconfig.h:80: (near initialization for `netdriver_config.attach')
>
> I have checked the temporary build tree that was created but in sh-rtems/c/fu0018/lib
> /libbsp/sh/fu0018/network there is just the Makefile and not the files cs8900.c
> and cs8900.h that I would have expected to be present.
>
> Has anyone got any ideas what I might have done wrong?
>
Did you take a copy of:
rtems/c/src/libchip/network/cs8900.c.bsp
and add to your BSP ?
This is an example of what you need to add in your BSP to configure the
driver.
More information about the users
mailing list