Talk:AFF Development Task List

From ForensicsWiki
Jump to: navigation, search

Error messages when attempting to make a shared library on 64-bit Fedora Core 7.

[root@localhost lib]# g++ -shared -o libaff.so -g -O2 aff_db.o aff_toc.o afflib.o afflib_os.o afflib_pages.o afflib_stream.o afflib_util.o base64.o lzma_glue.o s3_glue.o vnode_aff.o vnode_afd.o vnode_afm.o vnode_ewf.o vnode_raw.o vnode_s3.o vnode_split_raw.o aftimer.o LzmaBench.o LzmaRam.o LzmaRamDecode.o LzmaDecode.o BranchX86.o LZMADecoder.o LZMAEncoder.o LZInWindow.o LZOutWindow.o RangeCoderBit.o InBuffer.o OutBuffer.o StreamUtils.o Alloc.o CommandLineParser.o CRC.o String.o StringConvert.o StringToInt.o Vector.o -lssl -lcrypto -lz -lexpat -lcurl -lncurses

/usr/bin/ld: aff_db.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

aff_db.o: could not read symbols: Bad value

collect2: ld returned 1 exit status

[root@localhost lib]# g++ -shared -fPIC -o libaff.so -g -O2 aff_db.o aff_toc.o afflib.o afflib_os.o afflib_pages.o afflib_stream.o afflib_util.o base64.o lzma_glue.o s3_glue.o vnode_aff.o vnode_afd.o vnode_afm.o vnode_ewf.o vnode_raw.o vnode_s3.o vnode_split_raw.o aftimer.o LzmaBench.o LzmaRam.o LzmaRamDecode.o LzmaDecode.o BranchX86.o LZMADecoder.o LZMAEncoder.o LZInWindow.o LZOutWindow.o RangeCoderBit.o InBuffer.o OutBuffer.o StreamUtils.o Alloc.o CommandLineParser.o CRC.o String.o StringConvert.o StringToInt.o Vector.o -lssl -lcrypto -lz -lexpat -lcurl -lncurses

/usr/bin/ld: LzmaRamDecode.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

LzmaRamDecode.o: could not read symbols: Bad value

collect2: ld returned 1 exit status

[root@localhost lib]#

Well, why don't you add -fPIC to the CFLAGS and see what happens.

Are you doing this with the stock distribution? Did you make any changes? This doesn't happen for me. Would you be interested in trying the 3.0 version?

Yes, would be interested in the 3.0 version.