pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56098: fig2dev build fails on MacOS due to missing "endian.h"



>Number:         56098
>Category:       pkg
>Synopsis:       fig2dev build fails on MacOS due to missing "endian.h"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 08 07:05:00 +0000 2021
>Originator:     Dan Cîrnaț
>Release:        current
>Organization:
TNF
>Environment:
Darwin Dans-MBP-4 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
>Description:
--- genemf.o ---
In file included from genemf.c:85:
./genemf.h:33:10: fatal error: 'endian.h' file not found
#include <endian.h>
         ^~~~~~~~~~
1 error generated.
*** [genemf.o] Error code 1

bmake[3]: stopped in /opt/pkg/src/print/fig2dev/work/fig2dev-3.2.8/fig2dev/dev
1 error
>How-To-Repeat:
make -C print/fig2dev
>Fix:
$NetBSD$

--- fig2dev/dev/genemf.h.orig   2020-12-17 21:13:53.000000000 +0000
+++ fig2dev/dev/genemf.h
@@ -30,7 +30,11 @@
 #include "config.h"
 #endif

+#ifdef __APPLE__
+#include <machine/endian.h>
+#else
 #include <endian.h>
+#endif

 typedef unsigned char  uchar;
 typedef unsigned short TCHAR;


Home | Main Index | Thread Index | Old Index