public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] "undefined reference"error in net.c
@ 2003-10-23  2:30 wang cheng
  2003-10-23 13:41 ` Detlev Zundel
  0 siblings, 1 reply; 2+ messages in thread
From: wang cheng @ 2003-10-23  2:30 UTC (permalink / raw)
  To: u-boot

dear all,
    When I follow the steps to port u-boot to my board according to 
README  ,error appeared in "make".

   I didn't change anything about net ,but there are many "undefined 
reference"error in net.c ,displayed as below: why??

-------->
..................
tart-group board/windriver/libwindriver.a cpu/mpc8xx/libmpc8xx.a 
lib_ppc/libppc.a fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a 
net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a 
drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a 
post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a  --end-
group \
                -Map u-boot.map -o u-boot
net/libnet.a(net.o): In function `ArpRequest':
/home/wang/u-boot-0.4.8/net/net.c:185: undefined reference to `eth_send'
net/libnet.a(net.o): In function `NetLoop':
/home/wang/u-boot-0.4.8/net/net.c:257: undefined reference to `eth_halt'
/home/wang/u-boot-0.4.8/net/net.c:258: undefined reference to `eth_init'
/home/wang/u-boot-0.4.8/net/net.c:381: undefined reference to `eth_rx'
/home/wang/u-boot-0.4.8/net/net.c:387: undefined reference to `eth_halt'
/home/wang/u-boot-0.4.8/net/net.c:424: undefined reference to `eth_halt'
net/libnet.a(net.o): In function `NetSendPacket':
/home/wang/u-boot-0.4.8/net/net.c:507: undefined reference to `eth_send'
net/libnet.a(net.o): In function `NetSendUDPPacket':
/home/wang/u-boot-0.4.8/net/net.c:552: undefined reference to `eth_send'
net/libnet.a(net.o): In function `NetReceive':
/home/wang/u-boot-0.4.8/net/net.c:726: undefined reference to `eth_send'
/home/wang/u-boot-0.4.8/net/net.c:752: undefined reference to `eth_send'
make: *** [u-boot] Error 1
    
thanks !
    

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] "undefined reference"error in net.c
  2003-10-23  2:30 [U-Boot-Users] "undefined reference"error in net.c wang cheng
@ 2003-10-23 13:41 ` Detlev Zundel
  0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2003-10-23 13:41 UTC (permalink / raw)
  To: u-boot

Hello Wang,

> dear all,
>     When I follow the steps to port u-boot to my board according to 
> README  ,error appeared in "make".
>
>    I didn't change anything about net ,but there are many "undefined 
> reference"error in net.c ,displayed as below: why??
>
> -------->
> ..................
> tart-group board/windriver/libwindriver.a cpu/mpc8xx/libmpc8xx.a 
> lib_ppc/libppc.a fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a 
> net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a 
> drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a 
> post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a  --end-
> group \
>                 -Map u-boot.map -o u-boot
> net/libnet.a(net.o): In function `ArpRequest':
> /home/wang/u-boot-0.4.8/net/net.c:185: undefined reference to `eth_send'
> net/libnet.a(net.o): In function `NetLoop':
> /home/wang/u-boot-0.4.8/net/net.c:257: undefined reference to `eth_halt'
> /home/wang/u-boot-0.4.8/net/net.c:258: undefined reference to `eth_init'
> /home/wang/u-boot-0.4.8/net/net.c:381: undefined reference to `eth_rx'
> /home/wang/u-boot-0.4.8/net/net.c:387: undefined reference to `eth_halt'
> /home/wang/u-boot-0.4.8/net/net.c:424: undefined reference to `eth_halt'
> net/libnet.a(net.o): In function `NetSendPacket':
> /home/wang/u-boot-0.4.8/net/net.c:507: undefined reference to `eth_send'
> net/libnet.a(net.o): In function `NetSendUDPPacket':
> /home/wang/u-boot-0.4.8/net/net.c:552: undefined reference to `eth_send'
> net/libnet.a(net.o): In function `NetReceive':
> /home/wang/u-boot-0.4.8/net/net.c:726: undefined reference to `eth_send'
> /home/wang/u-boot-0.4.8/net/net.c:752: undefined reference to `eth_send'
> make: *** [u-boot] Error 1

The errors appear because the functions are not defined - but I guess
you know that.  So why not share some more information about what kind
of board you are compiling for (like the configuration name) so we can
actually try to reproduce the problem and help you in a more
meaningful way?

Cheers
  Detlev

-- 
five monkeys, two typewriters, ten minutes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-23 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23  2:30 [U-Boot-Users] "undefined reference"error in net.c wang cheng
2003-10-23 13:41 ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox