Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608124 - net-proxy/haproxy-1.7.2 fails to compile against libressl-2.5.1
Summary: net-proxy/haproxy-1.7.2 fails to compile against libressl-2.5.1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2017-02-03 12:47 UTC by MarcusX
Modified: 2019-04-24 09:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarcusX 2017-02-03 12:47:01 UTC
net-proxy/haproxy-1.7.2 fails to compile against libressl-2.5.1

This is very similar to another bug files against libressl-2.5.1:
https://bugs.gentoo.org/show_bug.cgi?id=607944

Build log:

x86_64-pc-linux-gnu-gcc -Iinclude -Iebtree -Wall -O2 -pipe -fno-strict-aliasing       -DCONFIG_HAP_LINUX_SPLICE -DTPROXY -DCONFIG_HAP_LINUX_TPROXY -DCONFIG_HAP_CRYPT -DUSE_GETADDRINFO -DUSE_ZLIB  -DENABLE_POLL -DENABLE_EPOLL -DUSE_CPU_AFFINITY -DASSUME_SPLICE_WORKS -DUSE_ACCEPT4 -DNETFILTER -DUSE_GETSOCKNAME -DUSE_OPENSSL  -DUSE_SYSCALL_FUTEX -DUSE_PCRE -I/usr/include -DUSE_TFO  -DCONFIG_HAPROXY_VERSION=\"1.7.2\" -DCONFIG_HAPROXY_DATE=\"2017/01/13\" -c -o ebtree/eb32tree.o ebtree/eb32tree.c
src/ssl_sock.c: In function ‘ssl_sock_load_ocsp’:
src/ssl_sock.c:796:28: error: ‘SSL_CTX’ has no member named ‘tlsext_status_cb’
  *cb = (void (*) (void))ctx->tlsext_status_cb;
                            ^
src/ssl_sock.c:798:2: note: in expansion of macro ‘SSL_CTX_get_tlsext_status_cb’
  SSL_CTX_get_tlsext_status_cb(ctx, &callback);
  ^
src/ssl_sock.c:827:15: error: ‘SSL_CTX’ has no member named ‘tlsext_status_arg’
   cb_arg = ctx->tlsext_status_arg;
               ^
src/ssl_sock.c: In function ‘ssl_sock_handshake’:
src/ssl_sock.c:3540:48: error: ‘SSL’ has no member named ‘packet_length’
      empty_handshake = !((SSL *)conn->xprt_ctx)->packet_length;
                                                ^
src/ssl_sock.c:3618:46: error: ‘SSL’ has no member named ‘packet_length’
    empty_handshake = !((SSL *)conn->xprt_ctx)->packet_length;
                                              ^
src/ssl_sock.c: In function ‘smp_fetch_ssl_x_sig_alg’:
src/ssl_sock.c:4698:18: warning: passing argument 1 of ‘X509_ALGOR_get0’ from incompatible pointer type
  X509_ALGOR_get0(&algorithm, NULL, NULL, X509_get0_tbs_sigalg(crt));
                  ^
In file included from /usr/include/openssl/pem.h:71:0,
                 from /usr/include/openssl/ssl.h:150,
                 from src/ssl_sock.c:43:
/usr/include/openssl/x509.h:760:6: note: expected ‘struct ASN1_OBJECT **’ but argument is of type ‘const struct ASN1_OBJECT **’
 void X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval,
      ^
src/shctx.c: In function ‘shared_context_set_cache’:
src/shctx.c:660:31: warning: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type
  SSL_CTX_sess_set_get_cb(ctx, shctx_get_cb);
                               ^
In file included from include/types/listener.h:29:0,
                 from include/types/global.h:31,
                 from src/shctx.c:28:
/usr/include/openssl/ssl.h:741:6: note: expected ‘struct SSL_SESSION * (*)(struct ssl_st *, unsigned char *, int,  int *)’ but argument is of type ‘struct SSL_SESSION * (*)(struct SSL *, const unsigned char *, int,  int *)’
 void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,
      ^
x86_64-pc-linux-gnu-gcc -Iinclude -Iebtree -Wall -O2 -pipe -fno-strict-aliasing       -DCONFIG_HAP_LINUX_SPLICE -DTPROXY -DCONFIG_HAP_LINUX_TPROXY -DCONFIG_HAP_CRYPT -DUSE_GETADDRINFO -DUSE_ZLIB  -DENABLE_POLL -DENABLE_EPOLL -DUSE_CPU_AFFINITY -DASSUME_SPLICE_WORKS -DUSE_ACCEPT4 -DNETFILTER -DUSE_GETSOCKNAME -DUSE_OPENSSL  -DUSE_SYSCALL_FUTEX -DUSE_PCRE -I/usr/include -DUSE_TFO  -DCONFIG_HAPROXY_VERSION=\"1.7.2\" -DCONFIG_HAPROXY_DATE=\"2017/01/13\" -c -o ebtree/eb64tree.o ebtree/eb64tree.c
make: *** [Makefile:817: src/ssl_sock.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: net-proxy/haproxy-1.7.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-proxy/haproxy-1.7.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-proxy/haproxy-1.7.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-proxy/haproxy-1.7.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-proxy/haproxy-1.7.2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-proxy/haproxy-1.7.2/work/haproxy-1.7.2'
 * S: '/var/tmp/portage/net-proxy/haproxy-1.7.2/work/haproxy-1.7.2'


Output of emerge --info:
emerge --info
Portage 2.3.3 (python 2.7.12-final-0, hardened/linux/amd64, gcc-4.9.4, glibc-2.23-r3, 4.8.17-hardened-r2 x86_64)
=================================================================
System uname: Linux-4.8.17-hardened-r2-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.3
KiB Mem:     4035908 total,   2404224 free
KiB Swap:    4194300 total,   4190016 free
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git@sync:/usr/portage/
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/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 berkdb bzip2 cli cracklib crypt cxx device-mapper dri gdbm hardened iconv justify libressl modules multilib ncurses nls nptl openmp pax_kernel pcre pie readline seccomp session ssl ssp symlink tcpd unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Reproducible: Always
Comment 1 calimeroteknik 2017-11-13 00:27:55 UTC
As far as I can tell from my tests this is solved by the patch from FreeBSD offered at: https://bugs.gentoo.org/show_bug.cgi?id=608398
Comment 2 Bertrand Jacquin 2018-02-11 13:47:17 UTC
Can you verify if this is still a thing with 1.7.10 ?