On 05/23/2013 03:38 PM, Sean Beck wrote:
My version is 1.0.0. I installed openssl-devel and it fixed that problem
but now it's a different issue:
../main/.libs/libactivemq-cpp.so: undefined reference to
`ERR_error_string_n'
../main/.libs/libactivemq-cpp.so: undefined reference to `X509V3_EXT_get'
../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_new'
../main/.libs/libactivemq-cpp.so: undefined reference to `OBJ_obj2nid'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_default_passwd_cb'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_new'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_use_certificate_chain_file'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_verify'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_shutdown'
../main/.libs/libactivemq-cpp.so: undefined reference to `X509_get_ext'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_get_error'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_ctrl'
../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_s_socket'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_cipher_list'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_load_verify_locations'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_bio'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_use_PrivateKey_file'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSLv23_method'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_pending'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_read'
../main/.libs/libactivemq-cpp.so: undefined reference to `ASN1_item_d2i'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_load_error_strings'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_library_init'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_connect'
../main/.libs/libactivemq-cpp.so: undefined reference to
`OPENSSL_add_all_algorithms_noconf'
../main/.libs/libactivemq-cpp.so: undefined reference to `EVP_cleanup'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_get_subject_name'
../main/.libs/libactivemq-cpp.so: undefined reference to
`CRYPTO_set_id_callback'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_default_passwd_cb_userdata'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_write'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_EXTENSION_get_object'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_free'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_new'
../main/.libs/libactivemq-cpp.so: undefined reference to `sk_num'
../main/.libs/libactivemq-cpp.so: undefined reference to
`CRYPTO_set_locking_callback'
../main/.libs/libactivemq-cpp.so: undefined reference to `RAND_seed'
../main/.libs/libactivemq-cpp.so: undefined reference to `OBJ_nid2sn'
../main/.libs/libactivemq-cpp.so: undefined reference to `sk_value'
../main/.libs/libactivemq-cpp.so: undefined reference to `X509_free'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_get_ext_count'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_get_peer_certificate'
../main/.libs/libactivemq-cpp.so: undefined reference to
`X509_NAME_get_text_by_NID'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_CTX_free'
../main/.libs/libactivemq-cpp.so: undefined reference to `CRYPTO_num_locks'
../main/.libs/libactivemq-cpp.so: undefined reference to `ERR_get_error'
../main/.libs/libactivemq-cpp.so: undefined reference to
`SSL_CTX_set_default_verify_paths'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_set_shutdown'
../main/.libs/libactivemq-cpp.so: undefined reference to `BIO_int_ctrl'
../main/.libs/libactivemq-cpp.so: undefined reference to `SSL_accept'
collect2: ld returned 1 exit status
make[2]: *** [example] Error 1
make[2]: Leaving directory `/root/activemq-cpp/activemq-cpp/src/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/activemq-cpp/activemq-cpp'
make: *** [all] Error 2
It seems like a lot of things referring to openssl again
On Thu, May 23, 2013 at 1:32 PM, Timothy Bish <[email protected]> wrote:
On 05/23/2013 03:26 PM, Sean Beck wrote:
Now it won't compile because it can't find OpenSSL files, but I have
OpenSSL installed:
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**42:25: error:
openssl/ssl.h: No such file or directory
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**43:25: error:
openssl/evp.h: No such file or directory
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**44:26: error:
openssl/rand.h: No such file or directory
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**45:26: error:
openssl/conf.h: No such file or directory
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**84: error: ISO
C++
forbids declaration of ‘SSL_CTX’ with no type
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**84: error:
expected
‘;’ before ‘*’ token
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp: In constructor
‘decaf::internal::net::ssl::**openssl::ContextData::**ContextData(int)’:
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**101: error:
class
‘decaf::internal::net::ssl::**openssl::ContextData’ does not have any
field
named ‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp: In destructor
‘decaf::internal::net::ssl::**openssl::ContextData::~**ContextData()’:
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**110: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**110: error:
‘SSL_CTX_free’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp: In static member
function ‘static void
decaf::internal::net::ssl::**openssl::ContextData::**lockCallback(int,
int,
const char*, int)’:
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**119: error:
‘CRYPTO_LOCK’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp: In destructor
‘virtual
decaf::internal::net::ssl::**openssl::OpenSSLContextSpi::~**
OpenSSLContextSpi()’:
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**162: error:
‘CRYPTO_set_locking_callback’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**163: error:
‘EVP_cleanup’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp: In member
function
‘virtual void
decaf::internal::net::ssl::**openssl::OpenSSLContextSpi::**
providerInit(decaf::security::**SecureRandom*)’:
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**188: error:
‘SSL_load_error_strings’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**189: error:
‘SSL_library_init’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**190: error:
‘OpenSSL_add_all_algorithms’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**193: error:
‘CRYPTO_num_locks’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**195: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**195: error:
‘SSLv23_method’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**195: error:
‘SSL_CTX_new’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**198: error:
‘CRYPTO_set_id_callback’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**199: error:
‘CRYPTO_set_locking_callback’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**202: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**202: error:
‘SSL_CTX_set_default_verify_**paths’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**203: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**203: error:
‘SSL_OP_ALL’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**203: error:
‘SSL_OP_NO_SSLv2’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**203: error:
‘SSL_CTX_set_options’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**204: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**204: error:
‘SSL_MODE_AUTO_RETRY’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**204: error:
‘SSL_CTX_set_mode’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**207: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**207: error:
‘SSL_CTX_set_default_passwd_**cb’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**208: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**208: error:
‘SSL_CTX_set_default_passwd_**cb_userdata’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**212: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**212: error:
‘SSL_CTX_set_cipher_list’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**223: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**223: error:
‘SSL_CTX_use_certificate_**chain_file’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**226: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**226: error:
‘SSL_FILETYPE_PEM’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**226: error:
‘SSL_CTX_use_PrivateKey_file’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**245: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**245: error:
‘SSL_CTX_load_verify_**locations’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**253: error:
‘RAND_seed’ was not declared in this scope
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp: In member
function
‘void*
decaf::internal::net::ssl::**openssl::OpenSSLContextSpi::**
getOpenSSLCtx()’:
decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**314: error:
‘class
decaf::internal::net::ssl::**openssl::ContextData’ has no member named
‘openSSLContext’
make[2]: ***
[decaf/internal/net/ssl/**openssl/libactivemq_cpp_la-**
OpenSSLContextSpi.lo]
Error 1
make[2]: Leaving directory `/root/activemq-cpp/activemq-**cpp/src/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/activemq-cpp/activemq-**cpp'
make: *** [all] Error 2
On Thu, May 23, 2013 at 1:04 PM, Sean Beck <[email protected]>
wrote:
I downloaded the svn copy of the trunk so hopefully that will take care
of
it. Thanks for being so helpful!
On Thu, May 23, 2013 at 1:00 PM, Timothy Bish <[email protected]>
wrote:
On 05/23/2013 02:56 PM, Sean Beck wrote:
While installing ActiveMQ-CPP it terminated because of an error:
activemq/state/****ConnectionStateTracker.cpp: In constructor
‘activemq::state::****MessageCache::MessageCache(****
activemq::state::**
ConnectionStateTracker*)’:
activemq/state/****ConnectionStateTracker.cpp:61: error: class
‘activemq::state::****MessageCache’ does not have any field named
‘LinkedHashMap’
make[1]: *** [activemq/state/libactivemq_**
cpp_la-ConnectionStateTracker.****lo]
Error 1
make[1]: Leaving directory `/root/activemq-cpp-library-3.**
**7.0/src/main'
make: *** [install-recursive] Error 1
Is there a fix for this or should I download an earlier version? I
downloaded the most recent release
On Thu, May 23, 2013 at 12:22 PM, Timothy Bish <[email protected]>
wrote:
On 05/23/2013 02:15 PM, Sean Beck wrote:
I am new to ActiveMQ and am trying to use it with some C programs I
am
working on.
I was unable to find a download link for the source, so I just
copy-pasted
the files one-by-one from the svn repo. Also, is there some sort of
installation process I need to do in order to use this source? Or do
I
have
to compile the object files one-by-one as well?
Help is appreciated! Thanks!
That code hasn't been maintained in quite some time, doubt anyone
knows
much about it.
There are C clients for STOMP that you can use, or you can use the
ActiveMQ-CPP library with the C wrapper FuseMQ-C library.
https://github.com/fusesource/******fusemq-c<https://github.com/fusesource/****fusemq-c>
<https://github.**com/fusesource/**fusemq-c<https://github.com/fusesource/**fusemq-c>
<https://github.com/****fusesource/fusemq-c<https://github.com/**fusesource/fusemq-c>
<https://**github.com/fusesource/fusemq-c<https://github.com/fusesource/fusemq-c>
**>
--
Tim Bish
Sr Software Engineer | RedHat Inc.
[email protected] | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/
www.camelone.org : The open source integration conference:
The fix is on trunk, or you can apply the patch from this issue.
https://issues.apache.org/****jira/browse/AMQCPP-483<https://issues.apache.org/**jira/browse/AMQCPP-483>
<https:/**/issues.apache.org/jira/**browse/AMQCPP-483<https://issues.apache.org/jira/browse/AMQCPP-483>
--
Tim Bish
Sr Software Engineer | RedHat Inc.
[email protected] | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/
www.camelone.org : The open source integration conference:
You probably have an older version installed than 0.9.8 or your
installation is modified in some way. You can disable it in the configure
script or you can install a supported version.
--
Tim Bish
Sr Software Engineer | RedHat Inc.
[email protected] | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/
www.camelone.org : The open source integration conference:
Hard to say, each distro does things its own way. Did you rerun
configure and do a clean?
--
Tim Bish
Sr Software Engineer | RedHat Inc.
[email protected] | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/
www.camelone.org : The open source integration conference: