求UNIX高手,make编译出错,make:*** [xxxx] error 1
在网上看说,make:*** 类型的错误时致命的,本人菜鸟,初学者,望高手赐教。。。。
在Linux系统下编译文件》tuxmake ACCTSHTN
出错内容:
。。。。。
。。。。。
。。。。。
ACCTSHTN.pc:13940: warning: unused variable 'ChargeSum'
ACCTSHTN.pc: At top level:
ACCTSHTN.pc:14081: error: static declaration of 'CalPayRecLateFeeN' follows non-static declaration
ACCTSHTN.pc:14940: warning: implicit declaration of function 'PreSalesPayFeeCheck'
ACCTSHTN.pc: In function 'GetItem_IDICCID':
ACCTSHTN.pc:15150: warning: unused variable 'sUserNum'
ACCTSHTN.pc: In function 'GetNewPrintStr_1':
ACCTSHTN.pc:15678: warning: implicit declaration of function 'GetRealBalance'
ACCTSHTN.pc:15986: warning: implicit declaration of function 'InsPrintStr'
ACCTSHTN.pc:15664: warning: unused variable 'l'
make: *** [ACCTSHTN.o] Error 1
rm -f *.o
rm -f *.so
rm -f *.c
rm -f *.lis
INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level (none)
Booting server processes ...
exec ACCTSHTN -A -r -t -o /acctmgr/ahmob/run/log/ACCTSHTN.log :
CMDTUX_CAT:816: ERROR: Cannot exec, executable file not found
0 processes started.
makefile文件:
BOSSTUX:/>cat ${DEBUGDIR}/tux.mk
#
# Created: guohua
# Date: 2009.09.20
#########ACCTSHTN begin################
ACCTSHTN= -s ACCTSHTN
ACCTSHTNOBJ=ACCTSHTN.o
ACCTSHTN:$(ACCTSHTNOBJ)
rm -f $(BINDIR)/ACCTSHTN
$(SRVBEACOMP) $(ACCTSHTN) -o $(BINDIR)/$@ -f "$(ACCTSHTNOBJ)"
#########acctshtn end ################
tux.mk文件内容:
.SUFFIXES:.cp .pc
RUNDIR=$(HOME)/run
PUBDIR=$(HOME)/run/src/public
ORADIR=$(ORACLE_HOME)
WORKDIR=$(HOME)/run
BINDIR=$(RUNDIR)/bin
XMLDIR=$(LIBXML)/include
SYSDIR=/usr
USRDIR=/usr/lib
CCP= cc -m64 -features=extensions -g -DPLATFORM_TYPE=SOLARIS
#C_COMP=cc -xcode=pic32
#CFLAGS=-xCC -m64 -features=extensions -g -DPLATFORM_TYPE=SOLARIS -D_PROCPATH="\"path/a.out\""
#C_COMP=cc
#CFLAGS=+DD64 -w -Ae -DPLATFORM_TYPE=HP +Z -Wl,+s -D__BIGMSGQUEUE_ENABLED -D__HP_NO_STRING_OVERLOADS -g
C_COMP=gcc
CC=gcc
CFLAGS=-Wall -g
。。。。。。
------解决思路----------------------
ACCTSHTN.pc:14081: error: static declaration of 'CalPayRecLateFeeN' follows non-static declaration
提示很清楚了吧。
声明与定义不相符。
--转自