Attempting to compile the latest version of openssh with the ldns USE flag enabled results in type definition conflicts between the openssl and openssh include files. Reproducible: Always Steps to Reproduce: USE="ldns" emerge openssh Actual Results: ... x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -ftrapv -fno-builtin-memset -fstack-protector-all -fPIE -I. -I. -DSSHDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/lib64/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/lib64/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/lib64/misc/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/lib64/misc/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshbuf-misc.c -o sshbuf-misc.o In file included from /usr/include/openssl/x509.h:107:0, from /usr/include/openssl/ssl.h:156, from /usr/include/ldns/dane.h:31, from /usr/include/ldns/ldns.h:98, from getrrsetbyname-ldns.c:53: /usr/include/openssl/sha.h:139:3: error: conflicting types for ‘SHA256_CTX’ } SHA256_CTX; ^ In file included from ../openbsd-compat/openbsd-compat.h:47:0, from ../includes.h:177, from getrrsetbyname-ldns.c:46: ../openbsd-compat/sha2.h:72:3: note: previous declaration of ‘SHA256_CTX’ was here } SHA256_CTX; (and many others -- see attachment) ... Workaround: USE="-ldns" emerge openssh
Created attachment 407470 [details] Full build log from failed openssh install with ldns USE flag enabled
Can you please also attach emerge --info ? Thanks Amy
Created attachment 407568 [details] emerge --info from failed openssh build
pretty sure it's because you've disabled USE=ssl and ldns requires openssl. if you re-add USE=ssl, does it build ?
(In reply to SpanKY from comment #4) > pretty sure it's because you've disabled USE=ssl and ldns requires openssl. > if you re-add USE=ssl, does it build ? Yes, re-enabling the 'ssl' USE flag (it was toggled off by package.use) results in a successful emerge of openssh. Thanks -N
should be all set now in the tree; thanks for the report! Commit message: List USE=ssl as a requirement for USE=ldns and clean up the ldns deps a bit http://sources.gentoo.org/net-misc/openssh/openssh-6.9_p1-r2.ebuild?r1=1.10&r2=1.11