Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555708 - net-misc/openssh-6.9_p1-r2[ldns,-ssl] fails to build: error: conflicting types for SHA512_Transform
Summary: net-misc/openssh-6.9_p1-r2[ldns,-ssl] fails to build: error: conflicting type...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 16:56 UTC by Nicholas Fish
Modified: 2015-07-28 01:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build log from failed openssh install with ldns USE flag enabled (build.log,77.84 KB, text/plain)
2015-07-23 17:10 UTC, Nicholas Fish
Details
emerge --info from failed openssh build (net-misc-openssh-6.9_p1-r2::gentoo_emerge-info.txt,6.51 KB, text/plain)
2015-07-25 07:42 UTC, Nicholas Fish
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Fish 2015-07-23 16:56:25 UTC
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
Comment 1 Nicholas Fish 2015-07-23 17:10:23 UTC
Created attachment 407470 [details]
Full build log from failed openssh install with ldns USE flag enabled
Comment 2 Amy Liffey gentoo-dev 2015-07-23 19:13:15 UTC
Can you please also attach emerge --info ?

Thanks

Amy
Comment 3 Nicholas Fish 2015-07-25 07:42:34 UTC
Created attachment 407568 [details]
emerge --info from failed openssh build
Comment 4 SpanKY gentoo-dev 2015-07-27 14:59:48 UTC
pretty sure it's because you've disabled USE=ssl and ldns requires openssl.
if you re-add USE=ssl, does it build ?
Comment 5 Nicholas Fish 2015-07-27 17:17:22 UTC
(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
Comment 6 SpanKY gentoo-dev 2015-07-28 01:08:21 UTC
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