./configurecheckingbuildsystemtype...i686-pc-linux-gnucheckinghostsystemtype...i686-pc-linux-gnucheckingtargetsystemtype...i686-pc-linux-gnucheckingforg++...g++checkingforC++compilerdefaultoutputfilename...a.outcheckingwhethertheC++compilerworks...yescheckingwhetherwearecrosscompiling...nocheckingforsuffixofexecutables...checkingforsuffixofobjectfiles...ocheckingwhetherweareusingtheGNUC++compiler...yescheckingwhetherg++accepts-g...yescheckingforgcc...gcccheckingwhetherweareusingtheGNUCcompiler...yescheckingwhethergccaccepts-g...yescheckingforgccoptiontoacceptANSIC...noneneededcheckinghowtoruntheCpreprocessor...gcc-Echeckingformakedepend.../usr/bin/makedependcheckingforbison++...nocheckingforflex++.../usr/bin/flex++checkingform4.../usr/bin/m4checkingforgcc.../usr/bin/gcccheckingifusingGNUld...yescheckingifhostisWindows...nocheckingifhostisCygwin...nocheckingifhostisOSX...nocheckingifhostisOSX10.2...nocheckingformainin-lstdc++...yescheckingforegrep...grep-EcheckingforANSICheaderfiles...yescheckingforsys/types.h...yescheckingforsys/stat.h...yescheckingforstdlib.h...yescheckingforstring.h...yescheckingformemory.h...yescheckingforstrings.h...yescheckingforinttypes.h...yescheckingforstdint.h...yescheckingforunistd.h...yescheckingexpat.husability...yescheckingexpat.hpresence...yescheckingforexpat.h...yescheckingforXML_ExpatVersionin-lexpat...yescheckinggc.husability...yescheckinggc.hpresence...yescheckingforgc.h...yescheckingforGC_mallocin-lgc...yescheckingdlfcn.husability...yescheckingdlfcn.hpresence...yescheckingfordlfcn.h...yescheckingfordlopenin-ldl...yescheckinghowtoruntheC++preprocessor...g++-Echeckingcppunit/TestSuite.husability...yescheckingcppunit/TestSuite.hpresence...yescheckingforcppunit/TestSuite.h...yescheckingfor_ZN7CppUnit8TestCase3runEvin-lcppunit...nocheckingforlib/libcppunit.a...nocheckingforlibcppunit.a.../usr/lib/libcppunit.aconfigure:WARNING:Foundlibcppunit.a;linkingtolib/checkingwhetherbyteorderingisbigendian...nocheckingforchar...yescheckingsizeofchar...1checkingforshort...yescheckingsizeofshort...2checkingforint...yescheckingsizeofint...4checkingforlong...yescheckingsizeoflong...4checkingforlonglong...yescheckingsizeoflonglong...8checkingforfloat...yescheckingsizeoffloat...4checkingfordouble...yescheckingsizeofdouble...8checkingforint*...yescheckingsizeofint*...4checkingwhethergccneeds-traditional...nocheckingfor.run-sml...nocheckingforsml-toolkit.x86-linux...nocheckingforsml-toolkit.sparc-solaris...nocheckingforungenerate...noconfigure:creating./config.statusconfig.status:creatingMakefileconfig.status:creatingutil/Makefileconfig.status:creatingloader/Makefileconfig.status:creatingdb/Makefileconfig.status:creatingfrontend/Makefileconfig.status:creatingtransform/Makefileconfig.status:creatingfrontend/mltk.shconfig.status:creatinginclude/config.hmdupont@space-station:~/experiments/decompiler/boomerang$makemake-Cloadermake[1]:Enteringdirectory`/home/mdupont/experiments/decompiler/boomerang/loader'g++ -g -O2 -Wall -c -fno-strict-aliasing -I../include -o ElfBinaryFile.o ElfBinaryFile.cppElfBinaryFile.cpp: In member function 'boolElfBinaryFile::ValueByName(constchar*,SymValue*,bool)':ElfBinaryFile.cpp:509:24: warning: variable 'numChain' set but not used [-Wunused-but-set-variable]ElfBinaryFile.cpp: In member function 'virtualboolElfBinaryFile::IsRelocationAt(ADDRESS)':ElfBinaryFile.cpp:1193:31: warning: variable 'destHostOrigin' set but not used [-Wunused-but-set-variable]g++ -g -O2 -Wall -c -DBUILDING_LIBBINARYFILE -I../include -o BinaryFile.o BinaryFile.cppg++ -g -O2 -Wall -c -I../include -o SymTab.o SymTab.cppg++ -g -O2 -Wall -o ../lib/libBinaryFile.so -shared BinaryFile.o SymTab.o g++ -g -O2 -Wall -o ../lib/libElfBinaryFile.so -shared ElfBinaryFile.o SymTab.o -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib g++ -g -O2 -Wall -c -fno-strict-aliasing -I../include -o Win32BinaryFile.o Win32BinaryFile.cppWin32BinaryFile.cpp: In member function 'virtualboolWin32BinaryFile::RealLoad(constchar*)':Win32BinaryFile.cpp:419:27: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]Win32BinaryFile.cpp:425:39: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]Win32BinaryFile.cpp:437:45: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]Win32BinaryFile.cpp:476:59: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]gcc -g -O2 -Wall -I../include -c -o microX86dis.o microX86dis.cg++ -g -O2 -Wall -o ../lib/libWin32BinaryFile.so -shared Win32BinaryFile.o SymTab.o microX86dis.o -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib g++ -g -O2 -Wall -c -I../include -o ExeBinaryFile.o ExeBinaryFile.cppExeBinaryFile.cpp: In member function 'virtualboolExeBinaryFile::RealLoad(constchar*)':ExeBinaryFile.cpp:124:25: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]g++ -g -O2 -Wall -o ../lib/libExeBinaryFile.so -shared ExeBinaryFile.o SymTab.o -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib g++ -g -O2 -Wall -c -I../include -o HpSomBinaryFile.o HpSomBinaryFile.cppIn file included from /usr/include/string.h:642:0, from /usr/include/c++/4.6/cstring:44, from HpSomBinaryFile.cpp:30:In function 'void*memset(void*,int,size_t)', inlined from 'virtualboolHpSomBinaryFile::RealLoad(constchar*)' at HpSomBinaryFile.cpp:137:30:/usr/include/i386-linux-gnu/bits/string3.h:82:32: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabledbydefault]g++ -g -O2 -Wall -o ../lib/libHpSomBinaryFile.so -shared HpSomBinaryFile.o SymTab.o -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib HpSomBinaryFile.o: In function `memset':/usr/include/i386-linux-gnu/bits/string3.h:82:warning:memsetusedwithconstantzerolengthparameter;thiscouldbeduetotransposedparametersg++-g-O2-Wall-c-I../include-oPalmBinaryFile.oPalmBinaryFile.cppInfileincludedfrom/usr/include/string.h:642:0,from/usr/include/c++/4.6/cstring:44,fromPalmBinaryFile.cpp:24:Infunction'void* memset(void*, int, size_t)',inlinedfrom'virtual bool PalmBinaryFile::RealLoad(const char*)'atPalmBinaryFile.cpp:77:30:/usr/include/i386-linux-gnu/bits/string3.h:82:32:warning:callto'__warn_memset_zero_len'declaredwithattributewarning:memsetusedwithconstantzerolengthparameter;thiscouldbeduetotransposedparameters[enabledbydefault]g++-g-O2-Wall-o../lib/libPalmBinaryFile.so-sharedPalmBinaryFile.oSymTab.o-lBinaryFile-Wl,-rpath-Wl,"lib"-L../libPalmBinaryFile.o:Infunction`memset':/usr/include/i386-linux-gnu/bits/string3.h:82: warning: memset used with constant zero length parameter; this could be due to transposed parametersg++ -g -O2 -Wall -c -fno-strict-aliasing -I../include -o DOS4GWBinaryFile.o DOS4GWBinaryFile.cppDOS4GWBinaryFile.cpp: In member function 'virtualADDRESSDOS4GWBinaryFile::GetMainEntryPoint()':DOS4GWBinaryFile.cpp:88:17: warning: variable 'lastOrdCall' set but not used [-Wunused-but-set-variable]DOS4GWBinaryFile.cpp: In member function 'virtualboolDOS4GWBinaryFile::RealLoad(constchar*)':DOS4GWBinaryFile.cpp:152:27: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:158:45: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:167:82: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:223:95: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:321:60: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:331:44: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:340:28: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:342:28: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:345:28: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]DOS4GWBinaryFile.cpp:347:28: warning: ignoring return value of 'size_tfread(void*,size_t,size_t,FILE*)', declared with attribute warn_unused_result [-Wunused-result]g++ -g -O2 -Wall -o ../lib/libDOS4GWBinaryFile.so -shared DOS4GWBinaryFile.o SymTab.o microX86dis.o -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib g++ -g -O2 -Wall -c -I../include -o IntelCoffFile.o IntelCoffFile.cppIn file included from IntelCoffFile.cpp:1:0:IntelCoffFile.h:11:9: error: 'ushort' does not name a typeIntelCoffFile.h:12:9: error: 'ushort' does not name a typeIntelCoffFile.h:13:9: error: 'ulong' does not name a typeIntelCoffFile.h:14:9: error: 'ulong' does not name a typeIntelCoffFile.h:15:9: error: 'ulong' does not name a typeIntelCoffFile.h:16:9: error: 'ushort' does not name a typeIntelCoffFile.h:17:9: error: 'ushort' does not name a typeIntelCoffFile.cpp: In member function 'virtualboolIntelCoffFile::RealLoad(constchar*)':IntelCoffFile.cpp:105:16: error: 'structcoff_header' has no member named 'coff_opthead_size'IntelCoffFile.cpp:107:67: error: 'structcoff_header' has no member named 'coff_opthead_size'IntelCoffFile.cpp:108:42: error: 'structcoff_header' has no member named 'coff_opthead_size'IntelCoffFile.cpp:112:88: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:116:55: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:116:112: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:121:46: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:154:54: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:172:46: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:174:62: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:191:41: error: 'structcoff_header' has no member named 'coff_symtab_ofs'IntelCoffFile.cpp:191:82: error: 'structcoff_header' has no member named 'coff_symtab_ofs'IntelCoffFile.cpp:193:71: error: 'structcoff_header' has no member named 'coff_num_syment'IntelCoffFile.cpp:196:41: error: 'structcoff_header' has no member named 'coff_num_syment'IntelCoffFile.cpp:196:121: error: 'structcoff_header' has no member named 'coff_num_syment'IntelCoffFile.cpp:208:46: error: 'structcoff_header' has no member named 'coff_num_syment'IntelCoffFile.cpp:221:92: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:264:46: error: 'structcoff_header' has no member named 'coff_sections'IntelCoffFile.cpp:201:30: warning: ignoring return value of 'ssize_tread(int,void*,size_t)', declared with attribute warn_unused_result [-Wunused-result]make[1]: *** [IntelCoffFile.o] Error 1make[1]: Leaving directory `/home/mdupont/experiments/decompiler/boomerang/loader'make:***[loaders]Error2
Here is my configure/make output, it fails.
running g++-4.6 on i686-linux-gnu
mdupont@space-station:~/experiments/decompiler/boomerang$ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++-4.6.real
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v -with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' -with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs -enable-languages=c,c++,fortran,objc,obj-c++,go -prefix=/usr -program-suffix=-4.6 -enable-shared -enable-linker-build-id -with-system-zlib -libexecdir=/usr/lib -without-included-gettext -enable-threads=posix -with-gxx-include-dir=/usr/include/c++/4.6 -libdir=/usr/lib -enable-nls -with-sysroot=/ -enable-clocale=gnu -enable-libstdcxx-debug -enable-libstdcxx-time=yes -enable-plugin -enable-objc-gc -enable-targets=all -disable-werror -with-arch-32=i686 -with-tune=generic -enable-checking=release -build=i686-linux-gnu -host=i686-linux-gnu -target=i686-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
same probleme. did anyone knows how to solve it?
Try adding :
"
#include <stdint.h>
typedef uint16_t ushort;
typedef uint32_t ulong;
"
at the beginning of that file ?