# JWT solaris compiling library

**URL:** <https://community.auth0.com/t/jwt-solaris-compiling-library/57283>\
**Category:** Get Help\
**Tags:** jwt\
**Created:** [February 3, 2021, 12:05pm UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283 "2021-02-03T12:05:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan.gurov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivan.gurov/32/15179_2.png) [@ivan.gurov](https://community.auth0.com/u/ivan.gurov)\
**Post date:** [February 3, 2021, 12:05pm UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283/1 "2021-02-03T12:05:23Z")

</div>

Our company decided to use the jwt library. There was a compilation problem. The project is developed on solaris. Language C. The system does not know how to work with “cmake” files. I can’t find documentation or an example for compiling a library for solaris.  
I will be glad of any help.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 3, 2021, 12:07pm UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283/2 "2021-02-03T12:07:03Z")

</div>

Hey there!

Unfortunately we don’t offer any content or guidance on integrating with solaris unfortunately. If you’d like to advocate for that I would encourage you to create a topic in our feedback category here:

> **[Feedback](https://community.auth0.com/c/feedback/95)**
>
> Submit and vote on product feedback and feature requests.

---

<div class="post-metadata">

**Author:** ![ivan.gurov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivan.gurov/32/15179_2.png) [@ivan.gurov](https://community.auth0.com/u/ivan.gurov)\
**Post date:** [February 9, 2021, 5:12am UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283/3 "2021-02-09T05:12:25Z")

</div>

- 
## \* Hello again. We spent a lot of time to solve the problem. The situation is rare, but I think it can help a few people.

Our actions:

1. Updated version of gmake. Must be later than 2010
2. Of all the jwt versions, only this library was suitable: [GitHub - benmcollins/libjwt: JWT C Library](https://github.com/benmcollins/libjwt)
3. Run : autoreconf -i
4. Run : ./configure MAKE=“gmake”
5. in dir libjwt run: make  
library is ready

P.s. To create dependencies, you also need to have all the necessary libraries.  
P.s.s. We have a fairly old project, 32-bit, and Solaris 64-bit. We added the "-m32 " parameter to CPPFLAGS and CFLAGS  
Good luck

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 9, 2021, 10:38am UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283/4 "2021-02-09T10:38:44Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![ivan.gurov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivan.gurov/32/15179_2.png) [@ivan.gurov](https://community.auth0.com/u/ivan.gurov)\
**Post date:** [February 11, 2021, 9:52am UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283/5 "2021-02-11T09:52:23Z")

</div>

A few more edits…  
The selected library runs on the “jansson” json library, but your project may have a different json library. As a result of use, there is a conflict of function names, which will lead to segmentation errors: [This library does not play nicely with json-c · Issue #113 · benmcollins/libjwt · GitHub](https://github.com/benmcollins/libjwt/issues/113)

If the project is small, then rewrite it using the jansson library. We have a large project and we use the json-c library, so we rewritten the jwt under json-c.  
Unfortunately, I can’t post the code, because it will be considered that I violated economic security.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 11, 2021, 10:12am UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283/6 "2021-02-11T10:12:28Z")

</div>

Thanks for adding the context!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 26, 2021, 10:13am UTC](https://community.auth0.com/t/jwt-solaris-compiling-library/57283/7 "2021-02-26T10:13:09Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
