Closed JohnCremona closed 5 years ago
Seems to work
I get
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
I get exactly the same output from configure, on (1) a machine running ubuntu 18.04 with gcc 7.3.0; (2) ubuntu 16.04 and gcc 5.4.0; (3) ubuntu 14.04 and gcc 4.8.4.
On all three, make works fine, but on (3) only, make check fails to build some binaries with the message
/bin/sh ../libtool --tag=CXX --mode=link g++ -std=gnu++11 -g -O2 -o bigrattest bigrattest.o ../libsrc/libec.la -lflint -lpari -lntl
libtool: link: g++ -std=gnu++11 -g -O2 -o .libs/bigrattest bigrattest.o ../libsrc/.libs/libec.so -lflint -lpari -lntl
//usr/local/lib/libntl.so: undefined reference to 'pthread_key_create'
//usr/local/lib/libntl.so: undefined reference to 'pthread_setspecific'
collect2: error: ld returned 1 exit status
Hoping this deals with Issue #48