[BusyBox 0001145]: Can't compile busybox 1.3.1 with uClib

bugs at busybox.net bugs at busybox.net
Mon Jan 8 15:34:23 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1145 
====================================================================== 
Reported By:                Arthens
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1145
Category:                   Documentation
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             01-08-2007 07:30 PST
Last Modified:              01-08-2007 07:34 PST
====================================================================== 
Summary:                    Can't compile busybox 1.3.1 with uClib
Description: 
I have to say that I don't know if is a busybox bug or a uClibc bug, for
sure you can establish it better then me.

I'm trying to compile busybox 1.3.1 using uClibc like lib.
I download and installed the pre-compiled uClibc development system for
i386 from
http://www.uclibc.org/downloads/root_fs_i386.ext2.bz2

I copyed the busybox folder to /home/default of the dev system, chroot
here and typed

[root at topolinux busybox]# make defconfig
...cut...
[root at topolinux busybox]# make
...cut...
  CC      miscutils/readahead.o
miscutils/readahead.c: In function `readahead_main':
miscutils/readahead.c:26: warning: implicit declaration of function
`readahead'
make[1]: *** [miscutils/readahead.o] Error 1
make: *** [miscutils] Error 2
[root at topolinux busybox]#




then i tried

[root at topolinux busybox]# make allnoconfig
...cut...
[root at topolinux busybox]# make
...cut...
 CC      libpwdgrp/pwd_grp.o
libpwdgrp/pwd_grp.c:108: warning: "struct spwd" declared inside parameter
list
libpwdgrp/pwd_grp.c:108: warning: its scope is only this definition or
declaration, which is probably not what you want
libpwdgrp/pwd_grp.c:149: warning: "struct spwd" declared inside parameter
list
libpwdgrp/pwd_grp.c: In function `fgetspent':
libpwdgrp/pwd_grp.c:153: error: storage size of 'resultbuf' isn't known
libpwdgrp/pwd_grp.c:153: warning: unused variable `resultbuf'
In file included from libpwdgrp/pwd_grp.c:216:
libpwdgrp/pwd_grp_internal.c: In function `getspnam_R':
libpwdgrp/pwd_grp_internal.c:41: error: dereferencing pointer to
incomplete typelibpwdgrp/pwd_grp.c: In function `getspuid_r':
libpwdgrp/pwd_grp.c:271: warning: implicit declaration of function
`getspnam_r'
libpwdgrp/pwd_grp.c: In function `getspuid':
libpwdgrp/pwd_grp.c:283: error: storage size of 'resultbuf' isn't known
libpwdgrp/pwd_grp.c:283: warning: unused variable `resultbuf'
libpwdgrp/pwd_grp.c: In function `getspnam':
libpwdgrp/pwd_grp.c:313: error: storage size of 'resultbuf' isn't known
libpwdgrp/pwd_grp.c:313: warning: unused variable `resultbuf'
libpwdgrp/pwd_grp.c: In function `getspent':
libpwdgrp/pwd_grp.c:515: error: storage size of 'spwd' isn't known
libpwdgrp/pwd_grp.c:515: warning: unused variable `spwd'
libpwdgrp/pwd_grp.c: In function `sgetspent':
libpwdgrp/pwd_grp.c:525: error: storage size of 'spwd' isn't known
libpwdgrp/pwd_grp.c:525: warning: unused variable `spwd'
libpwdgrp/pwd_grp.c: At top level:
libpwdgrp/pwd_grp.c:647: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:647: error: initializer element is not constant
libpwdgrp/pwd_grp.c:647: error: (near initialization for `_sp_off[0]')
libpwdgrp/pwd_grp.c:648: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:648: error: initializer element is not constant
libpwdgrp/pwd_grp.c:648: error: (near initialization for `_sp_off[1]')
libpwdgrp/pwd_grp.c:649: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:649: error: initializer element is not constant
libpwdgrp/pwd_grp.c:649: error: (near initialization for `_sp_off[2]')
libpwdgrp/pwd_grp.c:650: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:650: error: initializer element is not constant
libpwdgrp/pwd_grp.c:650: error: (near initialization for `_sp_off[3]')
libpwdgrp/pwd_grp.c:651: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:651: error: initializer element is not constant
libpwdgrp/pwd_grp.c:651: error: (near initialization for `_sp_off[4]')
libpwdgrp/pwd_grp.c:652: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:652: error: initializer element is not constant
libpwdgrp/pwd_grp.c:652: error: (near initialization for `_sp_off[5]')
libpwdgrp/pwd_grp.c: In function `putspent':
libpwdgrp/pwd_grp.c:664: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:665: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:665: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:680: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:680: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c: At top level:
libpwdgrp/pwd_grp.c:850: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:850: error: initializer element is not constant
libpwdgrp/pwd_grp.c:850: error: (near initialization for `sp_off[0]')
libpwdgrp/pwd_grp.c:851: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:851: error: initializer element is not constant
libpwdgrp/pwd_grp.c:851: error: (near initialization for `sp_off[1]')
libpwdgrp/pwd_grp.c:852: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:852: error: initializer element is not constant
libpwdgrp/pwd_grp.c:852: error: (near initialization for `sp_off[2]')
libpwdgrp/pwd_grp.c:853: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:853: error: initializer element is not constant
libpwdgrp/pwd_grp.c:853: error: (near initialization for `sp_off[3]')
libpwdgrp/pwd_grp.c:854: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:854: error: initializer element is not constant
libpwdgrp/pwd_grp.c:854: error: (near initialization for `sp_off[4]')
libpwdgrp/pwd_grp.c:855: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:855: error: initializer element is not constant
libpwdgrp/pwd_grp.c:855: error: (near initialization for `sp_off[5]')
libpwdgrp/pwd_grp.c:856: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:856: error: initializer element is not constant
libpwdgrp/pwd_grp.c:856: error: (near initialization for `sp_off[6]')
libpwdgrp/pwd_grp.c:857: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:857: error: initializer element is not constant
libpwdgrp/pwd_grp.c:857: error: (near initialization for `sp_off[7]')
libpwdgrp/pwd_grp.c:858: error: dereferencing pointer to incomplete type
libpwdgrp/pwd_grp.c:859: error: initializer element is not constant
libpwdgrp/pwd_grp.c:859: error: (near initialization for `sp_off[8]')
libpwdgrp/pwd_grp.c: In function `getspuid':
libpwdgrp/pwd_grp.c:283: error: storage size of `resultbuf' isn't known
libpwdgrp/pwd_grp.c: In function `getspnam':
libpwdgrp/pwd_grp.c:313: error: storage size of `resultbuf' isn't known
libpwdgrp/pwd_grp.c: In function `sgetspent':
libpwdgrp/pwd_grp.c:525: error: storage size of `spwd' isn't known
libpwdgrp/pwd_grp.c: In function `getspent':
libpwdgrp/pwd_grp.c:515: error: storage size of `spwd' isn't known
libpwdgrp/pwd_grp.c: In function `fgetspent':
libpwdgrp/pwd_grp.c:153: error: storage size of `resultbuf' isn't known
make[1]: *** [libpwdgrp/pwd_grp.o] Error 1
make: *** [libpwdgrp] Error 2




After that I tried to compile busybox 1.3 with the same dev system and
both configuration (defconfig and allnoconfig) and I get the same errors.
I tried busybox 1.2.2.1 and all works fine.

It's a busybox 1.3.x bug or is busybox 1.3.x incompatible with the uClibc
dev system?


I can assure you that I'm using the standard comfiguration for both the
dev system and busybox, I didn't change anything.
====================================================================== 

---------------------------------------------------------------------- 
 Arthens - 01-08-07 07:34  
---------------------------------------------------------------------- 
busybox 1.3 with allnoconfig works, sorry for the false report.

Resume:
busybox 1.3.1 deconfig: not working
busybox 1.3.1 allnoconfig: not working
busybox 1.3 defconfig: not working
busybox 1.3 allnoconfig: working
busybox 1.2.2.1 defconfig: working
busybox 1.2.2.1 allnoconfig: working

Sorry again for the error. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-08-07 07:30  Arthens        New Issue                                    
01-08-07 07:30  Arthens        Status                   new => assigned     
01-08-07 07:30  Arthens        Assigned To               => BusyBox         
01-08-07 07:34  Arthens        Note Added: 0001971                          
======================================================================




More information about the busybox-cvs mailing list