当前位置: 代码迷 >> AIX >> 关于makefile的异常.
  详细解决方案

关于makefile的异常.

热度:3561   发布时间:2013-02-26 00:00:00.0
关于makefile的错误...
哪位大哥大姐帮我看看错误刚接触makefile也不知道怎么解决.

AGDEV62@/bench/gpf$ ls
DMFuction_end.bc DMInclude_end.h DMT_end DMT_end.dc DMTransfer_end.dc ccda_end.ini extract_end.sh makefile
AGDEV62@/bench/gpf$ make DMT_end
Target "DMT_end" is up to date.
AGDEV62@/bench/gpf$ make
  rm -f *.o *.c *.sqc *.bnd *.ccs
  for af in *.bc; do make `basename $af .bc`.o; done
  xlc_r -g -I/bench/include -c DMFuction_end.c -D_DB2 -DCICS_AIX -I/bench/include -I/opt/IBM/cicstg/include -I/usr/lpp/cics/include -I/opt/IBM/db2/V9.1/include -I/opt/IBM/db2/V9.1/include32  
  ar -X32 -r -u -v /bench/lib/libTF.a DMFuction_end.o 
r - DMFuction_end.o
  for bf in *.dc; do make `basename $bf .dc`.ccs; done
  make -f /bench/pub/make.exe DMT_end.ccs
  db2prep DMT_end

  Database Connection Information

 Database server = DB2/AIX64 9.1.5
 SQL authorization ID = BENCH
 Local database alias = IBORA


LINE MESSAGES FOR DMT_end.sqc
------ --------------------------------------------------------------------
  SQL0060W The "C" precompiler is in progress.
  225 SQL4001N The character " " in column "22" on line "225" is 
  not valid.
  SQL0095N No bind file was created because of previous 
  errors.
  SQL0091W Precompilation or binding was ended with "2" 
  errors and "0" warnings.

LINE MESSAGES FOR DMT_end.bnd
------ --------------------------------------------------------------------
  SQL0061W The binder is in progress.
  SQL0031C File "/bench/gpf/DMT_end.bnd" could not be opened.
  SQL0082C An error has occurred which has terminated 
  processing.
  SQL0092N No package was created because of previous errors.
  SQL0091N Binding was ended with "3" errors and "0" warnings.
DB20000I The SQL command completed successfully.
DB20000I The TERMINATE command completed successfully.
  xlc_r -g -D_DB2 -DCICS_AIX -I/bench/include -I/opt/IBM/cicstg/include -I/usr/lpp/cics/include -I/opt/IBM/db2/V9.1/include -I/opt/IBM/db2/V9.1/include32 -D_LARGE_FILES -o DMT_end DMT_end.c -I/bench/include -L/bench/lib -L/opt/IBM/cicstg/lib -L/usr/lpp/cics/lib -L/opt/IBM/db2/V9.1/lib32 -lIBadv -lIBdb -lIBcom -lIBbase -lIBcommon -lIBtrace -lIBenc -lIBpub -lIBpub1 -lIButils -lpthreads -lcicsrt -lcclaix -ldb2 -lc -lTF  
mv: 0653-401 Cannot rename DMT_end.bnd to /bench/bnd/DMT_end.bnd:
  A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.

在UNIX下写的C程序用makefile 报下面的错 代码应该没有什么问题 我只是稍微的修改了一下makefile也是别人写的
makefile:
# ============================
# 生成可执行程序
# ============================

include $(IBENCHDIR)/pub/ibench.mk

LIBDIR=$(IBENCHDIR)/lib
DMLIBDIR=$(ALIBDIR)
DMADLIBS=$(ADLIBS) -lDM 
DMINC=$(IBENCHDIR)/include
DMFLAG=-I$(DMINC) $(DMLIBDIR) $(DMADLIBS) 
DMTARGET=libDM.a
DSUF=dc


all:
@make clean
for af in *.$(IBSUF); do\
make `basename $$af .$(IBSUF)`.$(OBJSUF);\
done
for bf in *.$(DSUF); do\
make `basename $$bf .$(DSUF)`.$(MIDSUF);\
done
@echo "Compilation complete!" 


clean:
rm -f *.$(OBJSUF) *.$(CSUF) *.$(DBSUF) *.bnd *.$(MIDSUF)

.$(IBSUF).$(OBJSUF):
@cp -f $*.$(IBSUF) $*.$(CSUF)
  相关解决方案