Summary: | dev-vcs/subversion-1.13.0 : /.../sed: symbol lookup error: /.../libserf-1.so.1: undefined symbol: OPENSSL_malloc_init | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Andreas K. Hüttel <dilfridge> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | jason.oliveira, marcel.schilling, zlogene |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=726678 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 561854 | ||
Attachments: |
emerge-info.txt
dev-vcs:subversion-1.13.0:20191226-161758.log emerge-history.txt environment etc.portage.tbz2 logs.tbz2 temp.tbz2 emerge --info build log |
Description
Toralf Förster
2019-12-26 21:23:25 UTC
Created attachment 600832 [details]
emerge-info.txt
Created attachment 600834 [details]
dev-vcs:subversion-1.13.0:20191226-161758.log
Created attachment 600836 [details]
emerge-history.txt
Created attachment 600838 [details]
environment
Created attachment 600840 [details]
etc.portage.tbz2
Created attachment 600842 [details]
logs.tbz2
Created attachment 600844 [details]
temp.tbz2
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). (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. *** Bug 657296 has been marked as a duplicate of this bug. *** ``` 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. 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. Created attachment 640950 [details]
emerge --info
Created attachment 640952 [details]
build log
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 eselect profile show Current /etc/portage/make.profile symlink: default/linux/amd64/17.1 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 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. new bug https://bugs.gentoo.org/726678 |