rjiejie 发表于 2011-2-7 23:24:19

skyeye-1.3.2_rc1 MAC OS X(SL 10.6.6)make lib异常(变量多重定义)

uname -a
Darwin 179.132.185.60.broad.zs.zj.dynamic.163data.com.cn 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386

gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1. $ ./configure
2. $ make lib
ld: duplicate symbol _instruction in .libs/crx-dis.o and .libs/cr16-dis.o

我看了下源代码,确实这2个文件有部分全局变量都是一样的,不知道如何选择编译,是否有开关控制?谢谢
/* Current opcode table entry we're disassembling.*/
const inst *instruction;
/* Current instruction we're disassembling.*/
ins currInsn;
/* The current instruction is read into 3 consecutive words.*/
wordU words;
/* Contains all words in appropriate order.*/
ULONGLONG allWords;
/* Holds the current processed argument number.*/
int processing_argument_number;
/* Nonzero means a CST4 instruction.*/
int cst4flag;
/* Nonzero means the instruction's original size is
   incremented (escape sequence is used).*/
int size_changed;


是否我的的环境有问题??如何正确make lib?谢谢

rjiejie 发表于 2011-2-7 23:33:58

请高手指导下啊,谢谢
页: [1]
查看完整版本: skyeye-1.3.2_rc1 MAC OS X(SL 10.6.6)make lib异常(变量多重定义)