[Date Prev][Date Next] [Chronological] [Thread] [Top]

Thread support fails again



This time it is Solaris on which configure fails with threads.

Looks like configure shouldn't fail if -lc_r (or any other librar) does
not exist

./configure --enable-ldapd --disable-referrals --enable-cldap --enable- 
phonetic --enable-passwd --enable-shell --disable-debug  --disable-cache  --enable-dns
creating cache ./config.cache
checking configure arguments... configure: warning: dns disabled, ignoring --enable-dns argument
done
checking whether ln -s works... yes
checking for a BSD compatible install... /local/gnu/bin/install -c
checking for ranlib... ranlib
checking whether make sets ${MAKE}... yes
checking for sendmail... /usr/lib/sendmail
checking for vi... /bin/vi
checking for finger... /bin/finger
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking for socket... no
checking for main in -lsocket... yes
checking for main in -lnet... no
checking for main in -lnsl_s... no
checking for main in -lnsl... yes
checking for socket in -linet... no
checking for main in -lgen... yes
checking for res_search in -lresolv... yes
checking for sigset in -lV3... no
checking for main in -lxtpp... no
checking for main in -ldsap... no
checking for main in -lisode... no
checking for kerberosIV/krb.h... no
checking for kerberosIV/des.h... no
checking for krb.h... no
checking for des.h... no
checking for pthread.h... yes
checking for sched.h... yes
checking POSIX thread version... final
checking for LinuxThreads... no
checking for pthread_create... no
checking for pthread_create with -pthread... no
checking for pthread_create with -thread... no
checking for pthread_create in -lpthread... no
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... (cached) no
checking for pthread_create in -lc_r... no
configure: error: could not link with POSIX Threads


config.log:


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking configure arguments
configure:1256: checking whether ln -s works
configure:1287: checking for a BSD compatible install
configure:1339: checking for ranlib
configure:1366: checking whether make sets ${MAKE}
configure:1396: checking for sendmail
configure:1428: checking for vi
configure:1460: checking for finger
configure:1493: checking for gcc
configure:1570: checking whether the C compiler (gcc  -L/isode/IC/lib -R/isode/IC/lib) works
configure:1584: gcc -o conftest  -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lisode -lsocket -lnsl 1>&5
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
configure:1604: checking whether the C compiler (gcc  -L/isode/IC/lib -R/isode/IC/lib) is a cross-compiler
configure:1609: checking whether we are using GNU C
configure:1618: gcc -E conftest.c
configure:1633: checking whether gcc accepts -g
configure:1674: checking how to run the C preprocessor
configure:1695: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:1737: checking for AIX
configure:1761: checking for POSIXized ISC
configure:1783: checking for minix/config.h
configure:1793: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:1789: minix/config.h: No such file or directory
configure: failed program was:
#line 1788 "configure"
#include "confdefs.h"
#include <minix/config.h>
configure:1834: checking for socket
configure:1862: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lisode -lsocket -lnsl 1>&5
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
configure:2147: checking for res_search in -lresolv
configure:2166: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lresolv  -lisode -lsocket -lnsl 1>&5
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
configure:2195: checking for sigset in -lV3
configure:2214: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lV3  -lresolv -lisode -lsocket -lnsl 1>&5
ld: fatal: library -lV3: not found
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 2203 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char sigset();

int main() {
sigset()
; return 0; }
configure:2246: checking for main in -lxtpp
configure:2261: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lxtpp -lxtdsap -lxtisode -losi -lresolv -lisode -lsocket -lnsl 1>&5
ld: fatal: library -lxtpp: not found
ld: fatal: library -lxtdsap: not found
ld: fatal: library -lxtisode: not found
ld: fatal: library -losi: not found
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 2254 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:2290: checking for main in -ldsap
configure:2305: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -ldsap -lisode -lresolv -lisode -lsocket -lnsl 1>&5
ld: fatal: library -ldsap: not found
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 2298 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:2334: checking for main in -lisode
configure:2349: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lisode  -lresolv -lisode -lsocket -lnsl 1>&5
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
configure:2381: checking for main in -lpp
configure:2396: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lpp  -lresolv -lisode -lsocket -lnsl 1>&5
ld: fatal: library -lpp: not found
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 2389 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:2427: checking for pepsy
configure:2462: checking for kerberosIV/krb.h
configure:2472: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:2468: kerberosIV/krb.h: No such file or directory
configure: failed program was:
#line 2467 "configure"
#include "confdefs.h"
#include <kerberosIV/krb.h>
configure:2462: checking for kerberosIV/des.h
configure:2472: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:2468: kerberosIV/des.h: No such file or directory
configure: failed program was:
#line 2467 "configure"
#include "confdefs.h"
#include <kerberosIV/des.h>
configure:2556: checking for krb.h
configure:2566: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:2562: krb.h: No such file or directory
configure: failed program was:
#line 2561 "configure"
#include "confdefs.h"
#include <krb.h>
configure:2556: checking for des.h
configure:2566: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:2562: des.h: No such file or directory
configure: failed program was:
#line 2561 "configure"
#include "confdefs.h"
#include <des.h>
configure:2652: checking for pthread.h
configure:2662: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:2652: checking for sched.h
configure:2662: gcc -E -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode conftest.c >/dev/null 2>conftest.out
configure:2691: checking POSIX thread version
configure:2772: checking for LinuxThreads
configure:2798: checking for pthread_create
configure:2826: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lresolv -lisode -lsocket -lnsl 1>&5
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
Undefined			first referenced
 symbol  			    in file
pthread_create                      /var/tmp/cca000LJ1.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 2803 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_create(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
choke me
#else
pthread_create();
#endif

; return 0; }
configure:2848: checking for pthread_create with -pthread
configure:2865: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -pthread -lresolv -lisode -lsocket -lnsl 1>&5
gcc: unrecognized option `-pthread'
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
Undefined			first referenced
 symbol  			    in file
pthread_create                      /var/tmp/cca000LW1.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 2856 "configure"
#include "confdefs.h"
char pthread();
int main() {

					pthread_create();
					
; return 0; }
configure:2889: checking for pthread_create with -thread
configure:2906: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -thread -lresolv -lisode -lsocket -lnsl 1>&5
gcc: unrecognized option `-thread'
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
Undefined			first referenced
 symbol  			    in file
pthread_create                      /var/tmp/cca000Lg1.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 2897 "configure"
#include "confdefs.h"
char pthread();
int main() {

					pthread_create();
					
; return 0; }
configure:2931: checking for pthread_create in -lpthread
configure:2950: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lpthread -lexc -lresolv -lisode -lsocket -lnsl 1>&5
ld: fatal: library -lexc: not found
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 2939 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {
pthread_create()
; return 0; }
configure:2982: checking for pthread_create in -lpthreads
configure:3001: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lpthreads -lmach -lexc -lc_r -lresolv -lisode -lsocket -lnsl 1>&5
ld: fatal: library -lpthreads: not found
ld: fatal: library -lmach: not found
ld: fatal: library -lexc: not found
ld: fatal: library -lc_r: not found
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 2990 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {
pthread_create()
; return 0; }
configure:3033: checking for pthread_create in -lpthread
configure:3080: checking for pthread_create in -lc_r
configure:3099: gcc -o conftest -g -O2 -DPEPSY_DUMP -DICRELEASE=3 -DISODEPACKAGE=IC   -I/isode/IC/include -I/isode/IC/include/isode -L/isode/IC/lib -R/isode/IC/lib conftest.c -lc_r  -lresolv -lisode -lsocket -lnsl 1>&5
ld: fatal: library -lc_r: not found
ld: warning: file /isode/IC/lib/libisode.so: section .stabstr: malformed string table, initial or final byte
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:
#line 3088 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {
pthread_create()
; return 0; }

-- 
Hallvard