RE: Undefined refence error

From: Wright, David <hidden>
Date: 2002-03-07 15:29:16

Are you compiling with -O2 optimization?  If you compile without
optimization, those missing functions won't be inlined and will
show up as undefined references.

  -- David Wright, Infiniswitch Corp.


-----Original Message-----
From: satya kumar [mailto:i_satya@yahoo.com]
Sent: Thursday, March 07, 2002 2:02 AM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Undefined refence error



Hai All,
My First mail to this group.Not a master , only a
newbie ,so please bear with me.
I have successfully compiled the binutils, gcc for
powerpc. Now I went for compiling glibc, which is
giving some problems, so I left it and proceeded with
compiling the kernel.
Now it is giving following error message when I do
make zImage
mm/mm.o: In function `__free_pages_ok':
mm/mm.o(.text+0xdee4): undefined reference to
`__test_and_change_bit'
mm/mm.o(.text+0xdee4): relocation truncated to fit:
R_PPC_REL24 __test_and_change_bit
mm/mm.o: In function `rmqueue':
mm/mm.o(.text+0xe0f8): undefined reference to
`__change_bit'
mm/mm.o(.text+0xe0f8): relocation truncated to fit:
R_PPC_REL24 __change_bit
mm/mm.o(.text+0xe190): undefined reference to
`__change_bit'
mm/mm.o(.text+0xe190): relocation truncated to fit:
R_PPC_REL24 __change_bit
make: *** [vmlinux] Error 1


Please help me out.I am stuck. I am compiling it for a
MPC860 board. I have selected the machine type as MBX
during configuring/compiling kernel( Is it right).


Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help