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

ERrror message from ./configure (ITS#493)



This is a multi-part message in MIME format.
--------------E2C6D2013016AF915E630046
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Running configure (without editing include/ldapconfig.h.edit) on a sparc
running solaris 2.7 I got the error message:

configure: error: pthread.h and pthread_create are not compatible

I am attaching the config.log file plus the output of the run..

I was using openldap-1.2.9

Thanks.

Mohamed Ellozy

--------------E2C6D2013016AF915E630046
Content-Type: text/plain; charset=us-ascii;
 name="config.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="config.log"

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

configure:624: checking for a BSD compatible install
configure:681: checking whether build environment is sane
configure:742: checking for mawk
configure:742: checking for gawk
configure:772: checking whether make sets ${MAKE}
configure:812: checking for working aclocal
configure:825: checking for working autoconf
configure:838: checking for working automake
configure:851: checking for working autoheader
configure:864: checking for working makeinfo
configure:884: checking for gnutar
configure:884: checking for gtar
configure:884: checking for tar
configure:925: checking configure arguments
configure:1648: checking host system type
configure:1723: checking for a BSD compatible install
configure:1804: checking build system type
configure:1845: checking for ranlib
configure:1875: checking for gcc
configure:1988: checking whether the C compiler (gcc   ) works
configure:2004: gcc -o conftest    conftest.c  1>&5
configure:2030: checking whether the C compiler (gcc   ) is a cross-compiler
configure:2035: checking whether we are using GNU C
configure:2044: gcc -E conftest.c
configure:2063: checking whether gcc accepts -g
configure:2106: checking for ld used by GCC
configure:2169: checking if the linker (/usr/ccs/bin/ld) is GNU ld
configure:2185: checking for BSD-compatible nm
configure:2222: checking whether ln -s works
ltconfig:603: checking for object suffix
ltconfig:604: gcc -c -g -O2  conftest.c 1>&5
ltconfig:629: checking for executable suffix
ltconfig:630: gcc -o conftest -g -O2   conftest.c  1>&5
ltconfig:776: checking if gcc PIC flag -fPIC works
ltconfig:777: gcc -c -g -O2 -fPIC -DPIC  conftest.c 1>&5
ltconfig:829: checking if gcc supports -c -o file.o
ltconfig:830: gcc -c -g -O2 -o out/conftest2.o  conftest.c 1>&5
ltconfig:862: checking if gcc supports -c -o file.lo
ltconfig:863: gcc -c -g -O2 -c -o conftest.lo  conftest.c 1>&5
ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:915: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
ltconfig:958: checking if gcc static flag -static works
ltconfig:959: gcc -o conftest -g -O2   -static conftest.c  1>&5
ltconfig:1592: checking if global_symbol_pipe works
ltconfig:1593: gcc -c -g -O2  conftest.c 1>&5
ltconfig:1596: eval "/sol/bin/nm -B conftest.o | sed -n -e 's/^.*[ 	]\([ABCDGISTW]\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1648: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions   conftest.c conftstm.o 1>&5
configure:2352: checking for sendmail
configure:2388: checking for vi
configure:2424: checking for finger
configure:2472: checking how to run the C preprocessor
configure:2493: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2553: checking for AIX
configure:2577: checking for POSIXized ISC
configure:2599: checking for minix/config.h
configure:2609: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2605: minix/config.h: No such file or directory
configure: failed program was:
#line 2604 "configure"
#include "confdefs.h"
#include <minix/config.h>
configure:2648: checking for be_app in -lbe
configure:2667: gcc -o conftest -g -O2   conftest.c -lbe -lroot -lnet  1>&5
ld: fatal: library -lbe: not found
ld: fatal: library -lroot: not found
ld: fatal: library -lnet: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2656 "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 be_app();

int main() {
be_app()
; return 0; }
configure:2693: checking for gcc option to accept ANSI C
configure:2747: gcc  -c -g -O2  conftest.c 1>&5
configure:2778: checking for socket
configure:2807: gcc -o conftest -g -O2   conftest.c  1>&5
Undefined			first referenced
 symbol  			    in file
socket                              /var/tmp/cctQkHXt.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2783 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char socket(); 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 socket();
char (*f)();

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_socket) || defined (__stub___socket)
choke me
#else
f = socket;
#endif

; return 0; }
configure:2826: checking for main in -lsocket
configure:2841: gcc -o conftest -g -O2   conftest.c -lsocket   1>&5
configure:2869: checking for main in -lnet
configure:2884: gcc -o conftest -g -O2   conftest.c -lnet  -lsocket  1>&5
ld: fatal: library -lnet: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2877 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:2912: checking for main in -lnsl_s
configure:2927: gcc -o conftest -g -O2   conftest.c -lnsl_s  -lsocket  1>&5
ld: fatal: library -lnsl_s: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2920 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:2955: checking for main in -lnsl
configure:2970: gcc -o conftest -g -O2   conftest.c -lnsl  -lsocket  1>&5
configure:2998: checking for socket in -linet
configure:3017: gcc -o conftest -g -O2   conftest.c -linet  -lnsl -lsocket  1>&5
ld: fatal: library -linet: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3006 "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 socket();

int main() {
socket()
; return 0; }
configure:3045: checking for main in -lgen
configure:3060: gcc -o conftest -g -O2   conftest.c -lgen  -lnsl -lsocket  1>&5
configure:3094: checking for res_search
configure:3123: gcc -o conftest -g -O2   conftest.c -lgen -lnsl -lsocket  1>&5
Undefined			first referenced
 symbol  			    in file
res_search                          /var/tmp/cckSrcSO.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3099 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char res_search(); 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 res_search();
char (*f)();

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_res_search) || defined (__stub___res_search)
choke me
#else
f = res_search;
#endif

; return 0; }
configure:3149: checking for res_search in -lbind
configure:3168: gcc -o conftest -g -O2   conftest.c -lbind  -lgen -lnsl -lsocket  1>&5
ld: fatal: library -lbind: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3157 "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 res_search();

int main() {
res_search()
; return 0; }
configure:3202: checking for res_search in -lresolv
configure:3221: gcc -o conftest -g -O2   conftest.c -lresolv  -lgen -lnsl -lsocket  1>&5
configure:3258: checking for sigset in -lV3
configure:3277: gcc -o conftest -g -O2   conftest.c -lV3  -lresolv -lgen -lnsl -lsocket  1>&5
ld: fatal: library -lV3: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3266 "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:3532: checking for kerberosIV/krb.h
configure:3542: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3538: kerberosIV/krb.h: No such file or directory
configure: failed program was:
#line 3537 "configure"
#include "confdefs.h"
#include <kerberosIV/krb.h>
configure:3532: checking for kerberosIV/des.h
configure:3542: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3538: kerberosIV/des.h: No such file or directory
configure: failed program was:
#line 3537 "configure"
#include "confdefs.h"
#include <kerberosIV/des.h>
configure:3671: checking for krb.h
configure:3681: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3677: krb.h: No such file or directory
configure: failed program was:
#line 3676 "configure"
#include "confdefs.h"
#include <krb.h>
configure:3671: checking for des.h
configure:3681: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3677: des.h: No such file or directory
configure: failed program was:
#line 3676 "configure"
#include "confdefs.h"
#include <des.h>
configure:3771: checking for pthread.h
configure:3781: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3771: checking for sched.h
configure:3781: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3810: checking POSIX thread version
configure:3891: checking for LinuxThreads
configure:3917: checking for pthread_create
configure:3946: gcc -o conftest -g -O2   conftest.c -lresolv -lgen -lnsl -lsocket  1>&5
configure:4769: checking for sched_yield
configure:4798: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
Undefined			first referenced
 symbol  			    in file
sched_yield                         /var/tmp/cckTV7Om.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4774 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield(); 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 sched_yield();
char (*f)();

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_sched_yield) || defined (__stub___sched_yield)
choke me
#else
f = sched_yield;
#endif

; return 0; }
configure:4769: checking for pthread_yield
configure:4798: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
Undefined			first referenced
 symbol  			    in file
pthread_yield                       /var/tmp/cctGokSn.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4774 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pthread_yield(); 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_yield();
char (*f)();

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_yield) || defined (__stub___pthread_yield)
choke me
#else
f = pthread_yield;
#endif

; return 0; }
configure:4826: checking for sched_yield in -lrt
configure:4845: gcc -o conftest -g -O2   conftest.c -lrt   -lresolv -lgen -lnsl -lsocket  1>&5
configure:4940: checking for pthread_kill
configure:4969: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
configure:4995: checking for pthread_detach with <pthread.h>
configure:5008: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
configure:5040: checking for pthread_setconcurrency
configure:5069: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
configure:5040: checking for pthread_getconcurrency
configure:5069: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
configure:5040: checking for thr_setconcurrency
configure:5069: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
configure:5040: checking for thr_getconcurrency
configure:5069: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
configure:5095: checking if pthread_create() works
configure:5127: gcc -o conftest -g -O2   conftest.c  -lresolv -lgen -lnsl -lsocket  1>&5
configure: failed program was:
#line 5104 "configure"
#include "confdefs.h"

#include <pthread.h>
#ifndef NULL
#define NULL (void*)0
#endif

static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;
	exit(pthread_create(&t, NULL, task, NULL));
}


--------------E2C6D2013016AF915E630046
Content-Type: text/plain; charset=us-ascii;
 name="config.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="config.out"

checking for a BSD compatible install... /sol/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for gnutar... no
checking for gtar... no
checking for tar... tar
checking configure arguments... done
checking host system type... sparc-sun-solaris2.7
checking for a BSD compatible install... /sol/bin/install -c
checking build system type... sparc-sun-solaris2.7
checking for ranlib... ranlib
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 for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /sol/bin/nm -B
checking whether ln -s works... yes
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking command to parse /sol/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.7 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
not updating unwritable cache ./config.cache
checking for sendmail... /usr/lib/sendmail
checking for vi... /bin/vi
checking for finger... /sol/bin/finger
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 be_app in -lbe... no
checking for gcc option to accept ANSI C... none needed
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... no
checking for res_search in -lbind... no
checking for res_search in -lresolv... yes
checking for sigset in -lV3... 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... yes
checking for sched_yield... no
checking for pthread_yield... no
checking for sched_yield in -lrt... yes
checking for pthread_kill... yes
checking for pthread_detach with <pthread.h>... yes
checking for pthread_setconcurrency... yes
checking for pthread_getconcurrency... yes
checking for thr_setconcurrency... yes
checking for thr_getconcurrency... yes
checking if pthread_create() works... no
configure: error: pthread.h and pthread_create are not compatible

--------------E2C6D2013016AF915E630046--