Sorry hit send too soon...
On Thu, 2 Aug 2018 at 14:18, Michael Hudson-Doyle <
address@hidden> wrote:
Michael Hudson-Doyle wrote:
> > It sounds like you are using $(LIBMULTITHREAD) when you should in fact
> > be using $(LTLIBMULTITHREAD). See the module description:
>
> This doesn't seem to help. ... I'm just a distro maintainer
> stabbing in the dark here!
I may have the light. But I don't know where in the cave you are.
Heh, fair.
So, can you please give a "How to reproduce" sequence:
- What is the source code/package you are starting with?
I am looking at the build of 'hivex on Ubuntu Cosmic:
Log here:
- What operations do you do on it?
I've been running sbuild, which probably is only helpful for you if you have a Debian/Ubuntu development environment set up. But just getting the upstream tarball from
http://download.libguestfs.org/hivex/hivex-1.3.15.tar.gz and running ./configure && make && make check reproduces the problem for me in a cosmic container.
- What is the error you now get, now that it properly uses
LTLIBMULTITHREAD ?
Well the test fails in the same way as before and for the same reason:
address@hidden:~/hivex-1.3.15/gnulib/tests# rm test-rwlock1
address@hidden:~/hivex-1.3.15/gnulib/tests# make test-rwlock1 V=1
/bin/bash ../../libtool --tag=CC --preserve-dup-deps --mode=link gcc -g -O2 -o test-rwlock1 test-rwlock1.o libtests.a ../../gnulib/lib/
libgnu.la libtests.a -pthread -lrt
libtool: link: gcc -g -O2 -o test-rwlock1 test-rwlock1.o -pthread libtests.a ../../gnulib/lib/.libs/libgnu.a libtests.a -lrt -pthread
address@hidden:~/hivex-1.3.15/gnulib/tests# ./test-rwlock1
Unexpected outcome 3
Aborted (core dumped)
address@hidden:~/hivex-1.3.15/gnulib/tests# readelf -d test-rwlock1 | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
Cheers,
mwh