#20327: libssh compilation error (musl)
-----------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: libssh |
-----------------------+------------------------
{{{
make[3]: Entering directory `/home/development/src/openwrt-
trunk/openwrt/feeds/management/libssh'
. /home/development/src/openwrt-trunk/openwrt/include/shell.sh; gzip -dc
/home/development/src/openwrt-
trunk/openwrt/dl/libssh-2014-07-10-59a179950150d0305d6189ce9c126a9a0c5f6ab4.tar.gz
| tar -C /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/.. -xf -
Applying ./patches/001-compile.patch using plaintext:
patching file CMakeLists.txt
patching file ConfigureChecks.cmake
Applying ./patches/002-disable-libssp.patch using plaintext:
patching file cmake/Modules/DefineCompilerFlags.cmake
touch /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/.prepared_26fd5ed36be6a0e1fda34e2be316a2f7
rm -f /home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/stamp/.libssh_installed
(cd /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10; CFLAGS="-Os -pipe -mno-branch-
likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error
=unused-but-set-variable -msoft-float -Wformat -Werror=format-security
-fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro "
CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-
saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro " LDFLAGS="-L/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib
-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/lib -L/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro " cmake
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1
-DCMAKE_SYSTEM_PROCESSOR=mips -DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
-DCMAKE_C_COMPILER="/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-musl-gcc"
-DCMAKE_C_COMPILER_ARG1="" -DCMAKE_CXX_COMPILER="/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-musl-g++"
-DCMAKE_CXX_COMPILER_ARG1="" -DCMAKE_ASM_COMPILER="/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-musl-gcc"
-DCMAKE_ASM_COMPILER_ARG1=""
-DCMAKE_EXE_LINKER_FLAGS:STRING="-L/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib
-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/lib -L/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro"
-DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib
-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/lib -L/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro -Wl,-Bsymbolic-
functions" -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/home/development/src
/openwrt-trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib
-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/lib -L/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro -Wl,-Bsymbolic-
functions" -DCMAKE_AR="/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-musl-gcc-ar"
-DCMAKE_NM="/home/development/src/openwrt-trunk/openwrt/staging_dir
/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-
musl-gcc-nm" -DCMAKE_RANLIB="/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-musl-gcc-
ranlib" -DCMAKE_FIND_ROOT_PATH="/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10;/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10"
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=:
-DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10
-DCMAKE_PREFIX_PATH=/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10
-DCMAKE_SKIP_RPATH=TRUE -DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_BUILD_TYPE:STRING=Release -DHAVE_STRTOULL=1 -DHAVE_GETADDRINFO=1
-DHAVE_TERMIOS_H=1 -DWITH_EXAMPLES=OFF -DWITH_GCRYPT=OFF -DWITH_GSSAPI=OFF
-DWITH_LIBZ=ON -DWITH_NACL=OFF -DWITH_PCAP=OFF -DWITH_SERVER=ON
-DWITH_SFTP=ON -DWITH_SSH1=OFF -DWITH_TESTING=OFF -DWITH_BIG_ENDIAN=ON .
)
-- The C compiler identification is GNU 4.8.3
-- Check for working C compiler: /home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-musl-gcc
-- Check for working C compiler: /home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/bin/mips-openwrt-linux-musl-gcc --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Performing Test WITH_FPIC
-- Performing Test WITH_FPIC - Success
-- Found ZLIB: /home/development/src/openwrt-trunk/openwrt/staging_dir
/target-mips_34kc_musl-1.1.10/usr/include
-- Found PkgConfig: /home/development/src/openwrt-
trunk/openwrt/staging_dir/host/bin/pkg-config (found version "0.28")
-- checking for module 'openssl'
-- found openssl, version 1.0.2d
-- Found OpenSSL: /home/development/src/openwrt-trunk/openwrt/staging_dir
/target-mips_34kc_musl-1.1.10/usr/lib/libssl.so;/home/development/src
/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/usr/lib/libcrypto.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test WITH_VISIBILITY_HIDDEN
-- Performing Test WITH_VISIBILITY_HIDDEN - Success
-- Looking for argp.h
-- Looking for argp.h - not found
-- Looking for pty.h
-- Looking for pty.h - found
-- Looking for utmp.h
-- Looking for utmp.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for util.h
-- Looking for util.h - not found
-- Looking for libutil.h
-- Looking for libutil.h - not found
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - found
-- Looking for openssl/blowfish.h
-- Looking for openssl/blowfish.h - found
-- Looking for openssl/des.h
-- Looking for openssl/des.h - found
-- Looking for openssl/ecdh.h
-- Looking for openssl/ecdh.h - found
-- Looking for openssl/ec.h
-- Looking for openssl/ec.h - found
-- Looking for openssl/ecdsa.h
-- Looking for openssl/ecdsa.h - found
-- Looking for isblank
-- Looking for isblank - found
-- Looking for strncpy
-- Looking for strncpy - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for poll
-- Looking for poll - found
-- Looking for select
-- Looking for select - found
-- Looking for ntohll
-- Looking for ntohll - not found
-- Looking for htonll
-- Looking for htonll - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for forkpty in util
-- Looking for forkpty in util - found
-- Looking for cfmakeraw
-- Looking for cfmakeraw - found
-- Looking for __strtoull
-- Looking for __strtoull - not found
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE - Success
-- Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE - Failed
-- Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION
-- Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION - Success
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- ********************************************
-- ********** libssh build options : **********
-- zlib support: ON
-- libgcrypt support: OFF
-- libnacl support: OFF
-- SSH-1 support: OFF
-- SFTP support: ON
-- Server support : ON
-- GSSAPI support : OFF
-- Pcap debugging support : OFF
-- With static library: OFF
-- Unit testing: OFF
-- Client code Unit testing: OFF
-- Public API documentation generation
-- Benchmarks: OFF
-- ********************************************
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_COMPILER_ARG1
CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER_ARG1
CMAKE_CXX_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS
DL_LIBRARY
-- Build files have been written to: /home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10
rm -f /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/.configured_*
touch /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/.configured_yyyyyyyyyy
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-
saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/include -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " CXXFLAGS="-Os -pipe -mno-
branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-
error=unused-but-set-variable -msoft-float -Wformat -Werror=format-
security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/usr/include -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include "
LDFLAGS="-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/usr/lib -L/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib
-L/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro " make -C
/home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/. AR="mips-openwrt-linux-musl-gcc-
ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely
-mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-
but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-
protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-
linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-
musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-
musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-
linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-
openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-
openwrt-linux-musl-" ARCH="mips" ;
make[4]: Entering directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
make[5]: Entering directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
make[6]: Entering directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
Scanning dependencies of target ssh_shared
make[6]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
make[6]: Entering directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
[ 2%] Building C object src/CMakeFiles/ssh_shared.dir/agent.c.o
In file included from /home/development/src/openwrt-
trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/include/libssh/agent.h:24:0,
from /home/development/src/openwrt-
trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/src/agent.c:52:
/home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/libssh-2014-07-10/include/libssh/libssh.h:488:49:
error: unknown type name 'mode_t'
LIBSSH_API int ssh_mkdir (const char *pathname, mode_t mode);
^
make[6]: *** [src/CMakeFiles/ssh_shared.dir/agent.c.o] Error 1
make[6]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
make[5]: *** [src/CMakeFiles/ssh_shared.dir/all] Error 2
make[5]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/libssh-2014-07-10'
make[3]: *** [/home/development/src/openwrt-trunk/openwrt/build_dir
/target-mips_34kc_musl-1.1.10/libssh-2014-07-10/.built] Error 2
make[3]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/feeds/management/libssh'
make[2]: *** [package/feeds/management/libssh/compile] Error 2
make[2]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
make[1]: *** [/home/development/src/openwrt-trunk/openwrt/staging_dir
/target-mips_34kc_musl-1.1.10/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
make: *** [world] Error 2
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20327>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets