机器:
HP-UX rx3600 B.11.23 U ia64 3628416064 unlimited-user license
profile中的内容:
export HOME=`pwd`
TUXDIR=/home/bea/tuxedo8.1
LIBPATH=$TUXDIR/lib:$LIBPATH
export TUXDIR LIBPATH
#SHLIB_PATH=$TUXDIR/lib:$SHLIB_PATH
LD_LIBRARY_PATH=$TUXDIR/lib:$HOME/lib
PATH=$TUXDIR/bin:$HOME/bin:/usr/bin:/sbin:/bin:.:$PATH
export LD_LIBRARY_PATH SHLIB_PATH
export PATH
Makefile:
SHELL=/bin/sh
CC=cc
CCC=aCC +uc -AA -mlp64
LD=/usr/bin/ld
AR=ar
STA=+Z
DYN=-b
RANLIB=ranlib
#DBPRE=/home/informix/csdk_v28_64/bin/esql
#DBLD=/home/informix/csdk_v28_64/bin/esql
MTFLAG=-mt
CCCMT=aCC +uc -AA -mt
.SUFFIXES: .ecpp .cpp .ec .c .hh .h .so .o .tu
.c.tu:
$(CC) $(CFLAGS) -c $<
.cpp.tu:
$(CCCMT) $(CPPFLAGS) -c $<
.ec.tu:
$(DBPRE) -e $(CPPFLAGS) $*.ec
mv $*.c $*.cpp
$(CCCMT) $(CPPFLAGS) -c $*.cpp
rm $*.cpp
.cpp.o :
$(CCC) $(CPPFLAGS) -c $(STA) $<
.c.o:
${CC} ${CFLAGS} -c $(STA) $<
.o.so :
$(CCC) $(LDFLAGS) $< $(DYN) -o $@ -lapptool $(ADDLIB)
.ec.o:
#$(DBPRE) $(DBCPPFLAGS) $(CFLAGS) -c $< ; rm -f $*.c
$(DBPRE) -e $(CFLAGS) $*.ec
mv $*.c $*.cpp
$(CCC) -D_H_LOCALEDEF $(CFLAGS) -c $*.cpp
rm $*.cpp
SRC=${HOME}/src
##-------------------------------------------------
##应用功能可执行文件编译使用库
MAKEDBIN=$(CCC) $(CPPFLAGS)
MAKESBIN=$(CCC) $(CPPFLAGS)
##-------------------------------------------------
APP=${HOME}/src
BIN=${HOME}/bin
COMMONLIB=${HOME}/lib
COMMONINC=${HOME}/include
##-------------------------------------------------------------
DSOLDFLAGS= -b -Wl,-E $(STA)
DSOLIBCFLAGS=
DSOLIBCXXFLAGS=
DSOLIBLDFLAGS= -b -Wl,-E $(STA)
##-------------------------------------------------------------
#CPPFLAGS=-I${COMMONINC} -I${TUXDIR}/include -I. -D_H_LOCALEDEF -fast -D_HP_UNI
X -D_DEBUG -g +DA2.0w
CPPFLAGS=-I${COMMONINC} -I${TUXDIR}/include -I. -D_H_LOCALEDEF -fast -D_HP_UNIX
-D_DEBUG -g
CFLAGS=${CPPFLAGS}
LIBS=
LDFLAGS=-Wl,+n -mlp64 -L./ -L${COMMONLIB} -L${SHARELIBDIR}
DYLDFLAGS=
ARFLAGS=ru
DYLIBLDFLAGS=-b
DYLIBLDFLAGS=-b
DSOFLAGS=-Wl,-E $(STA)
TUXLDFLAGS=-L${TUXDIR}/lib
##-------------------------------------------------
libmtsserv_SRCS = MtsServ.cpp
libmtsserv_OBJS = MtsServ.o
libmtsserv_TARGET = MtsServ
##-------------------------------------------------
all:$(libmtsserv_TARGET)
$(libmtsserv_TARGET): $(libmtsserv_OBJS)
CC="$(CCC)" buildserver -o $@ -f "$(libmtsserv_OBJS)" -s MTSPRESERV \
-l \
"$(TUXLDFLAG) $(CFLAGS) $(LDFLAGS) "
报错如下:
aCC +uc -AA -mlp64 -I/appa/cssp/mts/include -I/home/bea/tuxedo8.1/includ
e -I. -D_H_LOCALEDEF -fast -D_HP_UNIX -D_DEBUG -g -c +Z MtsServer.cpp
aCC: warning 901: unknown option: `-mlp64': use +help for online documentation.
"MtsServer.cpp", line 61: warning #2837-D: omission of explicit type is
nonstandard ("int" assumed)
tpsvrinit(int argc, char *argv[])
^
CC="aCC +uc -AA -mlp64" buildserver -o MtsServ -f "MtsServer.o" -s MTSP
RESERV \
-l \
" -I/appa/cssp/mts/include -I/home/bea/tuxedo8.1/include -I. -D_
H_LOCALEDEF -fast -D_HP_UNIX -D_DEBUG -g -Wl,+n -mlp64 -L./ -L/appa/cssp/mts/li
b -L -lcsspmsg -lcsspgetkey -lcsspui"
aCC: warning 901: unknown option: `-mlp64': use +help for online documentation.
aCC: warning 901: unknown option: `-mlp64': use +help for online documentation.
ld: Mismatched Data ABI. Expected EF_IA_64_ABI64 but found None in file MtsServe
r.o
Fatal error.
CMDTUX_CAT:1832: ERROR: can't execute aCC +uc -AA -mlp64 +DD64 +Olit=all -Wl,+s
-D__BIGMSGQUEUE_ENABLED -mt -I$TUXDIR/include -o MtsServ BS-5127.c -L${TUXDIR
}/lib MtsServer.o -ltux -lbuft -lfml -lfml32 -lengine -lnsl -I/appa/cssp/mt
s/include -I/home/bea/tuxedo8.1/include -I. -D_H_LOCALEDEF -fast -D_HP_UNIX -D_
DEBUG -g -Wl,+n -mlp64 -L./
*** Error exit code 1
如上问题如何解决呢,谢谢!!
该贴由system转至本版2014-9-16 15:31:57