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

Configuration 425
Sample Applications
simpleSession: ELF-64 executable object file -
PA-RISC 2.0 (LP64)
6.
Run the sample application, as follows:
# ./ simpleSession
EXAMPLE 4 Follow this procedure to compile and link a 32-bit sample application
simpleSessionTLS.c with 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 RV_ARCH_BITS in /usr/include/sip/
rvbuildconfig.h
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 +DA2.0 +DS2.0 -I/usr/include/sip -I/usr/
include/sip/sip -I/usr/include/sip/ads -I/usr/
include/sip/common -c simpleSessionTLS.c
-I/usr/include/sip -I/usr/include/sip/sip -I/
usr/include/sip/ads -I/usr/include/sip/common
Sets up the search path for header files
4. Linking of test application
cc +DA2.0 +DS2.0 -o simpleTlsSession ./
simpleTlsSession.o -L/usr/lib/sip/TLS -lrvsip -
lrvads -lrvcommon -L/usr/lib -lnsl -lrt -
lpthread -lcrypto -lssl