Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703910 - dev-vcs/subversion-1.13.0 : /.../sed: symbol lookup error: /.../libserf-1.so.1: undefined symbol: OPENSSL_malloc_init
Summary: dev-vcs/subversion-1.13.0 : /.../sed: symbol lookup error: /.../libserf-1.so....
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
: 657296 (view as bug list)
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-12-26 21:23 UTC by Toralf Förster
Modified: 2020-06-03 17:31 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.27 KB, text/plain)
2019-12-26 21:23 UTC, Toralf Förster
Details
dev-vcs:subversion-1.13.0:20191226-161758.log (dev-vcs:subversion-1.13.0:20191226-161758.log,287.14 KB, text/plain)
2019-12-26 21:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,210.61 KB, text/plain)
2019-12-26 21:23 UTC, Toralf Förster
Details
environment (environment,275.91 KB, text/plain)
2019-12-26 21:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.77 KB, application/x-bzip)
2019-12-26 21:23 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.75 KB, application/x-bzip)
2019-12-26 21:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,69.29 KB, application/x-bzip)
2019-12-26 21:23 UTC, Toralf Förster
Details
emerge --info (emerge.info,7.08 KB, text/plain)
2020-05-23 05:20 UTC, Marcel Schilling
Details
build log (build.log,286.10 KB, text/plain)
2020-05-23 05:23 UTC, Marcel Schilling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-12-26 21:23:25 UTC
/usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c -d /var/tmp/portage/dev-vcs/subversion-1.13.0/image//usr/bin
cd subversion/svn ; /bin/sh "/var/tmp/portage/dev-vcs/subversion-1.13.0/work/subversion-1.13.0/libtool" --mode=install /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c svn /var/tmp/portage/dev-vcs/subversion-1.13.0/image//usr/bin/svn
/bin/sed: symbol lookup error: /usr/lib64/libserf-1.so.1: undefined symbol: OPENSSL_malloc_init
/bin/sed: symbol lookup error: /usr/lib64/libserf-1.so.1: undefined symbol: OPENSSL_malloc_init
libtool: warning: '../../subversion/libsvn_client/libsvn_client-1.la' has not been installed in '/usr/lib64'
/bin/sed: symbol lookup error: /usr/lib64/libserf-1.so.1: undefined symbol: OPENSSL_malloc_init

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-libressl-20191222-151549

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 26 Dec 2019 16:05:35 +0000

emerge -qpvO dev-vcs/subversion
[ebuild  N    ] dev-vcs/subversion-1.13.0  USE="dso http nls -apache2 -berkdb -ctypes-python -debug -doc -extras -gnome-keyring -java -kwallet -perl -python -ruby -sasl -test -vim-syntax" PYTHON_TARGETS="python2_7"
Comment 1 Toralf Förster gentoo-dev 2019-12-26 21:23:28 UTC
Created attachment 600832 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-12-26 21:23:31 UTC
Created attachment 600834 [details]
dev-vcs:subversion-1.13.0:20191226-161758.log
Comment 3 Toralf Förster gentoo-dev 2019-12-26 21:23:34 UTC
Created attachment 600836 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-12-26 21:23:37 UTC
Created attachment 600838 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-12-26 21:23:40 UTC
Created attachment 600840 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-12-26 21:23:43 UTC
Created attachment 600842 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-12-26 21:23:46 UTC
Created attachment 600844 [details]
temp.tbz2
Comment 8 Stefan Strogin gentoo-dev 2019-12-31 21:07:22 UTC
Cannot reproduce:( Everything builds fine. Same versions of dev-vcs/subversion-1.13.0, net-libs/serf-1.3.9-r1, dev-libs/libressl-3.0.2, same USE flags for subversion.

The only significant difference is the profile (mine is default/linux/amd64/17.1/desktop).
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2020-05-12 19:17:27 UTC
(In reply to Stefan Strogin from comment #8)
> Cannot reproduce:( Everything builds fine. Same versions of
> dev-vcs/subversion-1.13.0, net-libs/serf-1.3.9-r1, dev-libs/libressl-3.0.2,
> same USE flags for subversion.
> 
> The only significant difference is the profile (mine is
> default/linux/amd64/17.1/desktop).

Closing thus as needinfo.
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2020-05-12 19:19:26 UTC
*** Bug 657296 has been marked as a duplicate of this bug. ***
Comment 11 Alireza 2020-05-22 11:25:22 UTC
```
readelf -s /usr/lib/libserf-1.so | grep OPENSSL_malloc_init
     6: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND OPENSSL_malloc_init
```

This symbol is undefined. Subversion also notes this:

```
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.1/../../../../lib64/libserf-1.so: undefined reference to `OPENSSL_malloc_init'
```

Maybe it's because of libressl flag?

```
quse -p net-libs/serf
net-libs/serf: kerberos static-libs libressl
```

(which is enabled for me).

LTO/NOLTO seems irrelevant as I compiled with both of them.
Comment 12 Marcel Schilling 2020-05-23 05:19:32 UTC
I am consistently hitting this with 1.13.0-r1:

I understand that this was closed because one person tried to confirm and failed because more info is needed. However I fail to find out what info specifically is needed from those that can reproduce. I'll attach my emerge --info and the build log, feel free to request more information.
Comment 13 Marcel Schilling 2020-05-23 05:20:37 UTC
Created attachment 640950 [details]
emerge  --info
Comment 14 Marcel Schilling 2020-05-23 05:23:37 UTC
Created attachment 640952 [details]
build log
Comment 15 Marcel Schilling 2020-05-23 05:26:09 UTC
 equery uses net-libs/serf
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for net-libs/serf-1.3.9-r1:
 U I
 - - kerberos    : Add kerberos support
 + + libressl    : Use dev-libs/libressl instead of dev-libs/openssl when applicable (see also the ssl useflag)
 - - static-libs : Build static versions of dynamic libraries as well
Comment 16 Marcel Schilling 2020-05-23 05:27:52 UTC
eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/17.1
Comment 17 Jason Oliveira 2020-06-01 16:10:31 UTC
libserf builds with the following non-fatal error:

-----

x86_64-pc-linux-gnu-gcc -o auth/auth_digest.os -c -march=znver1 -O3 -pipe -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -pthread -fPIC -DNDEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/usr/include/apr-1 auth/auth_digest.c
buckets/ssl_buckets.c: In function 'get_subject_alt_names':
buckets/ssl_buckets.c:540:41: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
  540 |                         strlen(nm->d.ia5->data) != nm->d.ia5->length)
      |                                ~~~~~~~~~^~~~~~
      |                                         |
      |                                         unsigned char *
In file included from /usr/include/apr-1/apr_want.h:63,
                 from /usr/include/apr-1/apr_pools.h:47,
                 from buckets/ssl_buckets.c:25:
/usr/include/string.h:385:35: note: expected 'const char *' but argument is of type 'unsigned char *'
  385 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
x86_64-pc-linux-gnu-gcc -o auth/auth_spnego.os -c -march=znver1 -O3 -pipe -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -pthread -fPIC -DNDEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/usr/include/apr-1 auth/auth_spnego.c
x86_64-pc-linux-gnu-gcc -o auth/auth_spnego_gss.os -c -march=znver1 -O3 -pipe -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -pthread -fPIC -DNDEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/usr/include/apr-1 auth/auth_spnego_gss.c
buckets/ssl_buckets.c: In function 'init_ssl_libraries':
buckets/ssl_buckets.c:1160:9: warning: implicit declaration of function 'OPENSSL_malloc_init'; did you mean 'OPENSSL_malloc'? [-Wimplicit-function-declaration]
 1160 |         OPENSSL_malloc_init();
      |         ^~~~~~~~~~~~~~~~~~~
      |         OPENSSL_malloc
x86_64-pc-linux-gnu-gcc -o auth/auth_spnego_sspi.os -c -march=znver1 -O3 -pipe -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -pthread -fPIC -DNDEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/usr/include/apr-1 auth/auth_spnego_sspi.c
Comment 18 Jason Oliveira 2020-06-01 16:21:05 UTC
The issue comes from libserf being built from the wrong repo. the ::libressl repo's version of libserf works without any issues. the ::gentoo version of libserf is not building with proper libressl support even though the useflag for libressl is enabled. Once libserf is built with working libressl support (had to hard-unmask the package), the subversion build no longer fails.

Making a new bug and referencing this one, due to dilfridge@gentoo.org prematurely closing the bug.
Comment 19 Jason Oliveira 2020-06-01 16:37:28 UTC
new bug https://bugs.gentoo.org/726678