[MacPorts] #60852: gnuradio-next: fatal error: 'endian.h' file not found

MacPorts noreply at macports.org
Tue Feb 22 23:11:50 UTC 2022


#60852: gnuradio-next: fatal error: 'endian.h' file not found
----------------------------+-----------------------
  Reporter:  ryandesign     |      Owner:  michaelld
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.2
Resolution:                 |   Keywords:
      Port:  gnuradio-next  |
----------------------------+-----------------------

Comment (by nospam2000):

 The following patch makes at least that one file compileable:


 {{{
 --- pmt_serialize.cc.orig       2022-02-22 23:53:23.000000000 +0100
 +++ pmt_serialize.cc    2022-02-22 23:59:30.000000000 +0100
 @@ -14,11 +14,19 @@

  #include "pmt/pmt_serial_tags.h"
  #include "pmt_int.h"
 -#include <endian.h>
 +/* #include <endian.h> */
 +#include <arpa/inet.h>
  #include <pmt/pmt.h>
  #include <limits>
  #include <vector>

 +#define htobe32(x) (htonl(x))
 +#define htobe64(x) (htonll(x))
 +#define htobe16(x) (htons(x))
 +#define be16toh(x) (ntohs(x))
 +#define be32toh(x) (ntohl(x))
 +#define be64toh(x) (ntohll(x))
 +
  namespace pmt {

  static pmt_t parse_pair(std::streambuf& sb);

 }}}

 Just until the next build error...

-- 
Ticket URL: <https://trac.macports.org/ticket/60852#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list