Quote:
Originally Posted by Antartica
Sorry if it's obvious: Have you tested with -Lpath/to/library ? And with -Wl,-rpath,/path/to/library:/usr/lib:NONE ?
|
As I wrote, it finds the library, it just can't find anything to bind to in it. If I "rm /usr/local/arm/oe/arm-linux/lib/libdjvulibre.so" then try to link it complains that the library is missing.
And yet when the library is there I get:
Code:
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x14): undefined reference to `DjVuPort::id_to_url(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x18): undefined reference to `DjVuPort::id_to_file(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x1c): undefined reference to `DjVuSimplePort::request_data(DjVuPort const*, GURL const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x20): undefined reference to `DjVuSimplePort::notify_error(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x24): undefined reference to `DjVuSimplePort::notify_status(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x28): undefined reference to `DjVuPort::notify_redisplay(DjVuImage const*)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x2c): undefined reference to `DjVuPort::notify_relayout(DjVuImage const*)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x30): undefined reference to `DjVuPort::notify_chunk_done(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x34): undefined reference to `DjVuPort::notify_file_flags_changed(DjVuFile const*, long, long)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x38): undefined reference to `DjVuPort::notify_doc_flags_changed(DjVuDocument const*, long, long)'
main.o(.gnu.linkonce.r._ZTV14DjVuSimplePort+0x3c): undefined reference to `DjVuPort::notify_decode_progress(DjVuPort const*, float)'
main.o(.gnu.linkonce.r._ZTI14DjVuSimplePort+0x8): undefined reference to `typeinfo for DjVuPort'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x14): undefined reference to `DjVuPort::id_to_url(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x18): undefined reference to `DjVuPort::id_to_file(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x1c): undefined reference to `DjVuMemoryPort::request_data(DjVuPort const*, GURL const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x20): undefined reference to `DjVuPort::notify_error(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x24): undefined reference to `DjVuPort::notify_status(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x28): undefined reference to `DjVuPort::notify_redisplay(DjVuImage const*)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x2c): undefined reference to `DjVuPort::notify_relayout(DjVuImage const*)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x30): undefined reference to `DjVuPort::notify_chunk_done(DjVuPort const*, GUTF8String const&)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x34): undefined reference to `DjVuPort::notify_file_flags_changed(DjVuFile const*, long, long)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x38): undefined reference to `DjVuPort::notify_doc_flags_changed(DjVuDocument const*, long, long)'
main.o(.gnu.linkonce.r._ZTV14DjVuMemoryPort+0x3c): undefined reference to `DjVuPort::notify_decode_progress(DjVuPort const*, float)'
main.o(.gnu.linkonce.r._ZTI14DjVuMemoryPort+0x8): undefined reference to `typeinfo for DjVuPort'
main.o(.gnu.linkonce.t._ZNK14DjVuSimplePort8inheritsERK11GUTF8String+0x14): In function `DjVuSimplePort::inherits(GUTF8String const&) const':
/usr/local/arm/oe/arm-linux/include/djvu/GString.h:1298: undefined reference to `GStringRep::cmp(GP<GStringRep> const&, char const*, int)'
main.o(.gnu.linkonce.t._ZNK14DjVuSimplePort8inheritsERK11GUTF8String+0x3c):/usr/local/arm/oe/arm-linux/include/djvu/GString.h:1298: undefined reference to `GStringRep::cmp(GP<GStringRep> const&, char const*, int)'
main.o(.gnu.linkonce.t._ZNK14DjVuMemoryPort8inheritsERK11GUTF8String+0x14): In function `DjVuMemoryPort::inherits(GUTF8String const&) const':
/usr/local/arm/oe/arm-linux/include/djvu/GString.h:1298: undefined reference to `GStringRep::cmp(GP<GStringRep> const&, char const*, int)'
main.o(.gnu.linkonce.t._ZNK14DjVuMemoryPort8inheritsERK11GUTF8String+0x3c):/usr/local/arm/oe/arm-linux/include/djvu/GString.h:1298: undefined reference to `GStringRep::cmp(GP<GStringRep> const&, char const*, int)'
main.o(.gnu.linkonce.t._ZN14DjVuSimplePortD1Ev+0xc): In function `DjVuSimplePort::~DjVuSimplePort()':
/home/irex/idjvu/src/main.cc:80: undefined reference to `DjVuPort::~DjVuPort()'
main.o(.gnu.linkonce.t._ZN14DjVuSimplePortD0Ev+0x10): In function `DjVuSimplePort::~DjVuSimplePort()':
/home/irex/idjvu/src/main.cc:80: undefined reference to `DjVuPort::~DjVuPort()'
main.o(.gnu.linkonce.t._ZN14DjVuSimplePortD0Ev+0x1c):/home/irex/idjvu/src/main.cc:80: undefined reference to `DjVuPort::operator delete(void*)'
main.o(.gnu.linkonce.t._ZN14DjVuMemoryPortD1Ev+0x5c): In function `DjVuMemoryPort::~DjVuMemoryPort()':
/home/irex/idjvu/src/main.cc:80: undefined reference to `GSetBase::~GSetBase()'
main.o(.gnu.linkonce.t._ZN14DjVuMemoryPortD1Ev+0x6c): In function `DjVuMemoryPort::~DjVuMemoryPort()':
/usr/local/arm/oe/arm-linux/include/djvu/GThreads.h:446: undefined reference to `DjVuPort::~DjVuPort()'
main.o(.gnu.linkonce.t._ZN14DjVuMemoryPortD1Ev+0x9c):/usr/local/arm/oe/arm-linux/include/djvu/GThreads.h:446: undefined reference to `DjVuPort::~DjVuPort()'
main.o(.gnu.linkonce.t._ZN14DjVuMemoryPortD0Ev+0x5c): In function `DjVuMemoryPort::~DjVuMemoryPort()':
/home/irex/idjvu/src/main.cc:80: undefined reference to `GSetBase::~GSetBase()'
main.o(.gnu.linkonce.t._ZN14DjVuMemoryPortD0Ev+0x6c): In function `DjVuMemoryPort::~DjVuMemoryPort()':
/usr/local/arm/oe/arm-linux/include/djvu/GThreads.h:446: undefined reference to `DjVuPort::~DjVuPort()'
main.o(.gnu.linkonce.t._ZN14DjVuMemoryPortD0Ev+0x74): In function `DjVuMemoryPort::~DjVuMemoryPort()':
/home/irex/idjvu/src/main.cc:80: undefined reference to `DjVuPort::operator delete(void*)'
main.o(.gnu.linkonce.t._ZN14DjVuMemoryPortD0Ev+0xa4): In function `DjVuMemoryPort::~DjVuMemoryPort()':
/usr/local/arm/oe/arm-linux/include/djvu/GThreads.h:446: undefined reference to `DjVuPort::~DjVuPort()'
DJVUCore.o(.text+0x140): In function `CDJVUCore::getPageBasicInfo(CPageInfo&)':
/usr/local/arm/oe/arm-linux/include/djvu/DjVuDocument.h:607: undefined reference to `DjVuDocument::get_page(int, bool, DjVuPort*) const'
DJVUCore.o(.text+0x154): In function `CDJVUCore::getPageBasicInfo(CPageInfo&)':
/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:431: undefined reference to `GPBase::assign(GPBase const&)'
DJVUCore.o(.text+0x174):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x184):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:413: undefined reference to `DjVuImage::get_real_width() const'
DJVUCore.o(.text+0x19c):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:413: undefined reference to `DjVuImage::get_real_height() const'
DJVUCore.o(.text+0x1b0):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:413: undefined reference to `DjVuImage::get_rotate() const'
DJVUCore.o(.text+0x1e4):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x224):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x23c):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x458): In function `CDJVUCore::getNumPages()':
/home/irex/idjvu/src/DJVUCore.cpp:158: undefined reference to `DjVuDocument::get_pages_num() const'
DJVUCore.o(.text+0x4c8): In function `CDJVUCore::renderPage(CPageInfo&, int, int, int, int (*)(void*), void*)':
/home/irex/idjvu/src/DJVUCore.cpp:174: undefined reference to `DjVuDocument::get_pages_num() const'
DJVUCore.o(.text+0x4ec):/home/irex/idjvu/src/DJVUCore.cpp:176: undefined reference to `DjVuDocument::get_pages_num() const'
DJVUCore.o(.text+0x574): In function `CDJVUCore::renderPage(CPageInfo&, int, int, int, int (*)(void*), void*)':
/usr/local/arm/oe/arm-linux/include/djvu/DjVuDocument.h:607: undefined reference to `DjVuDocument::get_page(int, bool, DjVuPort*) const'
DJVUCore.o(.text+0x5d0): In function `CDJVUCore::renderPage(CPageInfo&, int, int, int, int (*)(void*), void*)':
/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:413: undefined reference to `DjVuImage::get_bitmap(GRect const&, GRect const&, int) const'
DJVUCore.o(.text+0x6f4):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x714):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x750):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x768):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x7ac): In function `CDJVUCore::renderPage(CPageInfo&, int, int, int, int (*)(void*), void*)':
/usr/local/arm/oe/arm-linux/include/djvu/GBitmap.h:570: undefined reference to `GBitmap::uncompress()'
DJVUCore.o(.text+0x818): In function `CDJVUCore::renderPage(CPageInfo&, int, int, int, int (*)(void*), void*)':
/home/irex/idjvu/src/DJVUCore.cpp:223: undefined reference to `GBitmap::zerobuffer'
DJVUCore.o(.text+0x84c): In function `CDJVUCore::getPageType(int)':
/home/irex/idjvu/src/DJVUCore.cpp:239: undefined reference to `DjVuDocument::get_pages_num() const'
DJVUCore.o(.text+0x8c4): In function `CDJVUCore::getZoomMax(int)':
/home/irex/idjvu/src/DJVUCore.cpp:239: undefined reference to `DjVuDocument::get_pages_num() const'
DJVUCore.o(.text+0xb2c): In function `CDJVUCore::verifyZoomMax(double, int)':
/home/irex/idjvu/src/DJVUCore.cpp:239: undefined reference to `DjVuDocument::get_pages_num() const'
DJVUCore.o(.text+0xe1c): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/GString.h:1469: undefined reference to `GUTF8String::GUTF8String(char const*)'
DJVUCore.o(.text+0xe30):/usr/local/arm/oe/arm-linux/include/djvu/GString.h:1469: undefined reference to `GURL::Filename::UTF8::UTF8(GUTF8String const&)'
DJVUCore.o(.text+0xe44):/usr/local/arm/oe/arm-linux/include/djvu/GString.h:1469: undefined reference to `GURL::GURL(GURL const&)'
DJVUCore.o(.text+0xeb4): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.text+0xec4): In function `CDJVUCore::open(GooString*, void*)':
/home/irex/idjvu/src/DJVUCore.cpp:78: undefined reference to `GNativeString::~GNativeString()'
DJVUCore.o(.text+0xee0): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:345: undefined reference to `GPBase::assign(GPEnabled*)'
DJVUCore.o(.text+0xefc):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:345: undefined reference to `DjVuDocument::create_wait(GURL const&, GP<DjVuPort>, DjVuFileCache*)'
DJVUCore.o(.text+0xf18):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0xf38):/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0xf50): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/DjVuDocument.h:944: undefined reference to `GSafeFlags::operator long() const'
DJVUCore.o(.text+0x1040): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.text+0x1170):/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.text+0x12cc): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/GSmartPointer.h:362: undefined reference to `GPEnabled::unref()'
DJVUCore.o(.text+0x1360): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.text+0x1404):/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.text+0x141c): In function `CDJVUCore::open(GooString*, void*)':
/home/irex/idjvu/src/DJVUCore.cpp:78: undefined reference to `GNativeString::~GNativeString()'
DJVUCore.o(.text+0x1484): In function `CDJVUCore::open(GooString*, void*)':
/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.text+0x15b8):/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.gnu.linkonce.t._ZN4GURL8Filename4UTF8D1Ev+0xf8): In function `GURL::Filename::UTF8::~UTF8()':
/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.gnu.linkonce.t._ZN4GURL8Filename4UTF8D1Ev+0x1c4):/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.gnu.linkonce.t._ZN4GURL8Filename4UTF8D0Ev+0xec): In function `GURL::Filename::UTF8::~UTF8()':
/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: undefined reference to `GUTF8String::~GUTF8String()'
DJVUCore.o(.gnu.linkonce.t._ZN4GURL8Filename4UTF8D0Ev+0x1c0):/usr/local/arm/oe/arm-linux/include/djvu/Arrays.h:764: more undefined references to `GUTF8String::~GUTF8String()' follow
collect2: ld returned 1 exit status