wiki:CompileBash-4.2

Bash-4.2

  • Can be Compiled or Not? No
  • Package Download Link: http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
  • Compile Script:
    #!/bin/bash
    
    export PACKAGE_NAME=bash-4.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 bash-4.2"
    ChangeDir "../bash-4.2"
    ./configure\
         --prefix=${NACLPORTS_PREFIX} --enable-shared --host=x86_64-linux ac_cv_func_gethostname=yes
    make clean
    make
    
    
    
  • Remaining Problem:
    execute_cmd.c: In function ‘execute_pipeline’:
    execute_cmd.c:2205: error: ‘job_control’ undeclared (first use in this function)
    execute_cmd.c:2205: error: (Each undeclared identifier is reported only once
    execute_cmd.c:2205: error: for each function it appears in.)
    execute_cmd.c: In function ‘execute_function’:
    execute_cmd.c:4243: warning: passing argument 1 of ‘array_rshift’ discards qualifiers from pointer target type
    array.h:56: note: expected ‘struct ARRAY *’ but argument is of type ‘volatile struct ARRAY *’
    execute_cmd.c:4245: warning: passing argument 1 of ‘array_rshift’ discards qualifiers from pointer target type
    array.h:56: note: expected ‘struct ARRAY *’ but argument is of type ‘volatile struct ARRAY *’
    execute_cmd.c:4320: warning: passing argument 1 of ‘array_shift’ discards qualifiers from pointer target type
    array.h:55: note: expected ‘struct ARRAY *’ but argument is of type ‘volatile struct ARRAY *’
    execute_cmd.c:4321: warning: passing argument 1 of ‘array_shift’ discards qualifiers from pointer target type
    array.h:55: note: expected ‘struct ARRAY *’ but argument is of type ‘volatile struct ARRAY *’
    make: *** [execute_cmd.o] Error 1
    
    
Last modified 4 years ago Last modified on Sep 24, 2013 8:07:12 PM