Page MenuHomePhabricator

warning: unrecognized command line option ‘-Wno-gnu-zero-variadic-macro-arguments’
Open, Needs TriagePublic

Description

root@z820:/usr/src/libssh-0.8.7/build# cmake -DCMAKE_C_COMPILER=/usr/local/bin/gcc-8 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-8 -DCMAKE_BUILD_TYPE=Release -DUNIT_TESTING=OFF -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON ..

  • The C compiler identification is GNU 8.3.0
  • Check for working C compiler: /usr/local/bin/gcc-8
  • Check for working C compiler: /usr/local/bin/gcc-8 -- works
  • Detecting C compiler ABI info
  • Detecting C compiler ABI info - done
  • Detecting C compile features
  • Detecting C compile features - done
  • Performing Test REQUIRED_FLAGS_WERROR
  • Performing Test REQUIRED_FLAGS_WERROR - Success
  • Performing Test WITH_STD_GNU99_FLAG
  • Performing Test WITH_STD_GNU99_FLAG - Success
  • Performing Test WITH_WPEDANTIC_FLAG
  • Performing Test WITH_WPEDANTIC_FLAG - Success
  • Performing Test WITH_WALL_FLAG
  • Performing Test WITH_WALL_FLAG - Success
  • Performing Test WITH_WSHADOW_FLAG
  • Performing Test WITH_WSHADOW_FLAG - Success
  • Performing Test WITH_WMISSING_PROTOTYPES_FLAG
  • Performing Test WITH_WMISSING_PROTOTYPES_FLAG - Success
  • Performing Test WITH_WCAST_ALIGN_FLAG
  • Performing Test WITH_WCAST_ALIGN_FLAG - Success
  • Performing Test WITH_WERROR_ADDRESS_FLAG
  • Performing Test WITH_WERROR_ADDRESS_FLAG - Success
  • Performing Test WITH_WSTRICT_PROTOTYPES_FLAG
  • Performing Test WITH_WSTRICT_PROTOTYPES_FLAG - Success
  • Performing Test WITH_WERROR_STRICT_PROTOTYPES_FLAG
  • Performing Test WITH_WERROR_STRICT_PROTOTYPES_FLAG - Success
  • Performing Test WITH_WWRITE_STRINGS_FLAG
  • Performing Test WITH_WWRITE_STRINGS_FLAG - Success
  • Performing Test WITH_WERROR_WRITE_STRINGS_FLAG
  • Performing Test WITH_WERROR_WRITE_STRINGS_FLAG - Success
  • Performing Test WITH_WERROR_IMPLICIT_FUNCTION_DECLARATION_FLAG
  • Performing Test WITH_WERROR_IMPLICIT_FUNCTION_DECLARATION_FLAG - Success
  • Performing Test WITH_WPOINTER_ARITH_FLAG
  • Performing Test WITH_WPOINTER_ARITH_FLAG - Success
  • Performing Test WITH_WERROR_POINTER_ARITH_FLAG
  • Performing Test WITH_WERROR_POINTER_ARITH_FLAG - Success
  • Performing Test WITH_WDECLARATION_AFTER_STATEMENT_FLAG
  • Performing Test WITH_WDECLARATION_AFTER_STATEMENT_FLAG - Success
  • Performing Test WITH_WERROR_DECLARATION_AFTER_STATEMENT_FLAG
  • Performing Test WITH_WERROR_DECLARATION_AFTER_STATEMENT_FLAG - Success
  • Performing Test WITH_WRETURN_TYPE_FLAG
  • Performing Test WITH_WRETURN_TYPE_FLAG - Success
  • Performing Test WITH_WERROR_RETURN_TYPE_FLAG
  • Performing Test WITH_WERROR_RETURN_TYPE_FLAG - Success
  • Performing Test WITH_WUNINITIALIZED_FLAG
  • Performing Test WITH_WUNINITIALIZED_FLAG - Success
  • Performing Test WITH_WERROR_UNINITIALIZED_FLAG
  • Performing Test WITH_WERROR_UNINITIALIZED_FLAG - Success
  • Performing Test WITH_WIMPLICIT_FALLTHROUGH_FLAG
  • Performing Test WITH_WIMPLICIT_FALLTHROUGH_FLAG - Success
  • Performing Test WITH_WERROR_STRICT_OVERFLOW_FLAG
  • Performing Test WITH_WERROR_STRICT_OVERFLOW_FLAG - Success
  • Performing Test WITH_WSTRICT_OVERFLOW_2_FLAG
  • Performing Test WITH_WSTRICT_OVERFLOW_2_FLAG - Success
  • Performing Test WITH_WNO_FORMAT_ZERO_LENGTH_FLAG
  • Performing Test WITH_WNO_FORMAT_ZERO_LENGTH_FLAG - Success
  • Performing Test REQUIRED_FLAGS_WFORMAT
  • Performing Test REQUIRED_FLAGS_WFORMAT - Success
  • Performing Test WITH_WFORMAT_SECURITY_FLAG
  • Performing Test WITH_WFORMAT_SECURITY_FLAG - Success
  • Performing Test WITH_WERROR_FORMAT_SECURITY_FLAG
  • Performing Test WITH_WERROR_FORMAT_SECURITY_FLAG - Success
  • Performing Test WITH_WNO_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
  • Performing Test WITH_WNO_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Success
  • Performing Test WITH_FNO_COMMON_FLAG
  • Performing Test WITH_FNO_COMMON_FLAG - Success
  • Performing Test WITH_STACK_PROTECTOR_STRONG
  • Performing Test WITH_STACK_PROTECTOR_STRONG - Success
  • Performing Test WITH_STACK_CLASH_PROTECTION
  • Performing Test WITH_STACK_CLASH_PROTECTION - Success
  • Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
  • Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
  • Found GCrypt: /usr/include (found version "1.7.6")
  • Looking for pthread.h
  • Looking for pthread.h - found
  • Looking for pthread_create
  • Looking for pthread_create - not found
  • Check if compiler accepts -pthread
  • Check if compiler accepts -pthread - yes
  • Found Threads: TRUE
  • Found GSSAPI: /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so;/usr/lib/x86_64-linux-gnu/libkrb5.so;/usr/lib/x86_64-linux-gnu/libk5crypto.so;/usr/lib/x86_64-linux-gnu/libcom_err.so
  • Could NOT find NaCl (missing: NACL_LIBRARIES NACL_INCLUDE_DIRS)
  • Found PythonInterp: /usr/bin/python (found version "2.7.13")
  • Could not find abimap in PATH. It can be found in PyPI as abimap (try pip install abimap)
  • Could NOT find ABIMap (missing: ABIMAP_EXECUTABLE) (Required is at least version "0.3.1")
  • Performing Test WITH_VISIBILITY_HIDDEN
  • Performing Test WITH_VISIBILITY_HIDDEN - Success
  • Looking for argp.h
  • Looking for argp.h - found
  • Looking for pty.h
  • Looking for pty.h - found
  • Looking for utmp.h
  • Looking for utmp.h - found
  • Looking for termios.h
  • Looking for termios.h - found
  • Looking for unistd.h
  • Looking for unistd.h - found
  • Looking for stdint.h
  • Looking for stdint.h - found
  • Looking for util.h
  • Looking for util.h - not found
  • Looking for libutil.h
  • Looking for libutil.h - not found
  • Looking for sys/time.h
  • Looking for sys/time.h - found
  • Looking for sys/utime.h
  • Looking for sys/utime.h - not found
  • Looking for sys/param.h
  • Looking for sys/param.h - found
  • Looking for arpa/inet.h
  • Looking for arpa/inet.h - found
  • Looking for byteswap.h
  • Looking for byteswap.h - found
  • Looking for glob.h
  • Looking for glob.h - found
  • Looking for isblank
  • Looking for isblank - found
  • Looking for strncpy
  • Looking for strncpy - found
  • Looking for strndup
  • Looking for strndup - found
  • Looking for strtoull
  • Looking for strtoull - found
  • Looking for explicit_bzero
  • Looking for explicit_bzero - not found
  • Looking for memset_s
  • Looking for memset_s - not found
  • Performing Test HAVE_GLOB_GL_FLAGS_MEMBER
  • Performing Test HAVE_GLOB_GL_FLAGS_MEMBER - Success
  • Looking for glob
  • Looking for glob - 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 getaddrinfo
  • Looking for getaddrinfo - 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_CONSTRUCTOR_ATTRIBUTE
  • Performing Test HAVE_CONSTRUCTOR_ATTRIBUTE - Success
  • Performing Test HAVE_DESTRUCTOR_ATTRIBUTE
  • Performing Test HAVE_DESTRUCTOR_ATTRIBUTE - Success
  • Performing Test HAVE_FALLTHROUGH_ATTRIBUTE
  • Performing Test HAVE_FALLTHROUGH_ATTRIBUTE - Success
  • Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION
  • Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION - Success
  • Performing Test HAVE_GCC_NARG_MACRO
  • Performing Test HAVE_GCC_NARG_MACRO - Success
  • Performing Test HAVE_COMPILERFUNC
  • Performing Test HAVE_COMPILERFUNC - Success
  • Performing Test HAVE_COMPILERFUNCTION
  • Performing Test HAVE_COMPILERFUNCTION - Success
  • Performing Test HAVE_GCC_BOUNDED_ATTRIBUTE
  • Performing Test HAVE_GCC_BOUNDED_ATTRIBUTE - Failed
  • Performing Test HAVE_LD_VERSION_SCRIPT
  • Performing Test HAVE_LD_VERSION_SCRIPT - Success
  • Check if the system is big endian
  • Searching 16 bit integer
  • Looking for sys/types.h
  • Looking for sys/types.h - found
  • Looking for stddef.h
  • Looking for stddef.h - found
  • Check size of unsigned short
  • Check size of unsigned short - done
  • Using unsigned short
  • Check if the system is big endian - little endian
  • Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
  • Threads_FOUND=TRUE
  • The CXX compiler identification is GNU 8.3.0
  • Check for working CXX compiler: /usr/local/bin/g++-8
  • Check for working CXX compiler: /usr/local/bin/g++-8 -- works
  • Detecting CXX compiler ABI info
  • Detecting CXX compiler ABI info - done
  • Detecting CXX compile features
  • Detecting CXX compile features - done
  • ************
  • ** libssh build options : **
  • zlib support: ON
  • libgcrypt support: OFF
  • libmbedTLS support: OFF
  • libnacl support: OFF
  • SFTP support: ON
  • Server support : ON
  • GSSAPI support : ON
  • Pcap debugging support : ON
  • With static library: OFF
  • Unit testing: OFF
  • Client code testing: OFF
  • Server code testing: OFF
  • Public API documentation generation
  • Benchmarks: OFF
  • Symbol versioning: ON
  • Allow ABI break: OFF
  • Release is final:
  • ************
  • Configuring done
  • Generating done
  • Build files have been written to: /usr/src/libssh-0.8.7/build

root@z820:/usr/src/libssh-0.8.7/build#
root@z820:/usr/src/libssh-0.8.7/build# make
Scanning dependencies of target ssh_shared
[ 1%] Building C object src/CMakeFiles/ssh_shared.dir/agent.c.o
[ 2%] Building C object src/CMakeFiles/ssh_shared.dir/auth.c.o
[ 3%] Building C object src/CMakeFiles/ssh_shared.dir/base64.c.o
[ 4%] Building C object src/CMakeFiles/ssh_shared.dir/bignum.c.o
[ 5%] Building C object src/CMakeFiles/ssh_shared.dir/buffer.c.o
[ 6%] Building C object src/CMakeFiles/ssh_shared.dir/callbacks.c.o
[ 7%] Building C object src/CMakeFiles/ssh_shared.dir/channels.c.o
[ 8%] Building C object src/CMakeFiles/ssh_shared.dir/client.c.o
[ 8%] Building C object src/CMakeFiles/ssh_shared.dir/config.c.o
[ 9%] Building C object src/CMakeFiles/ssh_shared.dir/connect.c.o
[ 10%] Building C object src/CMakeFiles/ssh_shared.dir/connector.c.o
[ 11%] Building C object src/CMakeFiles/ssh_shared.dir/curve25519.c.o
[ 12%] Building C object src/CMakeFiles/ssh_shared.dir/dh.c.o
[ 13%] Building C object src/CMakeFiles/ssh_shared.dir/ecdh.c.o
[ 14%] Building C object src/CMakeFiles/ssh_shared.dir/error.c.o
[ 15%] Building C object src/CMakeFiles/ssh_shared.dir/getpass.c.o
[ 16%] Building C object src/CMakeFiles/ssh_shared.dir/init.c.o
[ 17%] Building C object src/CMakeFiles/ssh_shared.dir/kex.c.o
[ 17%] Building C object src/CMakeFiles/ssh_shared.dir/known_hosts.c.o
[ 18%] Building C object src/CMakeFiles/ssh_shared.dir/knownhosts.c.o
[ 19%] Building C object src/CMakeFiles/ssh_shared.dir/legacy.c.o
[ 20%] Building C object src/CMakeFiles/ssh_shared.dir/log.c.o
[ 21%] Building C object src/CMakeFiles/ssh_shared.dir/match.c.o
[ 22%] Building C object src/CMakeFiles/ssh_shared.dir/messages.c.o
[ 23%] Building C object src/CMakeFiles/ssh_shared.dir/misc.c.o
[ 24%] Building C object src/CMakeFiles/ssh_shared.dir/options.c.o
[ 25%] Building C object src/CMakeFiles/ssh_shared.dir/packet.c.o
[ 26%] Building C object src/CMakeFiles/ssh_shared.dir/packet_cb.c.o
[ 26%] Building C object src/CMakeFiles/ssh_shared.dir/packet_crypt.c.o
[ 27%] Building C object src/CMakeFiles/ssh_shared.dir/pcap.c.o
[ 28%] Building C object src/CMakeFiles/ssh_shared.dir/pki.c.o
[ 29%] Building C object src/CMakeFiles/ssh_shared.dir/pki_container_openssh.c.o
[ 30%] Building C object src/CMakeFiles/ssh_shared.dir/pki_ed25519.c.o
[ 31%] Building C object src/CMakeFiles/ssh_shared.dir/poll.c.o
[ 32%] Building C object src/CMakeFiles/ssh_shared.dir/session.c.o
[ 33%] Building C object src/CMakeFiles/ssh_shared.dir/scp.c.o
[ 34%] Building C object src/CMakeFiles/ssh_shared.dir/socket.c.o
[ 35%] Building C object src/CMakeFiles/ssh_shared.dir/string.c.o
[ 35%] Building C object src/CMakeFiles/ssh_shared.dir/threads.c.o
[ 36%] Building C object src/CMakeFiles/ssh_shared.dir/wrapper.c.o
[ 37%] Building C object src/CMakeFiles/ssh_shared.dir/external/bcrypt_pbkdf.c.o
[ 38%] Building C object src/CMakeFiles/ssh_shared.dir/external/blowfish.c.o
[ 39%] Building C object src/CMakeFiles/ssh_shared.dir/external/chacha.c.o
[ 40%] Building C object src/CMakeFiles/ssh_shared.dir/external/ed25519.c.o
[ 41%] Building C object src/CMakeFiles/ssh_shared.dir/external/fe25519.c.o
[ 42%] Building C object src/CMakeFiles/ssh_shared.dir/external/ge25519.c.o
[ 43%] Building C object src/CMakeFiles/ssh_shared.dir/external/poly1305.c.o
[ 44%] Building C object src/CMakeFiles/ssh_shared.dir/external/sc25519.c.o
[ 44%] Building C object src/CMakeFiles/ssh_shared.dir/chachapoly.c.o
[ 45%] Building C object src/CMakeFiles/ssh_shared.dir/threads/noop.c.o
[ 46%] Building C object src/CMakeFiles/ssh_shared.dir/threads/pthread.c.o
[ 47%] Building C object src/CMakeFiles/ssh_shared.dir/threads/libcrypto.c.o
/usr/src/libssh-0.8.7/src/threads/libcrypto.c: In function ‘libcrypto_lock_callback’:
/usr/src/libssh-0.8.7/src/threads/libcrypto.c:53:16: error: ‘CRYPTO_LOCK’ undeclared (first use in this function)

if (mode & CRYPTO_LOCK) {
           ^~~~~~~~~~~

/usr/src/libssh-0.8.7/src/threads/libcrypto.c:53:16: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/libssh-0.8.7/src/threads/libcrypto.c: In function ‘crypto_thread_init’:
/usr/src/libssh-0.8.7/src/threads/libcrypto.c:71:13: error: implicit declaration of function ‘CRYPTO_num_locks’ [-Werror=implicit-function-declaration]

int n = CRYPTO_num_locks();
        ^~~~~~~~~~~~~~~~

/usr/src/libssh-0.8.7/src/threads/libcrypto.c:102:5: error: implicit declaration of function ‘CRYPTO_set_id_callback’; did you mean ‘ssh_set_log_callback’? [-Werror=implicit-function-declaration]

CRYPTO_set_id_callback(user_callbacks->thread_id);
^~~~~~~~~~~~~~~~~~~~~~
ssh_set_log_callback

/usr/src/libssh-0.8.7/src/threads/libcrypto.c:105:5: error: implicit declaration of function ‘CRYPTO_set_locking_callback’; did you mean ‘ssh_set_log_callback’? [-Werror=implicit-function-declaration]

CRYPTO_set_locking_callback(libcrypto_lock_callback);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
ssh_set_log_callback

/usr/src/libssh-0.8.7/src/threads/libcrypto.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-gnu-zero-variadic-macro-arguments’
cc1: some warnings being treated as errors
src/CMakeFiles/ssh_shared.dir/build.make:725: recipe for target 'src/CMakeFiles/ssh_shared.dir/threads/libcrypto.c.o' failed
make[2]: * [src/CMakeFiles/ssh_shared.dir/threads/libcrypto.c.o] Error 1
CMakeFiles/Makefile2:176: recipe for target 'src/CMakeFiles/ssh_shared.dir/all' failed
make[1]:
* [src/CMakeFiles/ssh_shared.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
root@z820:/usr/src/libssh-0.8.7/build#

Event Timeline

minzak created this task.Sun, Mar 24, 11:42 PM