SHADOW problem and patches

Marc Leeman marc.leeman at gmail.com
Thu Dec 28 09:19:54 UTC 2006


Some files need shadow_.h (without having
ENABLE_FEATURE_SHADOWPASSWDS).

There are two patches:

one just enables the inclusion of shadow_.h globally, the other one
enables it for the required files:

[mleeman at neo busybox-1.3.1]$ make ARCH=ppc
CROSS_COMPILE=powerpc-linux-uclibc-
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  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 type
libpwdgrp/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



-- 
  Marc Leeman
  R&D Firmware Engineer
 
  Barco Security and Monitoring Division
  Noordlaan 5, Industriezone, B-8520 Kuurne (BE)
  Tel. +32 56 368 428
  http://www.barco.com/controlrooms/
  mailto:marc.leeman at barco.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shadowinclude.diff
Type: text/x-diff
Size: 485 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20061228/5094e7f2/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pwd.diff
Type: text/x-diff
Size: 1115 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20061228/5094e7f2/attachment-0005.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20061228/5094e7f2/attachment-0002.pgp 


More information about the busybox mailing list