JohnCremona / eclib

The eclib package includes mwrank (for 2-descent on elliptic curves over Q) and modular symbol code used to create the elliptic curve database.
GNU General Public License v2.0
21 stars 15 forks source link

added ax_pthread.m4 to m4 directory #49

Closed JohnCremona closed 5 years ago

JohnCremona commented 5 years ago

Hoping this deals with Issue #48

jdemeyer commented 5 years ago

Seems to work

jdemeyer commented 5 years ago

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
JohnCremona commented 5 years ago

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