View Issue Details

IDProjectCategoryView StatusLast Update
0003752libmicrohttpdbuild systempublic2021-09-02 17:54
Reportertomasheran Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
OSSolarisOS Version11 
Product Version0.9.40 
Target Version0.9.41Fixed in Version0.9.41 
Summary0003752: The socket API lives in libnsl and libsocket on Solaris 11
DescriptionOn Solaris 11, it's necessary to link with libnsl and libsocket in order to acccess the socket API functions.
Additional InformationI added the following to configure.ac and that seems to have solved the issue for me.

diff -r d118e0f483a4 -r 966ce1625c15 configure.ac
--- a/configure.ac Thu Feb 05 14:49:09 2015 +0100
+++ b/configure.ac Thu Apr 09 16:52:00 2015 +0200
@@ -135,6 +135,8 @@
 *solaris*)
      AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system])
      AC_DEFINE_UNQUOTED(_REENTRANT,1,[Need with solaris or errno doesnt work])
+ AC_SEARCH_LIBS(gethostbyname, nsl)
+ AC_SEARCH_LIBS(socket, socket)
      ;;
 *arm-linux*)
      AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux kernel])
TagsNo tags attached.

Activities

Christian Grothoff

2015-04-15 00:49

manager   ~0009085

Fixed as suggested in SVN 35536.

Christian Grothoff

2021-09-02 17:54

manager   ~0018199

Fix committed to master branch.

Related Changesets

libmicrohttpd: master 639bfd97

2015-04-15 02:49

Christian Grothoff


Details Diff
fix 0003752: linker issues on solaris Affected Issues
0003752
mod - configure.ac Diff File

Issue History

Date Modified Username Field Change
2015-04-10 13:42 tomasheran New Issue
2015-04-15 00:49 Christian Grothoff Note Added: 0009085
2015-04-15 00:49 Christian Grothoff Status new => resolved
2015-04-15 00:49 Christian Grothoff Fixed in Version => 0.9.41
2015-04-15 00:49 Christian Grothoff Resolution open => fixed
2015-04-15 00:49 Christian Grothoff Assigned To => Christian Grothoff
2015-04-15 00:49 Christian Grothoff Product Version => 0.9.40
2015-04-15 00:49 Christian Grothoff Target Version => 0.9.41
2015-04-30 00:13 Christian Grothoff Status resolved => closed
2021-09-02 17:54 Christian Grothoff Changeset attached => libmicrohttpd master 639bfd97
2021-09-02 17:54 Christian Grothoff Note Added: 0018199