Hi, I'd like to build a toolchain for mips with nommu (using buildroot-2009.02 and uClibc-0.9.30). I get the following error:
[...] CC libc/stdio/tmpnam.o CC libc/stdio/tmpnam_r.o CC libc/stdio/popen.o libc/stdio/popen.c:45: error: 'fork' undeclared here (not in a function) libc/stdio/popen.c:45: warning: type defaults to 'int' in declaration of 'fork' libc/stdio/popen.c: In function 'popen': libc/stdio/popen.c:100: error: called object 'fork' is not a function [...] The problematic part in popen.c is: [...] /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ #include <sys/syscall.h> #if ! defined __NR_vfork # define vfork fork # define VFORK_LOCK ((void) 0) # define VFORK_UNLOCK ((void) 0) libc_hidden_proto(fork) #endif [...] I'm wondering why __NR_vfork is not defined... Can someone give me a punch into the right direction? The uClibc configuration is attached. Thanks, Michael
# # Automatically generated make config: don't edit # Version: 0.9.30 # Mon Mar 9 18:58:46 2009 # # TARGET_alpha is not set # TARGET_arm is not set # TARGET_avr32 is not set # TARGET_bfin is not set # TARGET_cris is not set # TARGET_e1 is not set # TARGET_frv is not set # TARGET_h8300 is not set # TARGET_hppa is not set # TARGET_i386 is not set # TARGET_i960 is not set # TARGET_ia64 is not set # TARGET_m68k is not set # TARGET_microblaze is not set TARGET_mips=y # TARGET_nios is not set # TARGET_nios2 is not set # TARGET_powerpc is not set # TARGET_sh is not set # TARGET_sh64 is not set # TARGET_sparc is not set # TARGET_v850 is not set # TARGET_vax is not set # TARGET_x86_64 is not set # TARGET_xtensa is not set # # Target Architecture Features and Options # TARGET_ARCH="mips" FORCE_OPTIONS_FOR_ARCH=y ARCH_CFLAGS="-mno-split-addresses" CONFIG_MIPS_O32_ABI=y # CONFIG_MIPS_N32_ABI is not set # CONFIG_MIPS_N64_ABI is not set # CONFIG_MIPS_ISA_1 is not set # CONFIG_MIPS_ISA_2 is not set # CONFIG_MIPS_ISA_3 is not set # CONFIG_MIPS_ISA_4 is not set CONFIG_MIPS_ISA_MIPS32=y # CONFIG_MIPS_ISA_MIPS32R2 is not set # CONFIG_MIPS_ISA_MIPS64 is not set TARGET_SUBARCH="" # UCLIBC_FORMAT_ELF is not set # UCLIBC_FORMAT_FDPIC_ELF is not set UCLIBC_FORMAT_FLAT=y # UCLIBC_FORMAT_FLAT_SEP_DATA is not set # UCLIBC_FORMAT_SHARED_FLAT is not set ARCH_ANY_ENDIAN=y ARCH_LITTLE_ENDIAN=y # ARCH_WANTS_BIG_ENDIAN is not set ARCH_WANTS_LITTLE_ENDIAN=y # ARCH_HAS_MMU is not set UCLIBC_HAS_FLOATS=y UCLIBC_HAS_FPU=y DO_C99_MATH=y # UCLIBC_HAS_FENV is not set KERNEL_HEADERS="/home/mlunter/psp/mips-toolchain/buildroot-2009.02/toolchain_build_mipsel/linux/include" UCLIBC_UCLINUX_BROKEN_MUNMAP=y EXCLUDE_BRK=y HAVE_DOT_CONFIG=y # # General Library Settings # # HAVE_NO_PIC is not set # DOPIC is not set ARCH_HAS_NO_SHARED=y ARCH_HAS_NO_LDSO=y UCLIBC_CTOR_DTOR=y # HAS_NO_THREADS is not set # UCLIBC_HAS_THREADS is not set UCLIBC_HAS_SYSLOG=y # UCLIBC_HAS_LFS is not set MALLOC=y # MALLOC_SIMPLE is not set # MALLOC_STANDARD is not set MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y # COMPAT_ATEXIT is not set # UCLIBC_SUSV3_LEGACY is not set # UCLIBC_SUSV3_LEGACY_MACROS is not set # UCLIBC_HAS_STUBS is not set UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS_PTY=y ASSUME_DEVPTS=y UNIX98PTY_ONLY=y # UCLIBC_HAS_GETPT is not set UCLIBC_HAS_TM_EXTENSIONS=y UCLIBC_HAS_TZ_CACHING=y UCLIBC_HAS_TZ_FILE=y UCLIBC_HAS_TZ_FILE_READ_MANY=y UCLIBC_TZ_FILE_PATH="/etc/TZ" # # Advanced Library Settings # UCLIBC_PWD_BUFFER_SIZE=256 UCLIBC_GRP_BUFFER_SIZE=256 # # Support various families of functions # UCLIBC_LINUX_MODULE_24=y UCLIBC_LINUX_SPECIFIC=y UCLIBC_HAS_GNU_ERROR=y UCLIBC_BSD_SPECIFIC=y UCLIBC_HAS_BSD_ERR=y # UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set # UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set # UCLIBC_NTP_LEGACY is not set # UCLIBC_SV4_DEPRECATED is not set UCLIBC_HAS_REALTIME=y UCLIBC_HAS_ADVANCED_REALTIME=y UCLIBC_HAS_EPOLL=y UCLIBC_HAS_XATTR=y UCLIBC_HAS_PROFILING=y UCLIBC_HAS_CRYPT_IMPL=y UCLIBC_HAS_CRYPT=y UCLIBC_HAS_NETWORK_SUPPORT=y UCLIBC_HAS_SOCKET=y UCLIBC_HAS_IPV4=y # UCLIBC_HAS_IPV6 is not set # UCLIBC_HAS_RPC is not set UCLIBC_USE_NETLINK=y # UCLIBC_SUPPORT_AI_ADDRCONFIG is not set # UCLIBC_HAS_BSD_RES_CLOSE is not set # # String and Stdio Support # # UCLIBC_HAS_STRING_GENERIC_OPT is not set # UCLIBC_HAS_STRING_ARCH_OPT is not set UCLIBC_HAS_CTYPE_TABLES=y UCLIBC_HAS_CTYPE_SIGNED=y # UCLIBC_HAS_CTYPE_UNSAFE is not set # UCLIBC_HAS_CTYPE_CHECKED is not set UCLIBC_HAS_CTYPE_ENFORCED=y # UCLIBC_HAS_WCHAR is not set # UCLIBC_HAS_LOCALE is not set UCLIBC_HAS_HEXADECIMAL_FLOATS=y UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y # USE_OLD_VFPRINTF is not set UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y # UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set # UCLIBC_HAS_STDIO_BUFSIZ_256 is not set # UCLIBC_HAS_STDIO_BUFSIZ_512 is not set # UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set # UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set UCLIBC_HAS_STDIO_BUFSIZ_4096=y # UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y # UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set # UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set # UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set # UCLIBC_HAS_STDIO_GETC_MACRO is not set # UCLIBC_HAS_STDIO_PUTC_MACRO is not set UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y UCLIBC_HAS_PRINTF_M_SPEC=y UCLIBC_HAS_ERRNO_MESSAGES=y # UCLIBC_HAS_SYS_ERRLIST is not set UCLIBC_HAS_SIGNUM_MESSAGES=y # UCLIBC_HAS_SYS_SIGLIST is not set UCLIBC_HAS_GNU_GETOPT=y # UCLIBC_HAS_GNU_GETSUBOPT is not set # # Big and Tall # UCLIBC_HAS_REGEX=y # UCLIBC_HAS_REGEX_OLD is not set UCLIBC_HAS_FNMATCH=y # UCLIBC_HAS_FNMATCH_OLD is not set # UCLIBC_HAS_WORDEXP is not set UCLIBC_HAS_FTW=y UCLIBC_HAS_GLOB=y UCLIBC_HAS_GNU_GLOB=y # # Library Installation Options # RUNTIME_PREFIX="/" DEVEL_PREFIX="/usr/" # # Security options # UCLIBC_HAS_ARC4RANDOM=y # HAVE_NO_SSP is not set # UCLIBC_HAS_SSP is not set # UCLIBC_BUILD_NOEXECSTACK is not set # # uClibc development/debugging options # CROSS_COMPILER_PREFIX="/home/mlunter/psp/mips-toolchain/buildroot-2009.02/build_mipsel/staging_dir/usr/bin/mipsel-linux-uclibc-" UCLIBC_EXTRA_CFLAGS="" # DODEBUG is not set DOSTRIP=y # DOASSERTS is not set # UCLIBC_MALLOC_DEBUGGING is not set WARNINGS="-Wall" # EXTRA_WARNINGS is not set # DOMULTI is not set # UCLIBC_MJN3_ONLY is not set
_______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
