Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 776652

Summary: sys-block/libfabric-1.11.2 src/.libs/libfabric.so: undefined reference to `dlopen' when using SHELL=/bin/dash and CONFIG_SHELL=/bin/dash
Product: Gentoo Linux Reporter: Alessandro Barbieri <lssndrbarbieri>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: UNCONFIRMED ---    
Severity: normal CC: ionen, sam
Priority: Normal Keywords: PATCH, UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: libfabric-1.11.2:20210316-094432.log
libfabric-1.11.2:20210316-100100.log
https://github.com/ofiwg/libfabric/pull/6646

Description Alessandro Barbieri 2021-03-16 09:48:27 UTC
slibtool: link: ln -s libfabric.so.1.14.2 src/.libs/libfabric.so.1                                                                                                                                                 
slibtool: link: ln -s libfabric.so.1.14.2 src/.libs/libfabric.so                         
slibtool: link: ln -s ../libfabric.la src/.libs/libfabric.la             
slibtool: link: ln -s ../libfabric.la src/.libs/libfabric.lai
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -O2 -DNDEBUG -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration  -Wl,-O1 -Wl,-
-as-needed    -L/lib -o util/fi_info util/info.o src/libfabric.la -latomic -lrt -lpthread   
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -O2 -DNDEBUG -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration  -Wl,-O1 -Wl,-
-as-needed    -L/lib -o util/fi_strerror util/strerror.o src/libfabric.la -latomic -lrt -lpthread   
slibtool: link: x86_64-pc-linux-gnu-gcc util/info.o -Wall -O2 -DNDEBUG -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--as-ne
eded -L/lib -Lsrc/.libs -lfabric -lrt -latomic -lrt -lpthread -latomic -lrt -o util/.libs/fi_info                                                                                                                  
slibtool: link: x86_64-pc-linux-gnu-gcc util/strerror.o -Wall -O2 -DNDEBUG -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wl,-O1 -Wl,--a
s-needed -L/lib -Lsrc/.libs -lfabric -lrt -latomic -lrt -lpthread -latomic -lrt -o util/.libs/fi_strerror
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/libfabric.so: undefined reference to `dlopen'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/libfabric.so: undefined reference to `dlclose'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/libfabric.so: undefined reference to `dlsym'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/libfabric.so: undefined reference to `dlopen'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/libfabric.so: undefined reference to `dlclose'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/libfabric.so: undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
slibtool: exec error upon slbt_exec_link_create_executable(), line 1613: (see child process error messages).
slibtool: < returned to > slbt_exec_link(), line 1902.
make[1]: *** [Makefile:8703: util/fi_info] Error 2
make[1]: *** Waiting for unfinished jobs....
slibtool: exec error upon slbt_exec_link_create_executable(), line 1613: (see child process error messages).
slibtool: < returned to > slbt_exec_link(), line 1902.
make[1]: *** [Makefile:8715: util/fi_strerror] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-block/libfabric-1.11.2/work/libfabric-1.11.2'
make: *** [Makefile:5252: all] Error 2
 * ERROR: sys-block/libfabric-1.11.2::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-16 09:48:58 UTC
Created attachment 691758 [details]
libfabric-1.11.2:20210316-094432.log

buildlog
Comment 2 Alessandro Barbieri 2021-03-16 10:06:51 UTC
This is unrelated to slibtool and/or lld
Comment 3 Alessandro Barbieri 2021-03-16 10:07:27 UTC
Created attachment 691761 [details]
libfabric-1.11.2:20210316-100100.log

buildlog
Comment 4 Alessandro Barbieri 2021-03-16 10:16:11 UTC
dash is the issue
Comment 5 Ionen Wolkens gentoo-dev 2021-03-16 12:23:07 UTC
Seeing a few instances of ==

./configure: 27026: test: xno: unexpected operator
Comment 6 orbea 2021-03-19 01:28:44 UTC
Created attachment 692337 [details, diff]
https://github.com/ofiwg/libfabric/pull/6646

configure.ac has several instances of '==' which is not portable shell, it should use '=' instead.
Comment 7 orbea 2021-03-19 20:49:57 UTC
The fix was merged upstream. :)