HP-UX C SIP Stack Programmer's Guide (Novembery 2007)

424 HP-UX C SIP Stack Programmers Guide
Sample Applications
This shows that executable generated is a 64-bit for IA-64
platform.
6. Run the sample application, as follows:
# ./ simpleTlsSession
EXAMPLE 3 Follow this procedure to compile and link a 64-bit sample application
simpleSession.c without TLS support on a 64-bit PA platform:
1. Set RV_TLS_TYPE in /usr/include/sip/common/
rvusrconfig.h
to RV_TLS_NONE, as follows:
#define RV_TLS_TYPE RV_TLS_OPENSSL
2.
Set the architecture type RV_ARCH_BITS in /usr/include/
sip/rvbuildconfig.h
to RV_ARCH_BITS_64, as follows:
#define RV_ARCH_BITS RV_ARCH_BITS_64
3. Run the following command to compile the sample
application:
cc +DA2.0W -I/usr/include/sip -I/usr/include/
sip/sip -I/usr/include/sip/ads -I/usr/include/
sip/common -c simpleSession.c
+DA2.0W
Instructs the compiler to generate 64-bit code
4. Linking of test application
cc +DA2.0W -o simpleSession ./simpleSession.o -
L/usr/lib/pa20_64/sip -lrvsip -lrvads -
lrvcommon -L/usr/lib/pa20_64 -lnsl –ldl -lrt –
lpthread
Note The option -L/usr/lib/pa20_64/sip specifies the 64-bit Non-TLS
libraries.
5. Run the "file" command on the executable:
# file simpleSession