Operating System - HP-UX
1836876 Members
2183 Online
110110 Solutions
New Discussion

Problem Porting DCE Threaded Code to POSIX Threaded Code

 
Courtney Brown_1
Occasional Advisor

Problem Porting DCE Threaded Code to POSIX Threaded Code

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...)?

we are using a DCE cell and 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