[BusyBox 0003024]: Mistake of compilation

bugs at busybox.net bugs at busybox.net
Tue Apr 22 14:01:25 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=3024 
====================================================================== 
Reported By:                lamer
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   3024
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             04-22-2008 01:15 PDT
Last Modified:              04-22-2008 07:01 PDT
====================================================================== 
Summary:                    Mistake of compilation
Description: 
Mistake of compilation
====================================================================== 

---------------------------------------------------------------------- 
 vda - 04-22-08 02:05  
---------------------------------------------------------------------- 
Either install selinux headers, or unset CONFIG_SELINUX in .config. 

---------------------------------------------------------------------- 
 lamer - 04-22-08 05:08  
---------------------------------------------------------------------- 
Thanks, I stupe, sorry ...

test:/usr/src/busybox-1.10.1# yes|apt-get install libselinux1-dev >
/dev/null
test:/usr/src/busybox-1.10.1# make clean
  CLEAN   applets
  CLEAN   .tmp_versions
  CLEAN   busybox_unstripped.out .kernelrelease
test:/usr/src/busybox-1.10.1# make > /dev/null
cc1: warnings being treated as errors
coreutils/who.c: In function 'who_main':
coreutils/who.c:68: warning: passing argument 1 of 'ctime' from
incompatible pointer type
make[1]: *** [coreutils/who.o] Error 1
make: *** [coreutils] Error 2
test:/usr/src/busybox-1.10.1# cat .config|sed "s/WHO=y/WHO=n/g;" >
.config.tmp;mv .config.tmp .config
test:/usr/src/busybox-1.10.1# make clean > /dev/null
test:/usr/src/busybox-1.10.1# make > /dev/null
shell/hush.c:90:2: error: #warning On NOMMU, hush command substitution is
dangerous.
shell/hush.c:91:2: error: #warning Dont use it for commands which produce
lots of output.
shell/hush.c:92:2: error: #warning For more info see shell/hush.c,
generate_stream_from_list().
make[1]: *** [shell/hush.o] Error 1
make: *** [shell] Error 2
test:/usr/src/busybox-1.10.1# make menuconfig
scripts/kconfig/mconf Config.in
#
# using defaults found in .config
#
....

*** End of busybox configuration.
*** Execute 'make' to build busybox or try 'make help'.

test:/usr/src/busybox-1.10.1# grep -i hush .config
# CONFIG_FEATURE_SH_IS_HUSH is not set
# CONFIG_HUSH is not set
# CONFIG_HUSH_HELP is not set
# CONFIG_HUSH_INTERACTIVE is not set
# CONFIG_HUSH_JOB is not set
# CONFIG_HUSH_TICK is not set
# CONFIG_HUSH_IF is not set
# CONFIG_HUSH_LOOPS is not set
test:/usr/src/busybox-1.10.1# make clean > /dev/null
test:/usr/src/busybox-1.10.1# make | tail -n 13
make: *** [busybox_unstripped] Error 1
networking/lib.a(inetd.o): In function `reread_config_file':
/usr/src/busybox-1.10.1/networking/inetd.c:969: warning: Using
'getrpcbyname' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libpam.a(pam_dynamic.o):
In function `_pam_dlerror':
(.text+0x1): undefined reference to `dlerror'
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libpam.a(pam_dynamic.o):
In function `_pam_dlclose':
(.text+0x11): undefined reference to `dlclose'
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libpam.a(pam_dynamic.o):
In function `_pam_dlsym':
(.text+0x21): undefined reference to `dlsym'
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib64/libpam.a(pam_dynamic.o):
In function `_pam_dlopen':
(.text+0x36): undefined reference to `dlopen'
shell/lib.a(ash.o): In function `forkshell':
/usr/src/busybox-1.10.1/shell/ash.c:4589: undefined reference to
`BUG_fork_is_unavailable_on_nommu'
collect2: ld returned 1 exit status 

---------------------------------------------------------------------- 
 vda - 04-22-08 07:01  
---------------------------------------------------------------------- 
cc1: warnings being treated as errors

if you don't want this, switch off CONFIG_WERROR=y.

coreutils/who.c: In function 'who_main':
coreutils/who.c:68: warning: passing argument 1 of 'ctime' from
incompatible pointer type

Your libc headers are broken. They should contain these defs:

char *ctime(const time_t *timep);
struct timeval {
       time_t         tv_sec;
       suseconds_t    tv_usec;
};

but obviously they have some problem there,
and thus gcc doesn't like "ctime(&(ut->ut_tv.tv_sec))" construct. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-22-08 01:15  lamer          New Issue                                    
04-22-08 01:15  lamer          Status                   new => assigned     
04-22-08 01:15  lamer          Assigned To               => BusyBox         
04-22-08 02:05  vda            Status                   assigned => closed  
04-22-08 02:05  vda            Note Added: 0006864                          
04-22-08 02:05  vda            Resolution               open => no change
required
04-22-08 05:08  lamer          Status                   closed => feedback  
04-22-08 05:08  lamer          Resolution               no change required =>
reopened
04-22-08 05:08  lamer          Note Added: 0006894                          
04-22-08 07:01  vda            Note Added: 0006924                          
======================================================================




More information about the busybox-cvs mailing list