Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691670 - mail-mta/netqmail-1.06-r6 with dev-libs/openssl-1.0.2 - qmail-remote.c:273:42: error: 'TLS_ST_BEFORE' undeclared (first use in this function); did you mean 'SSL_ST_BEFORE'?
Summary: mail-mta/netqmail-1.06-r6 with dev-libs/openssl-1.0.2 - qmail-remote.c:273:42...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rolf Eike Beer
URL:
Whiteboard:
Keywords:
Depends on: 689864 696010
Blocks:
  Show dependency tree
 
Reported: 2019-08-07 09:30 UTC by Rolf Eike Beer
Modified: 2020-02-09 16:23 UTC (History)
2 users (show)

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


Attachments
build.log (ppc) (netqmail-1.06-r12:20200209-155815.log,35.83 KB, text/plain)
2020-02-09 16:23 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer archtester 2019-08-07 09:30:03 UTC
[IP-] [  ] dev-libs/openssl-1.0.2r:0

In file included from qmail-remote.c:8:
substdio.h:12:64: warning: initialization of 'int (*)()' from incompatible pointer type 'ssize_t (*)(int,  void *, size_t)' {aka 'long int (*)(int,  void *, long unsigned int)'} [-Wincompatible-pointer-types]
 #define SUBSTDIO_FDBUF(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
                                                                ^
qmail-remote.c:155:17: note: in expansion of macro 'SUBSTDIO_FDBUF'
 substdio ssin = SUBSTDIO_FDBUF(read,0,inbuf,sizeof inbuf);
                 ^~~~~~~~~~~~~~
substdio.h:12:64: note: (near initialization for 'ssin.op')
 #define SUBSTDIO_FDBUF(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
                                                                ^
qmail-remote.c:155:17: note: in expansion of macro 'SUBSTDIO_FDBUF'
 substdio ssin = SUBSTDIO_FDBUF(read,0,inbuf,sizeof inbuf);
                 ^~~~~~~~~~~~~~
qmail-remote.c: In function 'quit':
qmail-remote.c:273:42: error: 'TLS_ST_BEFORE' undeclared (first use in this function); did you mean 'SSL_ST_BEFORE'?
   int state = ssl ? SSL_get_state(ssl) : TLS_ST_BEFORE;
                                          ^~~~~~~~~~~~~
                                          SSL_ST_BEFORE
qmail-remote.c:273:42: note: each undeclared identifier is reported only once for each function it appears in
qmail-remote.c:274:15: error: 'TLS_ST_OK' undeclared (first use in this function); did you mean 'SSL_ST_OK'?
   if (state & TLS_ST_OK || (!smtps && state & TLS_ST_BEFORE))
               ^~~~~~~~~
               SSL_ST_OK
make: *** [Makefile:1466: qmail-remote.o] Error 1


Portage 2.3.69 (python 3.6.5-final-0, default/linux/amd64/17.1/no-multilib, gcc-8.3.0, glibc-2.29-r2, 5.1.11 x86_64)
=================================================================
System uname: Linux-5.1.11-x86_64-Intel_Xeon_Processor_-Skylake,_IBRS-with-gentoo-2.6
KiB Mem:     1998564 total,    143492 free
KiB Swap:    2097148 total,   2054652 free
Timestamp of repository gentoo: Wed, 07 Aug 2019 00:45:01 +0000
Head commit of repository gentoo: c4bc8b2b7dfeaf5f70b5c55c65b371f21ec24bd1
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

dakon
    location: /var/lib/layman/dakon
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE public-domain/GPL all-rights-reserved"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.hetzner.de/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
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="CPU_FLAGS_X86="aes acl amd64 apache2 avx avx2 avx512cd avx512f bashbcmath bzip2 bzlib calendar caps cdb cli crypt ctype curl curlwrappers cxx dba dbm dio dri encode exif f16c fam fastcgi fma3 fontconfig foomaticdb fortran ftp gd gdbm gif gmp gpg hardened iconv icq imagemagick imap imlib ipv6 jadetex jpeg lesstif libtirpc libwww maildir mcal memlimit mime mmap mmx mmxext ncurses nls nocardbus nocd nptl nptlonly offensive openmp pam pclmul pcntl pcre perl pic pie png popcnt posix ppds python readline recode sasl seccomp session shared sharedmem simplexml slang slp soap sockets spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3" svg sysvipc szip tcpd tidy tiff truetype unicode wddx xattr xml xml2 xmlrpc xosd xpm xsl xv 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="alias auth_basic authn_core authn_default authn_file authz_core authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock deflate dir env expires ext_filter filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif socache_shmcb status unique_id vhost_alias auth_digest unixd version" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 sse3" 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" GRUB_PLATFORMS="efi-64 pc qemu" 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" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" 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, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rolf Eike Beer archtester 2019-08-31 12:22:25 UTC
Looks to me as if this simply needs openssl>=1.1
Comment 2 Rolf Eike Beer archtester 2019-08-31 13:08:53 UTC
Does not build with libressl-2.9.2 either.
Comment 3 Larry the Git Cow gentoo-dev 2019-09-13 06:21:45 UTC
The bug has been referenced in the following commit(s):

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

commit 2df4a52d583ad6a7233faf7601106e1a32bcc161
Author:     Rolf Eike Beer <eike@sf-mail.de>
AuthorDate: 2019-09-06 19:35:42 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-09-13 06:20:36 +0000

    mail-mta/netqmail: require correct openssl version
    
    Bug: https://bugs.gentoo.org/691670
    Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 mail-mta/netqmail/netqmail-1.06-r6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 ernsteiswuerfel archtester 2020-02-09 16:23:05 UTC
Created attachment 613088 [details]
build.log (ppc)

Same with dev-libs/libressl-3.0.2 on ppc.