wuhailinjerry / edb-debugger

Automatically exported from code.google.com/p/edb-debugger
GNU General Public License v2.0
0 stars 0 forks source link

Compile Error (ELFBinaryInfo.cpp) #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
g++ -Wl,--no-undefined -shared -o libELFBinaryInfo.so ELFBinaryInfo.o ELF32.o 
ELF64.o moc_ELFBinaryInfo.o   -L/usr/lib -lQtGui -lQtCore -lpthread 
ELFBinaryInfo.o: In function `ELFBinaryInfo':
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELFBinaryInfo.cpp:39: 
undefined reference to `BinaryInfo::RegisterBinaryInfo(BinaryInfo* (*)(QString 
const&))'
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELFBinaryInfo.cpp:40: 
undefined reference to `BinaryInfo::RegisterBinaryInfo(BinaryInfo* (*)(QString 
const&))'
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELFBinaryInfo.cpp:39: 
undefined reference to `BinaryInfo::RegisterBinaryInfo(BinaryInfo* (*)(QString 
const&))'
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELFBinaryInfo.cpp:40: 
undefined reference to `BinaryInfo::RegisterBinaryInfo(BinaryInfo* (*)(QString 
const&))'
ELF32.o: In function `ELF32':
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELF32.cpp:28: undefined 
reference to `BinaryInfo::BinaryInfo(QString const&)'
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELF32.cpp:28: undefined 
reference to `BinaryInfo::BinaryInfo(QString const&)'
ELF64.o: In function `ELF64':
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELF64.cpp:28: undefined 
reference to `BinaryInfo::BinaryInfo(QString const&)'
/home/shift/downloads/debugger/plugins/ELFBinaryInfo/ELF64.cpp:28: undefined 
reference to `BinaryInfo::BinaryInfo(QString const&)'
collect2: ld returned 1 exit status
make[2]: *** [../../libELFBinaryInfo.so] Error 1
make[2]: Leaving directory 
`/home/shift/downloads/debugger/plugins/ELFBinaryInfo'
make[1]: *** [sub-ELFBinaryInfo-make_default] Error 2
make[1]: Leaving directory `/home/shift/downloads/debugger/plugins'
make: *** [sub-plugins-make_default] Error 2

Original issue reported on code.google.com by evan.teran on 3 Oct 2012 at 3:21

GoogleCodeExporter commented 9 years ago
This seems to be an issue with the flags that Ubuntu set while building QT. The 
solution is to filter the bad ones from the build. This can be done by adding 
the following to the unix section of "plugins/plugins.pri"

QMAKE_LFLAGS    -= -Wl,--no-undefined

This has been done in the development branch, so I am marking it as fixed.

Thank you for the bug report.

Original comment by evan.teran on 3 Oct 2012 at 3:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
(In reply to comment #1)
> This seems to be an issue with the flags that Ubuntu set while building QT. 
The
> solution is to filter the bad ones from the build. This can be done by adding
> the following to the unix section of "plugins/plugins.pri"
> 
> QMAKE_LFLAGS    -= -Wl,--no-undefined
> 
> This has been done in the development branch, so I am marking it as fixed.
> 
> Thank you for the bug report.
> 

That did the trick. Tried the app. Good job on the great work, exactly what I 
was looking for.

Original comment by evan.teran on 3 Oct 2012 at 3:53