[BusyBox 0000530]: Build of telnet.c fails with older compilers

bugs at busybox.net bugs at busybox.net
Sat Dec 17 22:23:17 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=530 
====================================================================== 
Reported By:                swsnyder
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   530
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             11-04-2005 10:09 PST
Last Modified:              12-17-2005 14:23 PST
====================================================================== 
Summary:                    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.)

====================================================================== 

---------------------------------------------------------------------- 
 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                          
======================================================================




More information about the busybox-cvs mailing list