当我运行make文件时,我收到此错误
"obj/viojournal.o:文件无法识别:文件格式无法识别collect2:ld返回1退出状态"
和make文件如下
如何解决这个问题.我在centos 5.4 linx 64bit机器上使用gcc编译器.
all: libvioft.so fdump syncer
CPPFLAGS = -I/usr/include/libxml2 -I../clogger -I../marshall -I../ddp \
-I../http -I../xml -I../nfsop -I../include/common -I../restful \
-I../include/oneGrid
CFLAGS = -g3 -Wall -Wextra -fPIC -DREPLICATION_ENABLED -DJOURNALING_ENABLED
#CFLAGS = -g3 -Wall -Wextra -fPIC
LDFLAGS = -Wl,-rpath=\$$ORIGIN -Wl,-rpath=\$$ORIGIN/../clogger \
-Wl,-rpath=\$$ORIGIN/../marshall -Wl,-rpath=\$$ORIGIN/../ddp \
-Wl,-rpath=\$$ORIGIN/../http -Wl,-rpath=\$$ORIGIN/../xml \
-Wl,-rpath=\$$ORIGIN/../restful
LIBS = -lpthread -lssl -lxml2 -lbz2 -L../clogger -lclogger \
-L../marshall -lmarshall -L../ddp -lddp -L../nfsop -lnfsop
libsources = filefs.c viojournal.c recvReplicaUpdate.c syncer.c hostops.c filetable.c updateRemoteFT.c checkpoint.c
#libsources = filefs.c viojournal.c …Run Code Online (Sandbox Code Playgroud)