- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compiling HP-UX 10.20 legacy code based on DCE 1.5...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2001 06:49 AM
01-18-2001 06:49 AM
Compiling HP-UX 10.20 legacy code based on DCE 1.5 on HP11
Greetings,
We have developed an application based on DCE 1.5 (SEC/CDS).
Does anyone know if it is possible to compile on HP-UX 11 without changing
the code?
Thanks in advance for your help,
Kind Regards,
Rui.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2001 03:31 PM
01-20-2001 03:31 PM
Re: Compiling HP-UX 10.20 legacy code based on DCE 1.5 on HP11
you will have to change the "Makefile"s, especially for
the change from user-level threads to kernel-level
threads, and for the change in the API itself.
It is mostly done with a few define options to the
C-compiler. Read the example sources, which come
with the DCE-packages.
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2001 12:54 AM
01-22-2001 12:54 AM
Re: Compiling HP-UX 10.20 legacy code based on DCE 1.5 on HP11
1. Threads
Based on Draft4 of POSIX 1003.4a. This thread implementation
is entirely in user-space. Applications need to compile with
-D_REENTRANT -D_PTHREADS_DRAFT4 and link with libcma for threads.
(libdce will cause libcma to be loaded also).
Programs need to include at the *TOP* of their
code when using threads. Also, the threaded program needs to
be written in ANSI C. Compilation of the thread program will
use a commmand like this:
HP-UX 10.20
$ cc -Aa -D_REENTRANT -D_HPUX_SOURCE source.c -lbb -ldce
HP-UX 11.0
$ cc -Aa -D_REENTRANT -D_HPUX_SOURCE -D_PTHREADS_DRAFT4 source.c -lbb -ldce
Support for HP-UX kernel threads is now available at HP-UX 11.0
in a separate library (libdcekt.sl) and is based on POSIX 1003.1c.
Applications need to compile with either the -D_POSIX_D10_THREADS
or with the define _POSIX_C_SOURCE set to 199506L.
$ cc -Aa -D_REENTRANT -D_HPUX_SOURCE -D_POSIX_D10_THREADS source.c -ldcekt -lpthread (or pthread_tr)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2001 08:14 AM
01-29-2001 08:14 AM
Re: Compiling HP-UX 10.20 legacy code based on DCE 1.5 on HP11
First of all thanks a lot for your extreme valuable contribution!
Alex,
Thanks to your suggestion we have already started to compile our DCE 1.5 based software on a HP-UX 11 where we installed DCE 1.5.
So far,... so good!
I?ve seen from previous posts that you must be a DCE expert!
May be you can give me some additional help:
What about running software compiled on HP-UX 10.20 with DCE 1.5 on HP11 with DCE 1.7?
Thanks in advance for your help!
Kind Regards,
Rui.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 04:39 AM
06-11-2001 04:39 AM
Re: Compiling HP-UX 10.20 legacy code based on DCE 1.5 on HP11
using kernel threads to be run on HP UX 11.0.
When attempting to use libdcekt, we received unresolved references when compiling the application code with just -D_REENTRANT -D_POSIX_D10_THREADS. If we also include -D_PTHREADS_DRAFT4, the unresolved references go away, but we receive unsatisfied symbols (we had removed libdce / libcma and replaced it with libdcekt and libpthread). The unsatisfied symbols seem to go away when libdce is also included, but of course this causes a core dump when attempting to run.
Can you point me to either the correct usage of the
compile flags and libraries or at least some documentation for this.
Thanks,
-Nancy