On Mon, 21 Feb 2022 at 17:08, Andrew Stitcher <astitc...@redhat.com> wrote:
>
> On Fri, 2022-02-18 at 19:25 +0000, Rob Wiskow wrote:
> > Ok, that led me in the right direction.  Turns out cmake wasn't able
> > to find the qpid-proton library.  I was able to fix it by pointing
> > cmake directly to where it was.  Seems like maybe it should be a
> > required library.
>
> Feel free to submit a PR!
>
> The reason that the Qpid Proton library is optional is historical: AMQP
> 1.0 support is a relative latecomer to the Qpid project and initially
> only AMQP 0-10 was required. This situation has remained because the
> Qpid project (as opposed to Qpid Proton) is very lightly maintained
> currently).
>
> Andrew
>

s/project/CPP/

I believe Qpid CPP also still defaults to trying to establish a 0-10
connection first (unless told otherwise with the protocol config
option used here) for historical compatibility, before retrying with
1.0 if the server indicates it cant do 0-10 but can do 1.0 [and the
client support was built], so thats probably another reason it
remained optional since it kind of is.


> >
> > -----Original Message-----
> > From: Andrew Stitcher <astitc...@redhat.com>
> > Sent: Friday, February 18, 2022 11:53 AM
> > To: users@qpid.apache.org
> > Subject: Re: AMQP 1.0 support in Qpid Messaging C++ 1.39.0
> >
> > I don't have time for a full reply, but it looks like you didn't
> > build qpid 1.39 with the qpid-proton library.
> >
> > The Proton library is what handles AMQP 1.0 so qpid needs to be able
> > to find it when it is built.
> >
> > When built with Proton, qpid will create the modules for amqp 1.0 and
> > you should be able to get them to load (if you do a default install
> > everything should be a place where that automatically happens)
> >
> > HTH
> >
> > Andrew
> >
> > On Fri, 2022-02-18 at 16:28 +0000, Rob Wiskow wrote:
> > > I'm attempting to write a small program using AMQP via the Qpid
> > > Messaging C++ API.  I downloaded and built the 1.39.0 library, and
> > > got
> > > my program to compile.
> > > I'm specifying the "{protocol:amqp1.0}" connection option.  However
> > > when I try to run the program, I get an exception:
> > > terminate called after throwing an instance of
> > > 'qpid::messaging::MessagingException'
> > >   what():  Unsupported protocol: amqp1.0 (valid values are amqp0-
> > > 10)
> > >
> > > After a lot of searching, all I've found is one old thread, which
> > > talks about setting QPID_LOAD_MODULE to "amqpc.so", which is a file
> > > that doesn't seem to exist.
> > > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.apache.org_
> > > thread_t5c2dxb22ftwy57dhjyr5jwtym0q7kob&d=DwIDaQ&c=u4prgGy6AhZ9kpd8
> > > CpB
> > > _THof_5a8-Rz0QxAUK3K7xW8&r=rJpqg5ZNA7pmKih-mRFJVtOoVA8ieZR3-ikoPEL-
> > > H90
> > > &m=I2UELXlnt5cpLwMdARKqNqLzevJLor2UAAQif--
> > > 6xcqoYUDAfQs_2CA6UGLKymUM&s=
> > > 3x0gDbn98nln_HTLP2KYrAAl5dxTV4V8oqskuEjISck&e=
> > > If I try to set that environment variable to libqpid-proton-cpp.so,
> > > which I built from the Qpid Proton 0.36.0 library, it errors out
> > > claiming it can't load the file:
> > > terminate called after throwing an instance of 'qpid::Exception'
> > >   what(): /.../qpid-proton-
> > > 0.36.0/build/install_dir/usr/local/lib64/libqpid-proton-
> > > cpp.so.12.10.0.so: cannot open shared object file: No such file or
> > > directory: /.../qpid-proton-
> > > 0.36.0/build/install_dir/usr/local/lib64/libqpid-proton-
> > > cpp.so.12.10.0.so (/.../qpid-cpp-
> > > 1.39.0/src/qpid/sys/posix/Shlib.cpp:35)
> > > If I set it to any other .so, it just goes back to complaining
> > > about
> > > the unsupported protocol.
> > >
> > > Can anyone give me some help in this?
> > > Thanks,
> > > Rob.
> > > This e-mail message (together with any attached documents) is
> > > strictly
> > > confidential and intended solely for the addressee (including the
> > > addressee's employing organization, assigns and affiliates). It may
> > > contain information that is proprietary to Geneva Trading USA LLC,
> > > its
> > > affiliates and assigns. It is controlled by law, or is covered by
> > > legal, professional or other privilege. If you are not the intended
> > > addressee nor associated with the intended addressee's
> > > organization,
> > > you must not use, disclose or copy this transmission, and are asked
> > > to
> > > notify the sender of its receipt.
> > > Please be further advised that the unauthorized interception or
> > > retrieval of e-mail may be a criminal violation of the Electronic
> > > Communications Privacy Act.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For
> > additional commands, e-mail: users-h...@qpid.apache.org
> >
> > This e-mail message (together with any attached documents) is
> > strictly confidential and intended solely for the addressee
> > (including the addressee's employing organization, assigns and
> > affiliates). It may contain information that is proprietary to Geneva
> > Trading USA LLC, its affiliates and assigns. It is controlled by law,
> > or is covered by legal, professional or other privilege. If you are
> > not the intended addressee nor associated with the intended
> > addressee’s organization, you must not use, disclose or copy this
> > transmission, and are asked to notify the sender of its receipt.
> > Please be further advised that the unauthorized interception or
> > retrieval of e-mail may be a criminal violation of the Electronic
> > Communications Privacy Act.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> > For additional commands, e-mail: users-h...@qpid.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to