Closed kiranjeet98 closed 2 years ago
Hello @kiranjeet98 ,
As mentionned in the README.md file, Ulfius, with the default build, requires the following dependencies:
All those libraries are linked to other libraries as well, that's why the ldd
output is that long.
The only required dependency is GNU Libmicrohttpd, you can build Ulfius without the other if you want, check the install documentation if you want to disable one or more dependecies.
But i can see there is a difference in output of ldd command in different OS. I have checked in rocky linux and ubuntu. libidn.so.11 ,libssl3.so ,libsmime3.so,libnss3.so,libnssutil3.so ,libplds4.so , libplc4.so , libnspr4.so => are listed in ouput of ldd command in rocky linux OS but are not listed in ubuntu. What is the reason for this?
It depends on the distribution's build process with the dependencies.
For example, libcurl is a library with a lot of dependencies, and some dependencies may be replaced by other ones, or skipped by the distribution, that's why you can have differences in ldd commands in different OS or distributions, or even different versions of the same distribution.
okay Thanks.
ulfius version used - 2.7.8
I am using ulfius for my rest interface. But i can see that apart from linking with the required libraries my binary is getting linked with additional libraries shown below:
Could you please explain what is the reason these libraries are getting linked?