环境:
HP下安装的TUXEDO7.1版本,现在的情况时, 在别的服务器上编译好的程序,
放入本机后可以被调用,但在本机不能编译!
编译命令为:
buildserver -r Oracle_XA -o simpserv -f simpserv.c -s TOUUER
显示的出错信息为:
$ buildserver -r Oracle_XA -o simpserv -f simpserv.c -s TOUUER
BS-6ac3.c:
simpserv.c:
/usr/ccs/bin/ld: Unsatisfied symbols:
TOUUER (first referenced in BS-6ac3.o) (code)
CMDTUX_CAT:1832: ERROR: can't execute /usr/bin/cc +DA1.1 +DS1.0 -Wl,+s -I$TUXDIR/include -o simpserv BS-6ac3.c -L${TUXDIR}/lib simpserv.c -ltux -lbuft -L/oracle/app/oracle/product/8.1.7/lib/ -lclntsh `cat /oracle/app/oracle/product/8.1.7/lib/sysliblist` -lm -lpthread -lpthread -lfml -lfml32 -lengine -lpthread -lnsl
源程序为:
#include <stdio.h>
#include <ctype.h>
#include <fml32.h>
#include <userlog.h>
#include <atmi.h>
#ifdef __cplusplus
extern "C"
#endif
void
#if defined(__STDC__) || defined(__cplusplus)
TOUPPER(TPSVCINFO *rqst)
#else
TOUPPER(rqst)
TPSVCINFO *rqst;
#endif
{
int i;
for(i = 0; i < rqst->len; i++)
rqst->data[i] = rqst->data[i];
tpreturn(TPSUCCESS, 0, rqst->data, 0L, 0);
}
其中TUXEDO用户.profile为:
CC=/usr/bin/cc;export CC
TERM=vt100;export TERM;
TUXDIR=/TUX; export TUXDIR
PATH=$TUXDIR/include:$TUXDIR/bin:$PATH; export PATH
COBCPY=:$TUXDIR/cobinclude; export COBCPY
COBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"; export COBOPT
SHLIB_PATH=/TUX/lib:$ORACLE_HOME/lib:/usr/lib:/usr/local/lib:/usr/ucblib; export SHLIB_PATH
TUXCONFIG=/TUX/samples/atmi/simpapp/tuxconfig; export TUXCONFIG
APPDIR=/bea/broad/run; export APPDIR
FIELDTBLS=public.flds; export FIELDTBLS
FLDTBLDIR=/bea/broad/public; export FLDTBLDIR
VIEWDIR=/bea/broad/work/conversation:/bea/tuxedo/tioms/exechome; export VIEWDIR
VIEWFILES=detail01.V,detail.V; export VIEWFILES
NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'; export NLS_DATE_FORMAT
当采用以下命令时, 则显示以下出错信息!
$ buildserver -o simpserv -f simpserv.c -s TOUUER
CMDTUX_CAT:4382: ERROR: You do not have a valid TUXEDO SDK license
--转自