[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Problems with pthread detection under HPUX 11.0 (ITS#14)
> >The problem is that configure, when executing the AC_CHECK_LIB macro, does
> not
> >include the pthread.h header file. This is required to avoid undefined symbol
> >link
> >errors.
>
> Which symbols were undefined? Can you provide the config.log fragment for
> the failed test?
pthread_create was undefined. To wit:
----8<-----
configure:3678: checking for pthread_create in -lpthread
configure:3697: cc -o conftest -g conftest.c -lpthread -lV3 1>&5
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) was
dete
cted. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
pthread_create (code)
configure: failed program was:
#line 3686 "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; }
----8<-----
I have a patch which works for me at:
http://home.ican.net/~josh/ldap/configure.in.diff
josh
--
Josh Tiefenbach - Member - ACC Corps of Internet Engineers - josh@ican.net