You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Joseph Ottinger <jo...@enigmastation.com> on 2012/08/02 21:55:58 UTC
What libraries/versions for proton?
I was building proton-c and the build fails in messenger.c, trying to
include <uuid/uuid.h>.
There's a uuid library for C, but it defines different types than
proton is expecting. Can anyone tell me which uuid library is
expected? It's looking for a *system* library for uuid.
--
Joseph B. Ottinger
http://enigmastation.com
Ça en vaut la peine.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
Re: What libraries/versions for proton?
Posted by "Darryl L. Pierce" <dp...@redhat.com>.
On Thu, Aug 02, 2012 at 04:48:42PM -0400, Joseph Ottinger wrote:
> It's Fedora 17, with a fairly clean install at that. Uuid and uuid-develop,
> plus libuuid, if memory serves, so as far as I can tell it should be
> pretty normal.
I should also mention (at least on Fedora systems) a way to find what's
required is with the "yum whatprovides" command. So, for example, in
this case you need /usr/include/uuid/uuid.h since the code is:
#include <uuid/uuid.h>
You can do:
sudo yum whatprovides */uuid/uuid.h
and yum will tell you the specific package(s) containing the file(s)
that match the provided mask.
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
Re: What libraries/versions for proton?
Posted by "Darryl L. Pierce" <dp...@redhat.com>.
On Thu, Aug 02, 2012 at 04:48:42PM -0400, Joseph Ottinger wrote:
> It's Fedora 17, with a fairly clean install at that. Uuid and uuid-develop,
> plus libuuid, if memory serves, so as far as I can tell it should be
> pretty normal.
You need to have libuuid-devel, which provides the headers needed to
compile.
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
Re: What libraries/versions for proton?
Posted by Joseph Ottinger <jo...@enigmastation.com>.
It's Fedora 17, with a fairly clean install at that. Uuid and uuid-develop,
plus libuuid, if memory serves, so as far as I can tell it should be
pretty normal.
On Thursday, August 2, 2012, Andrew Stitcher <as...@redhat.com> wrote:
> On Thu, 2012-08-02 at 15:55 -0400, Joseph Ottinger wrote:
>> I was building proton-c and the build fails in messenger.c, trying to
>> include <uuid/uuid.h>.
>>
>> There's a uuid library for C, but it defines different types than
>> proton is expecting. Can anyone tell me which uuid library is
>> expected? It's looking for a *system* library for uuid.
>
> You don't say which platform you are trying to build on. I'm guessing
> it's not Linux.
>
> The uuid functionality is irritatingly different between platforms. The
> current proton code compiles on Linux using libuuid libuuid-devel on
> Fedora and I think libuuid-dev on Debian based distros.
>
> On Solaris there is also uuid/uuid.h but it defines a subtly different
> API (wrt to const).
>
> On BSDs there is uuid/uuid.h with an entirely different API, which is
> more akin to the original DCE interface - I'm guessing this is what
> you're encountering (MacOS?)
>
> On Windows the header file is entirele different rpcdce.h I think with a
> very different API also based on the original DCE interface.
>
> You may need to write a very small shim layer to get it to work: As
> there are only a couple of functions used this shouldn't be very hard.
>
> Hope this helps.
>
> Andrew
>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
> For additional commands, e-mail: dev-help@qpid.apache.org
>
>
--
Joseph B. Ottinger
http://enigmastation.com
Ça en vaut la peine.
Re: What libraries/versions for proton?
Posted by Andrew Stitcher <as...@redhat.com>.
On Thu, 2012-08-02 at 15:55 -0400, Joseph Ottinger wrote:
> I was building proton-c and the build fails in messenger.c, trying to
> include <uuid/uuid.h>.
>
> There's a uuid library for C, but it defines different types than
> proton is expecting. Can anyone tell me which uuid library is
> expected? It's looking for a *system* library for uuid.
You don't say which platform you are trying to build on. I'm guessing
it's not Linux.
The uuid functionality is irritatingly different between platforms. The
current proton code compiles on Linux using libuuid libuuid-devel on
Fedora and I think libuuid-dev on Debian based distros.
On Solaris there is also uuid/uuid.h but it defines a subtly different
API (wrt to const).
On BSDs there is uuid/uuid.h with an entirely different API, which is
more akin to the original DCE interface - I'm guessing this is what
you're encountering (MacOS?)
On Windows the header file is entirele different rpcdce.h I think with a
very different API also based on the original DCE interface.
You may need to write a very small shim layer to get it to work: As
there are only a couple of functions used this shouldn't be very hard.
Hope this helps.
Andrew
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org