[Bug 270015] www/obhttpd: build failure on 13-STABLE

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 Mar 2023 20:28:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270015

            Bug ID: 270015
           Summary: www/obhttpd: build failure on 13-STABLE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: naddy@FreeBSD.org
                CC: koue@chaosophia.net
                CC: koue@chaosophia.net
             Flags: maintainer-feedback?(koue@chaosophia.net)

Created attachment 240648
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240648&action=edit
bandaid fix for www/obhttpd

www/obhttpd 7.1.20220923_1 fails to build on 13-STABLE (as of e8396a9592abb)
due to this error while compiling the embedded copy of LibreSSL:

-------------------->
Making all in ssl
  CC       bio_ssl.lo
  CC       d1_both.lo
  CC       d1_lib.lo
  CC       d1_pkt.lo
d1_pkt.c:138:8: error: use of undeclared identifier 'BYTE_ORDER'
                        if (BYTE_ORDER == LITTLE_ENDIAN)
                            ^
d1_pkt.c:138:22: error: use of undeclared identifier 'LITTLE_ENDIAN'
                        if (BYTE_ORDER == LITTLE_ENDIAN)
                                          ^
2 errors generated.
*** Error code 1
<-------------------

I don't fully understand the problem, but this appears to have been triggered
by the addition of <endian.h> to stable/13 in 1004da283d45.

Overriding the detection of <endian.h> in LibreSSL's configure works as a
bandaid to fix the build.  Patch attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.