busybox compile error form ARM core???

yangm aloonling at 126.com
Tue May 30 06:20:04 UTC 2006


when complie busybox for ARM platform by make install ,some errors 
printed as below:

/yangm/busybox-1.00/networking/networking.a(inetd.o): In function 
`inetd_main':
inetd.o(.text+0xdd4): undefined reference to `daemon'
/yangm/busybox-1.00/networking/networking.a(telnetd.o): In function 
`telnetd_main':
telnetd.o(.text+0x65c): undefined reference to `daemon'
/yangm/busybox-1.00/networking/udhcp/udhcp.a(common.o): In function 
`background':
common.o(.text+0x30): undefined reference to `daemon'
/yangm/busybox-1.00/sysklogd/sysklogd.a(klogd.o): In function `klogd_main':
klogd.o(.text+0x2d0): undefined reference to `daemon'
/yangm/busybox-1.00/sysklogd/sysklogd.a(syslogd.o): In function 
`syslogd_main':
syslogd.o(.text+0x9f4): undefined reference to `daemon'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1
[root at yangm-vmware busybox-1.00]#

list below is my menuconfig:
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ [*] Build BusyBox as a static binary (no shared libs) │ │
│ │ [*] Build with Large File Support (for accessing files > 2 GB) │ │
│ │ [*] Do you want to build BusyBox with a Cross Compiler? │ │
│ │ (/bin/arm-elf-gcc/bin/arm-elf-) Cross Compiler prefix │ │
│ │ (-Dfork=vfork ) Any extra CFLAGS options for the compiler?



busybox-request at busybox.net 写道:
> Send busybox mailing list submissions to
> 	busybox at busybox.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://busybox.net/cgi-bin/mailman/listinfo/busybox
> or, via email, send a message with subject or body 'help' to
> 	busybox-request at busybox.net
>
> You can reach the person managing the list at
> 	busybox-owner at busybox.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of busybox digest..."
>
>
> Today's Topics:
>
>    1. Re: Strangeness in hdparm.c? (Tito)
>    2. BusyBox for ARM platform? (Albert Torras)
>    3. Re: BusyBox for ARM platform? (Yan Seiner)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 29 May 2006 16:01:34 +0200
> From: Tito <farmatito at tiscali.it>
> Subject: Re: Strangeness in hdparm.c?
> To: busybox at busybox.net
> Message-ID: <200605291601.34258.farmatito at tiscali.it>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> On Monday 29 May 2006 07:48, Rob Landley wrote:
>   
>> The function identify_from_stdin() reads 1280 bytes, and then processes 1600 
>> bytes.  Huh?
>>
>> Rob
>>     
> Latest hdparm 6.6 does this:
>
> static int identify_from_stdin (void)
> {
> 	unsigned short sbuf[800];
> 	unsigned char  buf[1600], *b = (unsigned char *)buf;
> 	int i, count;
>
> 	// skip leading cruft
> 	while (1 == read(0, buf, 1) && (*buf < '0' || *buf > '9') && (*buf < 'a' || *buf > 'f'))
> 		while (1 == read(0, buf, 1) && *buf != '\n');
>
> 	count = read(0, buf+1, 1279);
> 	if (count != 1279) {
> 		fprintf(stderr, "read(1279 bytes) failed (rc=%d)", count);
> 		perror("");
> 		exit(errno);
> 	}
> 	for (i = 0; count >= 4; ++i) {
> 		sbuf[i] = (fromhex(b[0]) << 12) | (fromhex(b[1]) << 8) | (fromhex(b[2]) << 4) | fromhex(b[3]);
> 		__le16_to_cpus((__u16 *)(&sbuf[i]));
> 		b += 5;
> 		count -= 5;
> 	}
> 	identify(sbuf);
> 	return 0;
> }
>
> Should we busyboxify and sync?
>
> Ciao, 
> Tito
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 29 May 2006 19:03:54 +0200
> From: "Albert Torras" <azzazzel82 at gmail.com>
> Subject: BusyBox for ARM platform?
> To: busybox at busybox.net
> Message-ID:
> 	<90011ef20605291003l6290ba61u15b59a63992c783 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I am working with an ARM platform embedded CPU, and i need some of the
> busybox utilities...
>
> Has anyone ever cross-compiled it for ARM with success?
>
> In that case send some help please. Thanks a lot.
>
> Albert
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://busybox.net/lists/busybox/attachments/20060529/8a647dee/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Mon, 29 May 2006 10:17:13 -0700
> From: Yan Seiner <yan at seiner.com>
> Subject: Re: BusyBox for ARM platform?
> To: Albert Torras <azzazzel82 at gmail.com>
> Cc: busybox at busybox.net
> Message-ID: <447B2C99.6080303 at seiner.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Albert Torras wrote:
>
>   
>> Hi,
>>
>> I am working with an ARM platform embedded CPU, and i need some of the 
>> busybox utilities...
>>
>> Has anyone ever cross-compiled it for ARM with success?
>>     
>
> Yes, all the time.
>
>   
>> In that case send some help please. Thanks a lot.
>>     
>
>
> What problems are you running into?  It's pretty much just a make once 
> the toolchain is set up.
>
> --Yan
>
>
>
> ------------------------------
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
> End of busybox Digest, Vol 10, Issue 120
> ****************************************
>
>
>   





More information about the busybox mailing list