------- Comment #9 from dave at hiauly1 dot hia dot nrc dot ca 2010-08-12 13:38 ------- Subject: Re: pthread_default_stacksize_np failed.
Hi Olivier, > Hi John, > > PR boehm-gc/34544 > > (__gthread_active_init): Use pthread_default_stacksize_np instead of > > pthread_create to determine if hpux pthreads are active. > > > branches/gcc-4_3-branch/gcc/gthr-posix.h > > After this change, our local 4.3 builds on PA HPUX 11.0 with > Ada fail producing intermediate binaries that aren't linked > with -lpthread (gnatbind to start with), with complaints like > > << /usr/ccs/bin/ld: Unsatisfied symbols: pthread_default_stacksize_np > (first referenced in .../libgcc_eh.a(unwind-dw2-fde.o)) (code) > >> > > Presumably, this used to work because libc provides a dummy pthread_create. > > Thoughts ? The function is present in libc.sl on my PA HPUX 11.00 system. Possibly, this can be fixed by updating your libc version. However, I just noticed that there is no libc stub for pthread_default_stacksize_np in libc.a. Are you doing a static link? Dave -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34544