[Toybox] _GNU_SOURCE definition problem
Georgi Chorbadzhiyski
gf at unixsol.org
Thu Mar 8 05:04:25 PST 2012
Around 03/08/2012 02:59 PM, Rob Landley scribbled:
> I applied the cleanups I was talking about to the repository at the same
> time I sent the above message. Did my cleanups (based on posix) do what
> you needed?
Not really.
gf at gf:~/git/toybox$ make CC=musl-gcc
scripts/make.sh
Extract configuration information from toys/*.c files...
Generate headers from toys/*.c...
Extract help text from Config.in.
Make generated/config.h from .config.
Compile toybox...
lib/lib.c: In function ‘find_in_path’:
lib/lib.c:393:3: warning: implicit declaration of function ‘index’ [-Wimplicit-function-declaration]
lib/lib.c:393:23: warning: incompatible implicit declaration of built-in function ‘index’ [enabled by default]
lib/lib.c: In function ‘sig_to_num’:
lib/lib.c:877:3: warning: implicit declaration of function ‘strncasecmp’ [-Wimplicit-function-declaration]
lib/lib.c:881:3: warning: implicit declaration of function ‘strcasecmp’ [-Wimplicit-function-declaration]
toys/chroot.c: In function ‘chroot_main’:
toys/chroot.c:25:2: warning: implicit declaration of function ‘chroot’ [-Wimplicit-function-declaration]
toys/env.c: In function ‘env_main’:
toys/env.c:31:5: warning: implicit declaration of function ‘clearenv’ [-Wimplicit-function-declaration]
toys/hostname.c: In function ‘hostname_main’:
toys/hostname.c:26:13: warning: implicit declaration of function ‘sethostname’ [-Wimplicit-function-declaration]
toys/id.c: In function ‘id_main’:
toys/id.c:133:2: warning: implicit declaration of function ‘getgrouplist’ [-Wimplicit-function-declaration]
toys/id.c:60:8: warning: variable ‘gid’ set but not used [-Wunused-but-set-variable]
toys/ls.c: In function ‘do_ls’:
toys/ls.c:162:17: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration]
toys/ls.c:162:17: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration]
toys/mdev.c: In function ‘make_device’:
toys/mdev.c:98:9: warning: implicit declaration of function ‘strndupa’ [-Wimplicit-function-declaration]
toys/mdev.c:98:23: warning: initialization makes pointer from integer without a cast [enabled by default]
toys/mdev.c:128:10: warning: passing argument 1 of ‘getpwnam’ makes pointer from integer without a cast [enabled by default]
/usr/local/musl/include/pwd.h:34:16: note: expected ‘const char *’ but argument is of type ‘int’
toys/mdev.c:137:10: warning: passing argument 1 of ‘getgrnam’ makes pointer from integer without a cast [enabled by default]
/usr/local/musl/include/grp.h:22:16: note: expected ‘const char *’ but argument is of type ‘int’
toys/mdev.c:168:2: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration]
toys/mke2fs.c: In function ‘mke2fs_main’:
toys/mke2fs.c:444:35: warning: variable ‘dtiblk’ set but not used [-Wunused-but-set-variable]
toys/mknod.c: In function ‘mknod_main’:
toys/mknod.c:48:2: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration]
toys/mkswap.c: In function ‘mkswap_main’:
toys/mkswap.c:24:2: warning: implicit declaration of function ‘getpagesize’ [-Wimplicit-function-declaration]
toys/nice.c: In function ‘nice_main’:
toys/nice.c:38:2: warning: implicit declaration of function ‘getpriority’ [-Wimplicit-function-declaration]
toys/nice.c:38:18: error: ‘PRIO_PROCESS’ undeclared (first use in this function)
toys/nice.c:38:18: note: each undeclared identifier is reported only once for each function it appears in
toys/oneit.c: In function ‘oneit_main’:
toys/oneit.c:55:3: warning: implicit declaration of function ‘vfork’ [-Wimplicit-function-declaration]
toys/setsid.c: In function ‘setsid_main’:
toys/setsid.c:27:3: warning: implicit declaration of function ‘vfork’ [-Wimplicit-function-declaration]
toys/sleep.c: In function ‘sleep_main’:
toys/sleep.c:52:3: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
toys/sort.c: In function ‘sort_main’:
toys/sort.c:362:21: warning: implicit declaration of function ‘index’ [-Wimplicit-function-declaration]
toys/sort.c:362:29: warning: incompatible implicit declaration of built-in function ‘index’ [enabled by default]
toys/toysh.c: In function ‘run_pipeline’:
toys/toysh.c:304:3: warning: implicit declaration of function ‘vfork’ [-Wimplicit-function-declaration]
toys/which.c: In function ‘which_in_path’:
toys/which.c:33:2: warning: implicit declaration of function ‘index’ [-Wimplicit-function-declaration]
toys/which.c:33:6: warning: incompatible implicit declaration of built-in function ‘index’ [enabled by default]
make: *** [toybox] Error 1
--
Georgi Chorbadzhiyski
http://georgi.unixsol.org/
1331211865.0
More information about the Toybox
mailing list