Can Not Compile simpappssl Application Provided By Tuxedo Product (Doc ID 1388192.1)

Last updated on NOVEMBER 04, 2016

Applies to:

Oracle Tuxedo - Version: 10.3.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

TUXEDO provides CORBA application samples.

One of them, simpappssl, located in $TUXDIR/samples/corba/simpappssl can not be compiled on Linux x86-64 platform.

The compiler used is:
               gcc version 4.1.2 20080704 (Red Hat 4.1.2-46).

simples.cpp file can not be compiled because the inclusion file strstream.h is not found :
simples.cpp:40:23: error: strstream.h: No such file or directory


Of course, the class ostrstream referred in this inclusion file can not be found be found:
simples.cpp:141: error: 'ostrstream' was not declared in this scope


Changes

To reproduce the problem, execute the following steps :
  • Copy $TUXDIR/samples/corba/simpappssl in a working directory
  • Set up the environment.
  • Build the client and server files using make utility :
$ make -f makefile.mk
buildobjserver -v -o simple_server -f "simple_c.cpp simple_s.cpp simple_i.cpp simples.cpp"
g++ -w -D_REENTRANT -I$TUXDIR/include -o simple_server BS-66bf.cpp -L${TUXDIR}/lib simple_c.cpp simple_s.cpp simple_i.cpp simples.cpp ${TUXDIR}/lib/tgiopservice.o ${TUXDIR}/lib/tpfwinit.o -lenv -lomg -lnative -lorb -lorbpoa -lorbutl -ltmib -licbgp -lskel -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread -lpthread
simples.cpp:39:23: error: strstream.h: No such file or directory
simples.cpp: In function 'char* generate_unique_id()':
simples.cpp:140: error: 'ostrstream' was not declared in this scope
simples.cpp:140: error: expected `;' before 'os'
simples.cpp:141: error: 'os' was not declared in this scope
simples.cpp:141: error: 'hex' was not declared in this scope
simples.cpp:141: error: 'ends' was not declared in this scope
CMDTUX_CAT:1832: ERROR: can't execute g++ -w -D_REENTRANT -I$TUXDIR/include -o simple_server BS-66bf.cpp -L${TUXDIR}/lib simple_c.cpp simple_s.cpp simple_i.cpp simples.cpp ${TUXDIR}/lib/tgiopservice.o ${TUXDIR}/lib/tpfwinit.o -lenv -lomg -lnative -lorb -lorbpoa -lorbutl -ltmib -licbgp -lskel -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread -lpthread
make: *** [simple_server] Error 1
$
 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms