Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600668 - net-misc/ntp-4.2.8_p9[-ssl]: error: conflicting types for ‘EVP_MD_CTX’
Summary: net-misc/ntp-4.2.8_p9[-ssl]: error: conflicting types for ‘EVP_MD_CTX’
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 600638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-11-24 12:10 UTC by Alexander Sergeyev
Modified: 2016-11-28 22:45 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,82.22 KB, text/x-log)
2016-11-24 12:10 UTC, Alexander Sergeyev
Details
fix both libressl and -ssl builds (ntp_ssl_fixes.patch,7.26 KB, patch)
2016-11-26 03:57 UTC, Joe Kappus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Sergeyev 2016-11-24 12:10:57 UTC
Created attachment 454228 [details]
build.log

In file included from /usr/include/openssl/evp.h:70:0,
                 from ../include/libssl_compat.h:23,
                 from a_md5encrypt.c:14:
/usr/include/openssl/ossl_typ.h:132:30: error: conflicting types for ‘EVP_MD_CTX’
 typedef struct env_md_ctx_st EVP_MD_CTX;
                              ^
In file included from a_md5encrypt.c:12:0:
../include/ntp_md5.h:25:21: note: previous declaration of ‘EVP_MD_CTX’ was here
   typedef MD5_CTX   EVP_MD_CTX;
                     ^
In file included from a_md5encrypt.c:12:0:
../include/ntp_md5.h:31:49: error: expected ‘)’ before ‘,’ token
 # define EVP_DigestInit_ex(c, dt, i) (MD5Init(c), 1)
                                                 ^
../include/ntp_md5.h:32:49: error: expected declaration specifiers or ‘...’ before ‘(’ token
 # define EVP_DigestUpdate(c, p, s) MD5Update(c, (const void *)(p), \


Versions and Use-flags:
net-misc/ntp-4.2.8_p8 caps readline selinux threads vim-syntax -debug -ipv6 -libressl -openntpd -parse-clocks -samba -snmp -ssl -zeroconf
dev-libs/openssl-1.0.2j asm rfc3779 zlib -bindist -gmp -kerberos -sctp -sslv2 -sslv3 -static-libs -test -tls-heartbeat -vanilla ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2"
sys-devel/gcc-5.4.0 cxx hardened nls nptl openmp -altivec -awt -cilk -debug -doc -fixed-point -fortran -gcj -go -graphite -jit -libssp -mpx -multilib -multislot -nopie -nossp -objc -objc++ -objc -gc -regression-test -sanitize -vanilla -vtv

$ emerge --info

Portage 2.3.2 (python 3.5.2-final-0, hardened/linux/amd64/no-multilib/selinux, gcc-5.4.0, glibc-2.23-r3, 4.8.7-hardened x86_64)
=================================================================
System uname: Linux-4.8.7-hardened-x86_64-Intel-R-_Xeon-R-_CPU_E3-1240_v3_@_3.40GHz-with-gentoo-2.3
KiB Mem:    32917428 total,  27395728 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p46-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46-r1::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3-r1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: vanguard-gitkeeper:~/portage.git
    priority: 50

local
    location: /usr/local/portage
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -mavx2 -maes -mpopcnt"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -mavx2 -maes -mpopcnt"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --autounmask-keep-masks"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.yandex.ru/gentoo-distfiles/"
INSTALL_MASK="/usr/lib/systemd /etc/systemd"
LANG="en_US.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bash-completion hardened pax_kernel pie selinux ssp unicode vim-syntax xattr" ABI_X86="64" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5 python2_7" USERLAND="GNU"
USE_PYTHON="3.5 2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2016-11-24 16:56:58 UTC
*** Bug 600638 has been marked as a duplicate of this bug. ***
Comment 2 Joe Kappus 2016-11-26 03:57:18 UTC
Created attachment 454376 [details, diff]
fix both libressl and -ssl builds

handled this. Combined my fix from Bug 600454 for building against libressl with the upstream patch here to fix this bug: http://bugs.ntp.org/show_bug.cgi?id=3144

Can we get a -r1 in the house?
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2016-11-28 22:45:27 UTC
Should be fixed now, thank you Joe Kappus for the libressl fix:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a118911c3b6177dd447258f6a334a5a2c7314948