All of lore.kernel.org
 help / color / mirror / Atom feed
From: qq <120368262@qq.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] net/eth.c drivers/net/rtl8019.c eth_xxx function name dunplication
Date: Tue, 4 Jan 2011 15:55:06 +0800	[thread overview]
Message-ID: <BA88111AC43448F28207F9912720F4A9@MrGates> (raw)

Hello,everybody,in RedHat 9.0,i compiled u-boot v2010.12-rc3 with 
arm-linux-tools-20070808
On link stage,print some errors:

... ... ... ... -lgcc -Map u-boot.map -o u-boot
net/libnet.o: In function `eth_halt':
/home/code/uboot_v2010.12-rc3/net/eth.c:375: multiple definition of 
`eth_halt'
drivers/net/libnet.o:/home/code/uboot_v2010.12-rc3/drivers/net/rtl8019.c:44: 
first defined here
/usr/local/bin/arm-linux-ld.real: Warning: size of symbol `eth_halt' changed 
from 16 in drivers/net/libnet.o to 52 in net/libnet.o
net/libnet.o: In function `eth_rx':
/home/code/uboot_v2010.12-rc3/net/eth.c:393: multiple definition of `eth_rx'
drivers/net/libnet.o:/home/code/uboot_v2010.12-rc3/drivers/net/rtl8019.c:44: 
first defined here
/usr/local/bin/arm-linux-ld.real: Warning: size of symbol `eth_rx' changed 
from 132 in drivers/net/libnet.o to 48 in net/libnet.o
net/libnet.o: In function `eth_init':
/home/code/uboot_v2010.12-rc3/net/eth.c:335: multiple definition of 
`eth_init'
drivers/net/libnet.o:/home/code/uboot_v2010.12-rc3/drivers/net/rtl8019.c:93: 
first defined here
/usr/local/bin/arm-linux-ld.real: Warning: size of symbol `eth_init' changed 
from 236 in drivers/net/libnet.o to 208 in net/libnet.o
net/libnet.o: In function `eth_send':
/home/code/uboot_v2010.12-rc3/net/eth.c:385: multiple definition of 
`eth_send'
drivers/net/libnet.o:/home/code/uboot_v2010.12-rc3/drivers/net/rtl8019.c:235: 
first defined here
/usr/local/bin/arm-linux-ld.real: Warning: size of symbol `eth_send' changed 
from 192 in drivers/net/libnet.o to 56 in net/libnet.o
/usr/local/bin/arm-linux-ld.real: u-boot: warning: allocated section `.bss' 
not in segment
common/libcommon.o:(.data+0x764): undefined reference to `environment'
make: *** [u-boot] Error 139

These words show me that net/eth.c has "eth_send" and drivers/net/rtl8019.c 
also has "eth_send" function as the same name.
My board use RTL8019AS ethernet controller,s3c44b0 CPU.
i couldn`t figure out what is wrong with the code and how to fix it,Thanks a 
lot for any suggestion
MrGates

             reply	other threads:[~2011-01-04  7:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-04  7:55 qq [this message]
2011-01-04 10:20 ` [U-Boot] net/eth.c drivers/net/rtl8019.c eth_xxx function name dunplication Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BA88111AC43448F28207F9912720F4A9@MrGates \
    --to=120368262@qq.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.