pkgsrc-Bugs archive

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

pkg/47821: graphics/MesaLib 7.11.2 DragonFly x86_64 mach64_context.h:302:22: fatal error: byteswap.h: No such file



>Number:         47821
>Category:       pkg
>Synopsis:       graphics/MesaLib 7.11.2 DragonFly x86_64 
>mach64_context.h:302:22: fatal error: byteswap.h: No such file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 17 04:40:00 +0000 2013
>Originator:     David Shao
>Release:        DragonFly 3.5-DEVELOPMENT x86_64
>Organization:
>Environment:
DragonFly 3.5-DEVELOPMENT x86_64
>Description:
graphics/MesaLib 7.11.2 on DragonFly 3.5-DEVELOPMENT x86_64 fails to build with 
error:

cc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver 
-I../../../../../include -I../../../../../src/mapi -I../../../../../src/mesa 
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri 
-I/usr/pkg/include -I/usr/pkg/include/libdrm   -DFEATURE_GL=1 
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/gettext 
-I/usr/pkg/include/libdrm -g -D__GLX_ALIGN64 -DUSE_NATIVE_LIBM_FUNCS 
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/gettext 
-I/usr/pkg/include/libdrm -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fno-strict-aliasing -g -D__GLX_ALIGN64 -DUSE_NATIVE_LIBM_FUNCS 
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/gettext 
-I/usr/pkg/include/libdrm  -fPIC  -DUSE_X86_64_ASM -DHAVE_POSIX_MEMALIGN 
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS 
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -fvisibility=hidden  
mach64_context.c -o mach64_context.o
In file included from mach64_context.c:46:0:
mach64_context.h:302:22: fatal error: byteswap.h: No such file or directory
compilation terminated.
make[6]: *** [mach64_context.o] Error 1
make[6]: Leaving directory 
`/usr/pkgsrc/graphics/MesaLib/work/Mesa-7.11.2/src/mesa/drivers/dri/mach64'
make[5]: *** [lib] Error 2
make[5]: Leaving directory 
`/usr/pkgsrc/graphics/MesaLib/work/Mesa-7.11.2/src/mesa/drivers/dri/mach64'
make[4]: *** [subdirs] Error 1

>How-To-Repeat:

>Fix:
The following patch is similar to that of:
http://comments.gmane.org/gmane.os.netbsd.devel.pkgsrc.user/9382
It at least enabled MesaLib to build, although functionality is untested as 
many other packages need to be rebuilt.

diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo
index c7dda30..0971e8d 100644
--- a/graphics/MesaLib/distinfo
+++ b/graphics/MesaLib/distinfo
@@ -23,7 +23,7 @@ SHA1 (patch-src_mesa_drivers_dri_i965_gen6__wm__state.c) = 
a8ecf943525888b22ec99
 SHA1 (patch-src_mesa_drivers_dri_i965_intel__batchbuffer.c) = 
653c87e1123ce9a27b71221fff4119df34abe15f
 SHA1 (patch-src_mesa_drivers_dri_intel_intel__context.c) = 
21d3c08a27817a6358b88101f889120869eebcce
 SHA1 (patch-src_mesa_drivers_dri_intel_intel__context.h) = 
6d394e704636134768a6cb5a200ebcc7bc3f52ed
-SHA1 (patch-src_mesa_drivers_dri_mach64_mach64__context.h) = 
aef722152a5b892da62caf94cc8da7806da10859
+SHA1 (patch-src_mesa_drivers_dri_mach64_mach64__context.h) = 
cc02f9faee3bd39337b91dc50e9020c947266b5b
 SHA1 (patch-src_mesa_main_compiler.h) = 
4150ca7ed49a928515b7b25e1166b38090356e12
 SHA1 (patch-src_mesa_main_imports.c) = d0c50004c749e4c5c136ac2ed50a6989ca90065f
 SHA1 (patch-src_mesa_main_imports.h) = f5a96195b3a14294ca3389c9fe17a6076c46db8a
diff --git 
a/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h 
b/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h
index 78d4916..2df03ef 100644
--- 
a/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h
+++ 
b/graphics/MesaLib/patches/patch-src_mesa_drivers_dri_mach64_mach64__context.h
@@ -11,3 +11,13 @@ $NetBSD$
  #include "mach64_reg.h"

  #include "texmem.h"
+@@ -298,6 +298,9 @@ extern GLboolean mach64UnbindContext( __
+ #if defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <machine/endian.h>
+ #define bswap_32 bswap32
++#elif defined(__DragonFly__)
++#include <sys/endian.h>
++#define bswap_32 bswap32
+ #else
+ #include <byteswap.h>
+ #endif



Home | Main Index | Thread Index | Old Index