Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775605 - sys-cluster/libqb-2.0.1-r1 /lib64/libpthread.so.0: error adding symbols: DSO missing from command line when using slibtool
Summary: sys-cluster/libqb-2.0.1-r1 /lib64/libpthread.so.0: error adding symbols: DSO...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-12 10:18 UTC by Alessandro Barbieri
Modified: 2021-12-01 11:40 UTC (History)
3 users (show)

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


Attachments
libqb-2.0.1-r1:20210312-101405.log (libqb-2.0.1-r1:20210312-101405.log,157.42 KB, text/plain)
2021-03-12 10:19 UTC, Alessandro Barbieri
Details
https://github.com/ClusterLabs/libqb/pull/440 (libqb-pthread.patch,592 bytes, patch)
2021-03-16 18:24 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-12 10:18:53 UTC
slibtool: link: x86_64-pc-linux-gnu-gcc bmcpt.o -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wall -Wextra -Wunused -Wshadow -Wmissing-
prototypes -Wmissing-declarations -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wfloat-equal -Wformat=2 -Wfo
rmat-signedness -Wshift-overflow -Wshift-overflow=2 -Woverlength-strings -Winit-self -Wuninitialized -Wunknown-pragmas -Wno-unused-parameter -Wunused-const-variable -Wno-format-nonliteral -Wno-format-truncation 
-Wno-sign-compare -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -L../lib/.libs -lqb -ldl -lsystemd -o .libs/bmcpt
check_ipc.c: In function ‘set_ipc_name’:           
check_ipc.c:228:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  228 |   fgets(process_name, sizeof(process_name), f);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration        -Wall -Wextra -Wunused -W
shadow -Wmissing-prototypes -Wmissing-declarations -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wfloat-equa
l -Wformat=2 -Wformat-signedness -Wshift-overflow -Wshift-overflow=2 -Woverlength-strings -Winit-self -Wuninitialized -Wunknown-pragmas -Wno-unused-parameter -Wunused-const-variable -Wno-format-nonliteral -Wno-f
ormat-truncation -Wno-sign-compare  -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed  -o rbreader rbreader.o ../lib/libqb.la 
slibtool: link: x86_64-pc-linux-gnu-gcc rbreader.o -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wall -Wextra -Wunused -Wshadow -Wmissi
ng-prototypes -Wmissing-declarations -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wfloat-equal -Wformat=2 -
Wformat-signedness -Wshift-overflow -Wshift-overflow=2 -Woverlength-strings -Winit-self -Wuninitialized -Wunknown-pragmas -Wno-unused-parameter -Wunused-const-variable -Wno-format-nonliteral -Wno-format-truncati
on -Wno-sign-compare -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -L../lib/.libs -lqb -ldl -lsystemd -o .libs/rbreader
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration        -Wall -Wextra -Wunused -W
shadow -Wmissing-prototypes -Wmissing-declarations -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wfloat-equa
l -Wformat=2 -Wformat-signedness -Wshift-overflow -Wshift-overflow=2 -Woverlength-strings -Winit-self -Wuninitialized -Wunknown-pragmas -Wno-unused-parameter -Wunused-const-variable -Wno-format-nonliteral -Wno-f
ormat-truncation -Wno-sign-compare  -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed  -o rbwriter rbwriter.o ../lib/libqb.la 
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: bmcpt.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
slibtool: link: x86_64-pc-linux-gnu-gcc rbwriter.o -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -Wall -Wextra -Wunused -Wshadow -Wmissi
ng-prototypes -Wmissing-declarations -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wfloat-equal -Wformat=2 -
Wformat-signedness -Wshift-overflow -Wshift-overflow=2 -Woverlength-strings -Winit-self -Wuninitialized -Wunknown-pragmas -Wno-unused-parameter -Wunused-const-variable -Wno-format-nonliteral -Wno-format-truncati
on -Wno-sign-compare -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -L../lib/.libs -lqb -ldl -lsystemd -o .libs/rbwriter
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[2]: *** [Makefile:978: bmcpt] Error 2
make[2]: *** Waiting for unfinished jobs....
slibtool: link: ln -s bms bms.exe.wrapper
slibtool: link: ln -s bmc bmc.exe.wrapper
slibtool: link: ln -s rbreader rbreader.exe.wrapper
slibtool: link: ln -s rbwriter rbwriter.exe.wrapper
make[2]: Leaving directory '/var/tmp/portage/sys-cluster/libqb-2.0.1-r1/work/libqb-2.0.1/tests'
make[1]: *** [Makefile:482: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-cluster/libqb-2.0.1-r1/work/libqb-2.0.1'
make: *** [Makefile:429: all] Error 2
 * ERROR: sys-cluster/libqb-2.0.1-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-12 10:19:09 UTC
Created attachment 690960 [details]
libqb-2.0.1-r1:20210312-101405.log

buildlog
Comment 3 orbea 2021-03-16 18:25:20 UTC
I submitted a patch upstream that fixes this.

https://github.com/ClusterLabs/libqb/pull/440
Comment 4 Larry the Git Cow gentoo-dev 2021-03-16 22:14:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=214d2c05f94fbcc57070805e3bd83c64cdefe564

commit 214d2c05f94fbcc57070805e3bd83c64cdefe564
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-16 22:10:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-16 22:10:47 +0000

    sys-cluster/libqb: fix build with slibtool
    
    Thanks-to: orbea <orbea@riseup.net>
    Closes: https://bugs.gentoo.org/775605
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-cluster/libqb/files/libqb-2.0.1-slibtool.patch | 19 +++++++++++++++++++
 sys-cluster/libqb/libqb-2.0.1-r1.ebuild            |  4 ++++
 2 files changed, 23 insertions(+)
Comment 5 orbea 2021-03-17 15:46:43 UTC
The fix was merged upstream. :)
Comment 6 Ultrabug gentoo-dev 2021-12-01 11:40:54 UTC
2.0.4 in tree