BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000530 [BusyBox] Other minor always 11-04-05 10:09 12-17-05 14:23
Reporter swsnyder View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000530: Build of telnet.c fails with older compilers
Description First, I should note that this is with version busybox-1.1.0-pre1, downloaded from the Busybox website. (This version does not appears in the version choices offered above.)

The problem shown below is the result of defining "unsigned long flags" in the middle of the function. Older GCC compilers always want the data declarations to precede any code.

arm-elf-gcc -I/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/include -I/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/include -I/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/libbb -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -mtune=arm7tdmi -O2 -c -o /opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/networking/telnet.o /opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/networking/telnet.c
/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/networking/telnet.c: In function `telnet_main':
/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/networking/telnet.c:648: parse error before `unsigned'
/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/networking/telnet.c:649: `flags' undeclared (first use in this function)
/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/networking/telnet.c:649: (Each undeclared identifier is reported only once
/opt/armutils_2.5.85.0/build_arm/busybox-1.1.0-pre1/networking/telnet.c:649: for each function it appears in.)
Additional Information # arm-elf-gcc -v
Reading specs from /opt/armutils_2.5.85.0/toolchain/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)

Using uClibc v0.9.26.

Busybox build was invoked like this:

  make CFLAGS_EXTRA="-mtune=arm7tdmi -O2" LDFLAGS="-Wl,-elf2flt"

The attached patch fixes the problem.
Attached Files  busybox-1.1.0.pre1-telnet.patch [^] (655 bytes) 11-04-05 10:09

- Relationships

- Notes
(0000794)
landley
12-17-05 14:23

svn 12553
 

- Issue History
Date Modified Username Field Change
11-04-05 10:09 swsnyder New Issue
11-04-05 10:09 swsnyder Status new => assigned
11-04-05 10:09 swsnyder Assigned To  => BusyBox
11-04-05 10:09 swsnyder File Added: busybox-1.1.0.pre1-telnet.patch
11-08-05 06:42 dajomas Issue Monitored: dajomas
12-17-05 14:23 landley Status assigned => closed
12-17-05 14:23 landley Note Added: 0000794
12-17-05 14:23 landley Resolution open => fixed
12-17-05 14:23 landley Fixed in Version  => svn


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker