I'll post one method since the entire file is too long..

Qt Code:
  1. local_system.h
  2.  
  3. extern IC_DllExport QByteArray __appInternalChallenge;
  4. ...
  5. QString IC_DllExport globalConfigPath( void );
  6.  
  7.  
  8. local_system.cpp
  9.  
  10. QString privateKeyPath( const ISD::userRoles _role, bool _only_path )
  11. {
  12. return( keyPath( _role, "private", _only_path ) );
  13. }
  14.  
  15. isd_connection.h
  16.  
  17. class isdConnection : public QObject
  18. {
  19. ...
  20. bool stopAttendanceCall(void);
  21.  
  22.  
  23. isd_connection.cpp
  24.  
  25. bool isdConnection::stopAttendanceCall( void ) {
  26. if( m_socket == NULL ||
  27. m_socket->state() != QTcpSocket::ConnectedState )
  28. {
  29. m_state = Disconnected;
  30. return( FALSE );
  31. }
  32. return( ISD::msg( &m_socketDev, ISD::StopAttendanceCall ).send() );
  33. }
To copy to clipboard, switch view to plain text mode 

all methods are implemented... I think it's some kind of linking problem...

I still have some similar errors compiling another .pro (same project) like:
Qt Code:
  1. Undefined symbols:
  2. "_BN_rand", referenced from:
  3. dsaKey::generateChallenge() in dsa_key.o
  4. "_BN_copy", referenced from:
  5. publicDSAKey::publicDSAKey(privateDSAKey const&)in dsa_key.o
  6. publicDSAKey::publicDSAKey(privateDSAKey const&)in dsa_key.o
  7. publicDSAKey::publicDSAKey(privateDSAKey const&)in dsa_key.o
  8. publicDSAKey::publicDSAKey(privateDSAKey const&)in dsa_key.o
  9. "_BN_new", referenced from:
  10. createNewDSA() in dsa_key.o
  11. createNewDSA() in dsa_key.o
  12. createNewDSA() in dsa_key.o
  13. createNewDSA() in dsa_key.o
  14. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  15. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  16. dsaKey::generateChallenge() in dsa_key.o
  17. "_DSA_do_sign", referenced from:
  18. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  19. "_EVP_DigestFinal", referenced from:
  20. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  21. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  22. "_DSA_free", referenced from:
  23. privateDSAKey::load(QString const&, QString)in dsa_key.o
  24. publicDSAKey::publicDSAKey(privateDSAKey const&)in dsa_key.o
  25. privateDSAKey::privateDSAKey(unsigned int)in dsa_key.o
  26. publicDSAKey::load(QString const&, QString)in dsa_key.o
  27. publicDSAKey::~publicDSAKey()in dsa_key.o
  28. dsaKey::~dsaKey()in dsa_key.o
  29. dsaKey::~dsaKey()in dsa_key.o
  30. privateDSAKey::~privateDSAKey()in dsa_key.o
  31. privateDSAKey::~privateDSAKey()in dsa_key.o
  32. publicDSAKey::~publicDSAKey()in dsa_key.o
  33. isdConnection::initAuthentication() in isd_connection.o
  34. dsaKey::~dsaKey()in isd_connection.o
  35. dsaKey::~dsaKey()in isd_connection.o
  36. "_BN_num_bits", referenced from:
  37. buffer_put_bignum2(Buffer*, bignum_st*) in dsa_key.o
  38. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  39. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  40. dsaKey::generateChallenge() in dsa_key.o
  41. "_EVP_des_ede3_cbc", referenced from:
  42. privateDSAKey::save(QString const&, QString) constin dsa_key.o
  43. "_BN_free", referenced from:
  44. dsaKey::generateChallenge() in dsa_key.o
  45. "_EVP_sha1", referenced from:
  46. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  47. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  48. "_EVP_PKEY_get1_DSA", referenced from:
  49. privateDSAKey::load(QString const&, QString)in dsa_key.o
  50. "_EVP_DigestUpdate", referenced from:
  51. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  52. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  53. "_DSA_SIG_free", referenced from:
  54. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  55. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  56. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  57. "_EVP_DigestInit", referenced from:
  58. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  59. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  60. "_BN_bn2bin", referenced from:
  61. buffer_put_bignum2(Buffer*, bignum_st*) in dsa_key.o
  62. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  63. privateDSAKey::sign(QByteArray const&) constin dsa_key.o
  64. dsaKey::generateChallenge() in dsa_key.o
  65. "_EVP_PKEY_free", referenced from:
  66. privateDSAKey::load(QString const&, QString)in dsa_key.o
  67. "_DSA_do_verify", referenced from:
  68. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  69. "_BN_bin2bn", referenced from:
  70. buffer_get_bignum2(Buffer*, bignum_st*) in dsa_key.o
  71. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  72. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  73. "_DSA_generate_key", referenced from:
  74. privateDSAKey::privateDSAKey(unsigned int)in dsa_key.o
  75. "_PEM_read_PrivateKey", referenced from:
  76. privateDSAKey::load(QString const&, QString)in dsa_key.o
  77. "_DSA_SIG_new", referenced from:
  78. dsaKey::verifySignature(QByteArray const&, QByteArray const&) constin dsa_key.o
  79. "_DSA_generate_parameters", referenced from:
  80. privateDSAKey::privateDSAKey(unsigned int)in dsa_key.o
  81. "_DSA_new", referenced from:
  82. createNewDSA() in dsa_key.o
  83. "_PEM_write_DSAPrivateKey", referenced from:
  84. privateDSAKey::save(QString const&, QString) constin dsa_key.o
  85. ld: symbol(s) not found
  86. collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode 


This is even more important than the other. Since the first project uses this lib (2nd project) . but this one does not have dependencies and still undefined symbols error appear... I think it's something to do with linking. since the Linux version had -lnsl link to work and Mac doesn't have -lnsl
But it still a strange thing because the 2nd project doesn't have a -lnsl even for linux...