wiki:CompileUtil-linux-2.23.2

Util-linux-2.23.2

  • Can be Compiled or Not?
  • Package Download Link: https://www.kernel.org/pub/linux/utils/util-linux/v2.23/util-linux-2.23.2.tar.gz
  • Compile Script:
    #!/bin/bash
    
    export PACKAGE_NAME=util-linux-2.23.2
    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};
    
    export NETTLE_CFLAGS=${NACLPORTS_PREFIX}/include
    export GMP_CFLAGS=${NACLPORTS_PREFIX}/include
    
    conf_host=${NACL_CROSS_PREFIX}
    
    Banner "Configure util-linux-2.23.2"
    ChangeDir "../util-linux-2.23.2"
    ./configure\
         --prefix=${NACLPORTS_PREFIX} --enable-shared --host=x86_64-linux --without-ncurses
    make clean
    make
    
    
  • Remaining Problem:
    libblkid/src/topology/ioctl.c:33: error: 'BLKALIGNOFF' undeclared here (not in a function)
    libblkid/src/topology/ioctl.c:34: error: 'BLKIOMIN' undeclared here (not in a function)
    libblkid/src/topology/ioctl.c:35: error: 'BLKIOOPT' undeclared here (not in a function)
    libblkid/src/topology/ioctl.c:36: error: 'BLKPBSZGET' undeclared here (not in a function)
    make[2]: *** [libblkid/src/topology/libblkid_la-ioctl.lo] Error 1
    make[2]: Leaving directory `/home/larrycane/Code/LIND/LIND_BASE/util-linux-2.23.2'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/larrycane/Code/LIND/LIND_BASE/util-linux-2.23.2'
    make: *** [all] Error 2
    

Last modified 4 years ago Last modified on Oct 1, 2013 11:47:53 AM