Operating System - HP-UX
1833873 Members
1907 Online
110063 Solutions
New Discussion

dce pthread application on hpux11.0

 
Umapathy S
Honored Contributor

dce pthread application on hpux11.0

hi
I had written some Encina/DCE applications using HP DCE/9000 1.7.

I compiled my programs with gcc with the following flags
-D_HPUX_11 -D_HPUX_SOURCE -D_REENTRANT -Dunix -Dhpux -Dhp9000s800 -D_POSIX_D10_THREADS -D_POSIX_C_SOURCE=199506L

When I try to run the program in the encina environment it gives me the following errors.
Assertion failed: 0 == __thread_mutex_lock(AC_arena_rmutex), file ../../../../../core/libs/libc/shared_pa1/../core/gen/malloc.c, line 1828

I think I may be missing a patch or SHLIB_PATH not set properly or some other errors.

Please help me in resolving this. Any pointers, information are greatly appreciated

thanks and regards
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
2 REPLIES 2
Mike Stroyan
Honored Contributor

Re: dce pthread application on hpux11.0

You may have linked such that the program is using the stub versions of pthread functions from libc instead of the true versions from libpthread. Check that you linked with -ldcekt and -lpthread. You should not explictly link in -lc.
You could compare your link line to the examples in this posting by one of the transarc folks-
http://dsportal.eservices.hp.com/hpux-devtools/CXX/hpux-devtools.0201/0017.html
Umapathy S
Honored Contributor

Re: dce pthread application on hpux11.0

Thanks a lot for the link Mike. Now I will be following that to make my way.

warm regards
Umapathy
Arise Awake and Stop NOT till the goal is Reached!