Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661056 - mail-filter/rspamd-1.7.7: undefined reference to `RSA_get0_key'
Summary: mail-filter/rspamd-1.7.7: undefined reference to `RSA_get0_key'
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Roessner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-13 08:14 UTC by Daniel Kenzelmann
Modified: 2019-01-16 12:48 UTC (History)
4 users (show)

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


Attachments
rspamd-1.7.7-libressl.patch (rspamd-1.7.7-libressl.patch,482 bytes, patch)
2018-07-17 09:55 UTC, Joerg Neikes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kenzelmann 2018-07-13 08:14:59 UTC
contrib/aho-corasick: ../librspamd-server.a -ljemalloc -lpthread -lgthread-2.0 -lglib-2.0 -lglib-2.0 -lpcre -levent -lsqlite3 -licui18n -licuuc -licudata -licui18n -licuuc -licudata -licui18n -licuuc -licudata -lssl -lcrypto -lssl -lcrypto -lmagic -lz -lhs -lpthread -lm -lrt -ldl -lresolv -lnsl -lpcre ../../contrib/libucl/libucl.a ../../contrib/librdns/librdns.a ../../contrib/libottery/libottery.a -levent ../../contrib/xxhash/libxxhash.a ../../contrib/aho-corasick/librspamd-actrie.so -llua ../../contrib/snowball/libstemmer.a ../../contrib/hiredis/librspamd-hiredis.a ../../contrib/t1ha/librspamd-t1ha.a ../../contrib/linenoise/librspamd-linenoise.a -lhs ../../contrib/http-parser/librspamd-http-parser.a ../../contrib/cdb/librspamd-cdb.a ../../contrib/lua-lpeg/librspamd-lpeg.a ../../contrib/lc-btrie/liblcbtrie.a ../../contrib/zstd/librspamd-zstd.a -lpthread -lgthread-2.0 -lpcre -levent -lsqlite3 -licui18n -licuuc -licudata -lssl -lcrypto -lmagic -lz -lm -lrt -ldl -lresolv -lnsl -lpcre -llua -lglib-2.0 
../librspamd-server.a(dkim.c.o): In function `rspamd_dkim_match_keys':
/var/tmp/portage/mail-filter/rspamd-1.7.7/work/rspamd-1.7.7/src/libserver/dkim.c:3024: undefined reference to `RSA_get0_key'
/var/tmp/portage/mail-filter/rspamd-1.7.7/work/rspamd-1.7.7/src/libserver/dkim.c:3025: undefined reference to `RSA_get0_key'
collect2: error: ld returned 1 exit status
make[2]: *** [src/rspamadm/CMakeFiles/rspamadm.dir/build.make:420: src/rspamadm/rspamadm-1.7.7] Error 1
make[2]: Leaving directory '/var/tmp/portage/mail-filter/rspamd-1.7.7/work/rspamd-1.7.7_build'
make[1]: *** [CMakeFiles/Makefile2:1447: src/rspamadm/CMakeFiles/rspamadm.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/mail-filter/rspamd-1.7.7/work/rspamd-1.7.7_build'
make: *** [Makefile:130: all] Error 2


Probably libressl related?

My use flags:

[ebuild     U  ] mail-filter/rspamd-1.7.7::gentoo [1.7.5::gentoo] USE="jemalloc libressl -fann -gd -jit -pcre2 -torch" CPU_FLAGS_X86="ssse3" 0 KiB


# emerge --info
Portage 2.3.42 (python 3.6.6-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-7.3.0, glibc-2.27-r5, 4.17.4-gentoo x86_64)
=================================================================
System uname: Linux-4.17.4-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.6
KiB Mem:    15996380 total,  14699160 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 12 Jul 2018 21:15:01 +0000
Head commit of repository gentoo: ba05f1f31593c9ea751bde01a9380c5f516ef0e7
sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.11.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/openrc:          0.38.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r3::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r5::gentoo
Repositories:

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

k8n
    location: /usr/local/portage
    masters: gentoo

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=btver1 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=btver1 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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-logs distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE en en_GB en_US zh zh_CN"
MAKEOPTS="-j2"
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 bzip2 caps crypt cups cxx hardened iconv idn iproute2 ipv6 libressl libtirpc lzma maildir mmx mmxext ncurses nls nptl offensive pam pcre pie png popcnt readline seccomp smp spice sse sse2 sse3 sse4a ssl ssp ssse3 syslog udev unicode usb vhosts vorbis 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a ssse3" 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="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de de-DE en en-GB en-US zh zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1 php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
Update rspamd
Comment 1 Joerg Neikes 2018-07-17 09:55:36 UTC
Created attachment 539780 [details, diff]
rspamd-1.7.7-libressl.patch

fixes Libresssl build
Comment 2 Joerg Neikes 2018-07-17 09:59:32 UTC
This is a libressl error.

RSA_get0_key is only set in openssl.

mkdir -p /etc/portage/patches/mail-filter/rspamd-1.7.7/

cd /etc/portage/patches/mail-filter/rspamd-1.7.7

wget "https://661056.bugs.gentoo.org/attachment.cgi?id=539780" -O rspamd-1.7.7-libressl.patch

emerge =mail-filter/rspamd-1.7.7

 * Final size of build directory: 151980 KiB (148.4 MiB)
 * Final size of installed tree:   67836 KiB ( 66.2 MiB)

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/lib/rspamd/libpaths.so
   usr/lib/rspamd/librspamd-actrie.so
   usr/lib/rspamd/libTHNN.so
   usr/lib/rspamd/libtorch.so
   usr/lib/rspamd/libTH.so
   usr/lib/rspamd/libdecisiontree.so
   usr/bin/rspamd-1.7.7
   usr/bin/rspamc-1.7.7
   usr/bin/rspamadm-1.7.7
ecompressdir: bzip2 -9 /usr/share/doc
ecompressdir: bzip2 -9 /usr/share/man

>>> Installing (1 of 1) mail-filter/rspamd-1.7.7::gentoo
Comment 3 Joerg Neikes 2018-07-17 11:15:07 UTC
Same with rspamd-1.7.8.

Needs patch for LibreSSL.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2019-01-16 12:48:12 UTC
Fixed upstream since v1.7.9 -- Gentoo now has v1.8.3.