Archived Forum Post

Index of archived forum posts

Question:

VisualGDB, libchilkat-9.5.0.a, undefined reference - error

Sep 11 '15 at 15:04

Hi!

We want to compile our project via VisualGDB on a Debian Wheezy System (Debian GLIBC 2.19-19).

I got the following errors:

/tmp/VisualGDB/Chilkat/lib/libchilkat-9.5.0.a(CkMailMan.o): In function `CkMailMan::put_EventCallbackObject(CkMailManProgress*)':
4>CkMailMan.cpp : error VGDB1002: undefined reference to `CkBaseProgress::getProgressImpl()'
4>  /tmp/VisualGDB/Chilkat/lib/libchilkat-9.5.0.a(CkString.o): In function `CkString::punyDecode()':
4>CkString.cpp : error VGDB1002: undefined reference to `_ckPunyCode::punyDecode(XString&, XString&, LogBase&)'
4>  /tmp/VisualGDB/Chilkat/lib/libchilkat-9.5.0.a(CkString.o): In function `CkString::punyEncode()':
4>CkString.cpp : error VGDB1002: undefined reference to `_ckPunyCode::punyEncode(XString&, XString&, LogBase&)'
4>  /tmp/VisualGDB/Chilkat/lib/libchilkat-9.5.0.a(CkTask.o): In function `CkTask::put_EventCallbackObject(CkBaseProgress*)':
4>CkTask.cpp : error VGDB1002: undefined reference to `CkBaseProgress::getProgressImpl()'
4>  /tmp/VisualGDB/Chilkat/lib/libchilkat-9.5.0.a(ChilkatRand.o): In function `ChilkatRand::reseed(DataBuffer const&)':
4>ChilkatRand.cpp : error VGDB1002: undefined reference to `_ckPrngFortuna::_ckPrngFortuna()'
4>ChilkatRand.cpp : error VGDB1002: undefined reference to `_ckPrngFortuna::prng_start(LogBase&)'
4>ChilkatRand.cpp : error VGDB1002: undefined reference to `_ckPrngFortuna::prng_addEntropy(unsigned char const*, unsigned int, LogBase&)'
4>ChilkatRand.cpp : error VGDB1002: undefined reference to `_ckPrngFortuna::prng_ready(LogBase&)'
4>ChilkatRand.cpp : error VGDB1002: undefined reference to `_ckPrngFortuna::prng_read(unsigned int, DataBuffer&, LogBase&)'
4>ChilkatRand.cpp : error VGDB1002: undefined reference to `_ckPrngFortuna::~_ckPrngFortuna()'
4>ChilkatRand.cpp : error VGDB1002: undefined reference to `_ckPrngFortuna::~_ckPrngFortuna()'
4>  /tmp/VisualGDB/Chilkat/lib/libchilkat-9.5.0.a(SmtpConnImpl.o): In function `SmtpConnImpl::sendRcptTo(int, SmtpSend&, StringBuffer&, SocketParams&, LogBase&)':
4>SmtpConnImpl.cpp : error VGDB1002: undefined reference to `_ckPunyCode::punyEncode(XString&, XString&, LogBase&)'
4>SmtpConnImpl.cpp : error VGDB1002: undefined reference to `_ckPunyCode::punyEncode(XString&, XString&, LogBase&)'
4>  /tmp/VisualGDB/Chilkat/lib/libchilkat-9.5.0.a(TlsProtocol.o): In function `TlsProtocol::buildClientKeyExchangeECDHE(LogBase&)':
4>TlsProtocol.cpp : error VGDB1002: undefined reference to `_ckPrngR250::_ckPrngR250()'
4>TlsProtocol.cpp : error VGDB1002: undefined reference to `_ckPrngR250::~_ckPrngR250()'
4>TlsProtocol.cpp : error VGDB1002: undefined reference to `_ckPrngR250::~_ckPrngR250()'

Any suggestions would be great!

Thanks

Andreas


Answer

These undefined externals are new to the latest version. It may be that you're compiling with the latest versions of the headers, but linking with an older version of the lib? Or maybe you're not linking with the static Chilkat lib, but with the dynamic .so -- it all links fine, but when you go and run elsewhere, it is finding/loading/dynamically linking the chilkat .so from the previous version..


Answer

Hi!

Header and libs are from the same download from your website.

We tested both, the static and the dynamic one. Same problem.

It would be perfect if you can provide as a new build! :-)

Best regards

Andreas


Answer

Check to see if this new build helps: http://www.chilkatsoft.com/download/preRelease/chilkat-9.5.0-x86_64-linux-gcc.tar.gz

If you need 32-bit, let me know..


Answer

Yes, we have a 32bit Debian... and need the 32bit-version.


Answer

Here's the 32-bit build: http://www.chilkatsoft.com/download/preRelease/chilkat-9.5.0-x86-linux-gcc.tar.gz


Answer

Its working!

Thanks a lot!!!!

:-)
Andreas