On 02/05/2013 01:36 AM, Paul O'Fallon wrote:
Hello.  I wanted to follow up and mention that I tried this again by
building qpid from the trunk (via cmake) and I still get the same error
("Unsupported protocol").  Is there something else I need to do beyond
installing proton (which it says it found) and setting the load module
environment variable?

There appears to be a further problem with the examples, I'm afraid. I haven't worked out exactly why. If you add a dummy connection variable at the start of main then the 1.0 support is registered correctly. (e.g. see attached patch).

The test programs also work, e.g. src/tests/qpid-send or src/tests/qpid-receive.

I'll dig around a bit more to find a proper fix. I suspect it must be some sort of static initialisation ordering issue.

Index: examples/messaging/drain.cpp
===================================================================
--- examples/messaging/drain.cpp	(revision 1442593)
+++ examples/messaging/drain.cpp	(working copy)
@@ -79,6 +79,7 @@
 
 int main(int argc, char** argv)
 {
+    Connection dummy;
     Options options;
     if (options.parse(argc, argv) && options.checkAddress()) {
         Connection connection(options.url, options.connectionOptions);

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to