Problem in compilling BusyBox

Thompson Harmon [US], Stanley W. Stanley.Harmon at sperry.ngc.com
Fri Jul 28 20:00:32 UTC 2006


>		 
> >		 Hello,
> >		I am building busyBox-1.2.0  with Uclibc 0.9.20.when i
do 'make' it gives the following errors
> >		 
> >		[root at localhost busybox-1.2.0]# make
> >		  CC applets/applets.o
> >		  CC applets/busybox.o
> >		  CC applets/version.o
> >		  AR cru applets/applets.a
> >		  CC libbb/messages.o
> >		  AR cru libbb/libbb.a
> >		  LINK busybox_unstripped
> >
/home/oie/Meenal/busybox-1.2.0/debianutils/debianutils.a(start_stop_daem
on.o)(.text.pid_is_exec+0x43): In function `pid_is_exec':
> >		: undefined reference to `__xstat'
> >
/home/oie/Meenal/busybox-1.2.0/debianutils/debianutils.a(start_stop_daem
on.o)(.text.pid_is_user+0x26): In function `pid_is_user':
> >		: undefined reference to `__xstat'
> >
/home/oie/Meenal/busybox-1.2.0/debianutils/debianutils.a(start_stop_daem
on.o)(.text.pid_is_cmd+0x35): In function `pid_is_cmd':
> >		: undefined reference to `_IO_getc'
> >
/home/oie/Meenal/busybox-1.2.0/debianutils/debianutils.a(start_stop_daem
on.o)(.text.pid_is_cmd+0x46): In function `pid_is_cmd':
> >		: undefined reference to `_IO_getc'
> >
/home/oie/Meenal/busybox-1.2.0/init/init.a(mesg.o)(.text.mesg_main+0x4a)
: In function `mesg_main':
> >		: undefined reference to `__xstat'
> >
/home/oie/Meenal/busybox-1.2.0/libbb/libbb.a(error_msg.o)(.text.bb_error
_msg+0x17): In function `bb_error_msg':
> >		: undefined reference to `_IO_putc'
> >
/home/oie/Meenal/busybox-1.2.0/libbb/libbb.a(error_msg_and_die.o)(.text.
bb_error_msg_and_die+0x17): In function `bb_error_msg_and_die':
> >		: undefined reference to `_IO_putc'
> >
/home/oie/Meenal/busybox-1.2.0/libbb/libbb.a(xstat.o)(.text..xstat+0xd):
In function `xstat':
> >		: undefined reference to `__xstat'
> >		collect2: ld returned 1 exit status
> >		make[1]: *** [busybox_unstripped] Error 1
> >		make: *** [_all] Error 2
> >		
> >		 
> >		i dont know what to do now. Please help me .
> >				 
> >				Regards,
> >		Meenal Gupta 
> >		 
> >				 
> >		Upgrade your email with thousands of emoticons for free
> >		
> >		
> >		<http://www.mailskinner.com/?grpid=35>
DISCLAIMER:
> >
------------------------------------------------------------------------
-----------------------------------------------
> >		
> >		The contents of this e-mail and any attachment(s) are
confidential and intended for the named recipient(s) only. 
> >		It shall not attach any liability on the originator or
HCL or its affiliates. Any views or opinions presented in 
> >		this email are solely those of the author and may not
necessarily reflect the opinions of HCL or its affiliates. 
> >		Any form of reproduction, dissemination, copying,
disclosure, modification, distribution and / or publication of 
> >		this message without the prior written consent of the
author of this e-mail is strictly prohibited. If you have 
> >		received this email in error please delete it and notify
the sender immediately. Before opening any mail and 
> >		attachments please check them for viruses and defect.
> >		
> >
------------------------------------------------------------------------
-----------------------------------------------
> >			
> >
>  	 
> 	Meenal,
> 	 
> 	   I believe you need to reconfigure your busybox build using
make menuconfig.  If you select "Busybox Settings" and then select
"Debugging Options", > you will find an option called "Disable obsolete
features removed before SUSv3?".  Make sure that this selection is
UNSELECTED ("[ ]").  If you build it > with this option unselected and
then build it again with this option selected, you will get the errors
listed above in your message.  (NOTE: I just had > this happen to me
today.).
> 	 
> 	Stan
						 
Meenal,

   Ok, I guess I have to get caught up on my research before I answer a
question about a problem seen earlier the same day.  In short, I was
only partially correct with me solution listed above.  In fact, my above
listed solution HIDES the problem.  It does not FIX it.  Rich is
correct.  Your toolchain is not correctly being presented to busybox.
In my system, the CROSS_COMPILE variable was NOT set.  Setting that
fixed part of my errors.

Stan





More information about the busybox mailing list