Operating System - HP-UX
1833758 Members
2904 Online
110063 Solutions
New Discussion

Re: DCE pthreads to POSIX pthreads port

 
Courtney Brown_1
Occasional Advisor

DCE pthreads to POSIX pthreads port

I'm having difficulty with this port. The code changes were fairly straight forward but the programs are acting up. I always run into a problem with the first pthread_* call. In one case it is a pthread_once that never executes the initialization function. In another it is a bus error (core dump) as soon as I run the pthread_attr_init function. Does anyone have any suggestions on what to consider (includes, paths, libraries...)?
2 REPLIES 2
Wodisch
Honored Contributor

Re: DCE pthreads to POSIX pthreads port

Hello,

what HP-UX release do you use?

What are your linker- and compiler-flags (LDFLAGS and CFLAGS in your Makefile)?

Do you work in a DCE-cell or without DCE?

Without these piecs of information I am not really able to help much :-(

There is a readme about this in the release notes of DCE1.7, IIRC...

Regards,
Wodisch
Courtney Brown_1
Occasional Advisor

Re: DCE pthreads to POSIX pthreads port

HPUX 11, yes we are using a DCE cell
Here is a typical compile:

/usr/bin/cc -I../util -I/usr/include -I/usr/include/dce -I/usr/include/reentrant -Aa -D_POSIX_SOURCE -D_HPUX_SOURCE -D_REENTRANT -D_POSIX_D10_THREADS +z
-v -g -c signal.c

Here is a build for a shared library:

ld +h libwgutil.sl -b -E -L/usr/local/lib -L. -L/wgtest/ctp/lib -L/wgtest/phoenix/sys/shared/lib -L/orahome/app/oracle/product/8.1.7/lib -L/usr/local/li
b -ldcekt -lpthread -o libwgutil.sl attribute.o buffer.o condition.o config.o dispatcher.o environment.o llist.o reference.o signal.o