[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libssh-head build on linux64 + openssl 1.0.2e FAILs @ 'make' error: "implicit declaration of function ‘CRYPTO_set_id_callback’ "


Hi

Building latest HEAD

	git clone git://git.libssh.org/projects/libssh.git libssh

	cd libssh
	git log | head
		commit b3ad6a015b8fd7668b55d11c1bc3061c2fc67572
		Author: pouete <pouete@xxxxxxxxxx>
		Date: Wed Dec 30 12:19:36 2015 +0100

		cmake: use check_symbol for (v)snprintf

		Updated how snprintf and vsnprintf are discovered by cmake. Visual studio
		2015 now include it in the file stdio.h.
		More information here :
		https://msdn.microsoft.com/en-us/library/bb531344.aspx

on

	gcc --version
		gcc (SUSE Linux) 5.3.1 20151207 [gcc-5-branch revision 231355]
	lsb_release -rd
		Description: openSUSE Leap 42.1 (x86_64)
		Release: 42.1
	openssl version
		OpenSSL 1.0.2e 3 Dec 2015
	which openssl
		/usr/local/ssl/bin/openssl

configure's OK

	mkdir -p bld
	cd bld
	cmake .. \
	-DCMAKE_INSTALL_PREFIX=/usr/local \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_SKIP_INSTALL_RPATH=0 \
	-DCMAKE_SKIP_RPATH=0 \
	-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1 \
	-DOPENSSL_ROOT_DIR=/usr/local/ssl \
	-DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include \
	-DOPENSSL_LIBRARIES=/usr/local/ssl/lib64/libssl.so
	...
	-- ********** libssh build options : **********
	-- zlib support: ON
	-- libgcrypt support: OFF
	-- libnacl support: OFF
	-- SSH-1 support: OFF
	-- SFTP support: ON
	-- Server support : ON
	-- GSSAPI support : 0
	-- Pcap debugging support : ON
	-- With static library: OFF
	-- Unit testing: OFF
	-- Client code Unit testing: OFF
	-- Public API documentation generation
	-- Benchmarks: OFF
	-- ********************************************
	-- Configuring done
	-- Generating done
	-- Build files have been written to: /usr/local/src/libssh/bld

but make fails

	make V=1
		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
		[ 9%] Building C object src/CMakeFiles/ssh_shared.dir/config.c.o
		[ 10%] Building C object src/CMakeFiles/ssh_shared.dir/connect.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
		[ 18%] Building C object src/CMakeFiles/ssh_shared.dir/known_hosts.c.o
		[ 19%] Building C object src/CMakeFiles/ssh_shared.dir/legacy.c.o
		[ 20%] Building C object src/CMakeFiles/ssh_shared.dir/libcrypto.c.o
		[ 21%] Building C object src/CMakeFiles/ssh_shared.dir/log.c.o
		[ 22%] Building C object src/CMakeFiles/ssh_shared.dir/match.c.o
		[ 23%] Building C object src/CMakeFiles/ssh_shared.dir/messages.c.o
		[ 24%] Building C object src/CMakeFiles/ssh_shared.dir/misc.c.o
		[ 25%] Building C object src/CMakeFiles/ssh_shared.dir/options.c.o
		[ 26%] Building C object src/CMakeFiles/ssh_shared.dir/packet.c.o
		[ 27%] Building C object src/CMakeFiles/ssh_shared.dir/packet_cb.c.o
		[ 28%] Building C object src/CMakeFiles/ssh_shared.dir/packet_crypt.c.o
		[ 29%] Building C object src/CMakeFiles/ssh_shared.dir/pcap.c.o
		[ 30%] Building C object src/CMakeFiles/ssh_shared.dir/pki.c.o
[ 31%] Building C object src/CMakeFiles/ssh_shared.dir/pki_container_openssh.c.o
		[ 32%] Building C object src/CMakeFiles/ssh_shared.dir/pki_ed25519.c.o
		[ 33%] Building C object src/CMakeFiles/ssh_shared.dir/poll.c.o
		[ 34%] Building C object src/CMakeFiles/ssh_shared.dir/session.c.o
		[ 35%] Building C object src/CMakeFiles/ssh_shared.dir/scp.c.o
		[ 36%] Building C object src/CMakeFiles/ssh_shared.dir/socket.c.o
		[ 37%] Building C object src/CMakeFiles/ssh_shared.dir/string.c.o
		[ 38%] Building C object src/CMakeFiles/ssh_shared.dir/threads.c.o
		/usr/local/src/libssh/src/threads.c: In function ‘libcrypto_thread_init’:
/usr/local/src/libssh/src/threads.c:130:3: error: implicit declaration of function ‘CRYPTO_set_id_callback’ [-Wimplicit-function-declaration]
		CRYPTO_set_id_callback(user_callbacks->thread_id);
		^
src/CMakeFiles/ssh_shared.dir/build.make:950: recipe for target 'src/CMakeFiles/ssh_shared.dir/threads.c.o' failed
		make[2]: *** [src/CMakeFiles/ssh_shared.dir/threads.c.o] Error 1
CMakeFiles/Makefile2:206: recipe for target 'src/CMakeFiles/ssh_shared.dir/all' failed
		make[1]: *** [src/CMakeFiles/ssh_shared.dir/all] Error 2
		Makefile:149: recipe for target 'all' failed
		make: *** [all] Error 2

known issue, or workaround available?

Archive administrator: postmaster@lists.cynapses.org