linking libqb on openbsd fails

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

linking libqb on openbsd fails

Jiri B-2
Hi,

I try to build libqb library and it fails with following output, any idea
what could be wrong there?

Originally reported at https://github.com/ClusterLabs/libqb/issues/299

(libqb is prerequisite for corosync/pacemaker stuff)

Jiri

=2E..
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I../include/qb -I..=
/include -I../include -O2 -pipe -Wall -Wextra -Wunused -Wshadow -Wmissing-p=
rototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrit=
e-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wflo=
at-equal -Wformat=3D2 -Woverlength-strings -Winit-self -Wuninitialized -Wun=
known-pragmas -Wno-unused-parameter -Wno-format-nonliteral -Wno-sign-compar=
e -MT strchrnul.lo -MD -MP -MF .deps/strchrnul.Tpo -c strchrnul.c  -fPIC -D=
PIC -o .libs/strchrnul.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I../include/qb -I..=
/include -I../include -O2 -pipe -Wall -Wextra -Wunused -Wshadow -Wmissing-p=
rototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrit=
e-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wflo=
at-equal -Wformat=3D2 -Woverlength-strings -Winit-self -Wuninitialized -Wun=
known-pragmas -Wno-unused-parameter -Wno-format-nonliteral -Wno-sign-compar=
e -MT strchrnul.lo -MD -MP -MF .deps/strchrnul.Tpo -c strchrnul.c -o strchr=
nul.o >/dev/null 2>&1
cc -E -xc -I../include -D_GNU_SOURCE -C -P qblog_script.ld.in \
  | sed -n "/$(sed -n '/^[^#]/{s/[*\/]/\\&/g;p;q;}' qblog_script.ld.in)/,$ =
p" \
  > qblog_script.ld
/usr/local/bin/libtool  --tag=3DCC   --mode=3Dlink cc -pthread -O2 -pipe   =
   -Wall -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wmissing-declarati=
ons -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-=
function-cast -Wmissing-format-attribute -Wfloat-equal -Wformat=3D2 -Woverl=
ength-strings -Winit-self -Wuninitialized -Wunknown-pragmas -Wno-unused-par=
ameter -Wno-format-nonliteral -Wno-sign-compare  -version-info 19:0:19  -o =
libqb.la -rpath /usr/local/lib libqb_la-util.lo libqb_la-hdb.lo libqb_la-ri=
ngbuffer.lo libqb_la-ringbuffer_helper.lo libqb_la-array.lo libqb_la-loop.l=
o libqb_la-loop_poll.lo libqb_la-loop_job.lo libqb_la-loop_timerlist.lo lib=
qb_la-ipcc.lo libqb_la-ipcs.lo libqb_la-ipc_shm.lo libqb_la-ipc_setup.lo li=
bqb_la-ipc_socket.lo libqb_la-log.lo libqb_la-log_thread.lo libqb_la-log_bl=
ackbox.lo libqb_la-log_file.lo libqb_la-log_syslog.lo libqb_la-log_dcs.lo l=
ibqb_la-log_format.lo libqb_la-map.lo libqb_la-skiplist.lo libqb_la-hashtab=
le.lo libqb_la-trie.lo libqb_la-unix.lo   libqb_la-loop_poll_kqueue.lo  str=
chrnul.lo    qblog_script.la=20

*** Warning: This system can not link to static lib archive qblog_script.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
libtool: link: cc -shared  -fPIC -DPIC -o .libs/libqb.so.19.0  .libs/libqb_=
la-util.o .libs/libqb_la-hdb.o .libs/libqb_la-ringbuffer.o .libs/libqb_la-r=
ingbuffer_helper.o .libs/libqb_la-array.o .libs/libqb_la-loop.o .libs/libqb=
_la-loop_poll.o .libs/libqb_la-loop_job.o .libs/libqb_la-loop_timerlist.o .=
libs/libqb_la-ipcc.o .libs/libqb_la-ipcs.o .libs/libqb_la-ipc_shm.o .libs/l=
ibqb_la-ipc_setup.o .libs/libqb_la-ipc_socket.o .libs/libqb_la-log.o .libs/=
libqb_la-log_thread.o .libs/libqb_la-log_blackbox.o .libs/libqb_la-log_file=
=2Eo .libs/libqb_la-log_syslog.o .libs/libqb_la-log_dcs.o .libs/libqb_la-lo=
g_format.o .libs/libqb_la-map.o .libs/libqb_la-skiplist.o .libs/libqb_la-ha=
shtable.o .libs/libqb_la-trie.o .libs/libqb_la-unix.o .libs/libqb_la-loop_p=
oll_kqueue.o .libs/strchrnul.o    -pthread -O2 -pthread   -pthread -Wl,/usr=
/ports/pobj/libqb-1.0.3/libqb-1.0.3/lib/qblog_script.ld
/usr/bin/ld: section __verbose [00000000002351f8 -> 0000000000236a7f] overl=
aps section .bss [0000000000225060 -> 0000000000235f87]
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:740: libqb.la] Error 1
gmake[2]: Leaving directory '/usr/ports/pobj/libqb-1.0.3/libqb-1.0.3/lib'
gmake[1]: *** [Makefile:513: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/pobj/libqb-1.0.3/libqb-1.0.3'
gmake: *** [Makefile:438: all] Error 2
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2742 '/usr/ports=
/pobj/libqb-1.0.3/.build_done')
*** Error 1 in /usr/ports/devel/libqb (/usr/ports/infrastructure/mk/bsd.por=
t.mk:2419 'all')

$ sysctl kern.version                                                      =
                                                                           =
                                                      =20
kern.version=3DOpenBSD 6.3-beta (GENERIC) #25: Fri Mar  2 22:51:43 MST 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC

$ /usr/ports/pobj/libqb-1.0.3/bin/cc -v=20
OpenBSD clang version 5.0.1 (tags/RELEASE_501/final) (based on LLVM 5.0.1)
Target: amd64-unknown-openbsd6.3
Thread model: posix
InstalledDir: /usr/bin
$ /usr/local/bin/libtool --version     =20
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit <[hidden email]>, 1996

Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ make show=3DCONFIGURE_ARGS             =20
--with-socket-dir=3D/var/run/qb  --disable-static --prefix=3D'/usr/local' -=
-sysconfdir=3D'/etc' --mandir=3D'/usr/local/man' --infodir=3D'/usr/local/in=
fo' --localstatedir=3D'/var' --disable-silent-rules --disable-gtk-doc