View Issue Details

IDProjectCategoryView StatusLast Update
0008906libmicrohttpdotherpublic2024-07-31 12:22
Reporterkorli Assigned ToKarlson2k  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version1.0.0 
Summary0008906: Fix build on Haiku
Descriptionneeds to link against libnetwork.so on Haiku. Attached patch fixes the problem.
TagsNo tags attached.
Attached Files
libmicrohttpd-1.0.1.patchset (689 bytes)   
From 43c39d24cecd3f686efded8fbcea5d32a63383c2 Mon Sep 17 00:00:00 2001
From: Kacper Kasper <kacperkasper@gmail.com>
Date: Fri, 4 Aug 2017 10:06:42 +0300
Subject: Fix linker errors.


diff --git a/configure.ac b/configure.ac
index 932f8ad..8d7d12c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1030,6 +1030,12 @@ AS_CASE(["$host_os"],
      mhd_host_os='GNU Hurd'
      AC_MSG_RESULT([[$mhd_host_os]])
     ],
+   [haiku*],
+   [AC_DEFINE_UNQUOTED(HAIKU,1,[This is a Haiku system])
+     mhd_host_os='Haiku'
+     AC_MSG_RESULT([[$mhd_host_os]])
+     AC_SEARCH_LIBS(gethostbyname, network)
+   ],
     [
      AC_MSG_RESULT([unrecognised OS])
      mhd_host_os="${host_os}"
-- 
2.42.1

Activities

Karlson2k

2024-07-31 12:21

developer   ~0022876

Cannot confirm.
Previously, I had successful builds on Haiku without extra patches. Test suite also worked without any errors.

Moreover, gethostbyname() function is not used by MHD.

I'll re-check with the latest Haiku beta.

Karlson2k

2024-07-31 12:22

developer   ~0022877

@korli, could you share your build error messages?

Issue History

Date Modified Username Field Change
2024-06-07 12:39 korli New Issue
2024-06-07 12:39 korli File Added: libmicrohttpd-1.0.1.patchset
2024-07-31 00:57 Christian Grothoff Assigned To => Karlson2k
2024-07-31 00:57 Christian Grothoff Status new => assigned
2024-07-31 12:21 Karlson2k Note Added: 0022876
2024-07-31 12:22 Karlson2k Note Added: 0022877