HP-UX C SIP Stack Programmer's Guide (Novembery 2007)
422 HP-UX C SIP Stack Programmer’s Guide
Sample Applications
The simpleSession executable is generated in the current
directory.
5. Run the "file" command on the simpleSession executable:
# file simpleSession
The following output displays:
simpleSession: ELF-64 executable object file -
IA64
This denotes that the executable generated is a 64-bit for a IA-
64 platform.
6. Run the sample application as follows:
# ./simpleSession
EXAMPLE 2 Follow this procedure to compile and link 32-bit a sample application
simpleTlsSession.c with TLS support on a 64-bit IA platform:
1. Set the RV_TLS_TYPE macro in the /usr/include/sip/
common/rvusrconfig.h
directory to RV_TLS_NONE, as
follows:
#define RV_TLS_TYPE RV_TLS_OPENSSL
2.
Set the architecture type RV_ARCH_BITS in the /usr/
include/sip/rvbuildconfig.h
header file to
RV_ARCH_BITS_64, as follows:
#define RV_ARCH_BITS RV_ARCH_BITS_32
3.
Run the following command to compile the sample
application:
# cc +DD32 -I/usr/include/sip -I/usr/include/
sip/sip -I/usr/include/sip/ads -I/usr/include/
sip/common -c simpleTlsSession.c
where:
+DD32 Instructs the compiler to generate a 32-bit code.