wiki:CompileCoreutils-8.21

Coreutils-8.21

  • Can be Compiled or Not? No
  • Package Download Link: http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz
  • Compile Script:
    #!/bin/bash
    
    export PACKAGE_NAME=coreutils
    export NACL_ARCH=x86_64
    export NACL_GLIBC=1
    export NACLPORTS_PREFIX=${REPY_PATH}/usr
    
    source ../naclports/src/build_tools/common.sh
    
    export NACL_SEL_LDR
    export NACL_IRT
    export NACL_SDK_LIB
    export CC=${NACLCC}
    export CXX=${NACLCXX}
    export AR=${NACLAR}
    export RANLIB=${NACLRANLIB}
    export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
    export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
    export FREETYPE_CONFIG=${NACLPORTS_PREFIX_BIN}/freetype-config
    export PATH=${NACL_BIN_PATH}:${PATH};
    conf_host=${NACL_CROSS_PREFIX}
    
    Banner "Configure coreutils"
    ChangeDir "../coreutils-8.21"
    FORCE_UNSAFE_CONFIGURE=1 \
    ./configure\
         --prefix=${NACLPORTS_PREFIX} --host=x86_64-linux --libexecdir=${NACLPORTS_PREFIX}/lib ac_cv_func_sigaction=yes --enable-no-install-program=kill,uptime ac_cv_func_openat=no
    make clean
    make V=1
    
    
  • Remaining Problem:
    lib/libcoreutils.a(chdir-long.o): In function `cdb_advance_fd':
    chdir-long.c:(.text+0xbc): undefined reference to `openat64'
    lib/libcoreutils.a(getcwd.o): In function `rpl_getcwd':
    getcwd.c:(.text+0x1bc): undefined reference to `openat64'
    collect2: ld returned 1 exit status
    make[2]: *** [src/df.nexe] Error 1
    make[2]: Leaving directory `/home/larrycane/Code/LIND/LIND_BASE/coreutils-8.21'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/larrycane/Code/LIND/LIND_BASE/coreutils-8.21'
    make: *** [all] Error 2
    
    
Last modified 4 years ago Last modified on Sep 24, 2013 7:29:29 PM