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

Bug#585618: mesa: FTBFS on kfreebsd and hurd (gallium/auxiliary: os/os_time.c:51:4: error: #error Unsupported OS



Julien Cristau <jcristau@debian.org> (12/06/2010):
> Would be nice if porters could take a look.

Quick and dirty band-aid for kfreebsd attached. Please note that the
build is long enough that I only used '-nc' to continue the build once
that patch applied, instead of starting the build afresh.

Then fails with:
| # Classic DRI and Gallium DRI are mixed up together here
| # Remove the whole tree to avoid false-positives in --list-missing, and
| # install the right files manually.
| rm -r debian/tmp/usr/lib/dri
| # Radeon searches for r{200,300,600}_dri only, but the gallium driver
| # is (at the moment) radeong_dri.  Rename it to r300_dri, as it
| # fails to support r600.
| mv build/dri/glx/gallium/radeong_dri.so \
| 		build/dri/glx/gallium/r300_dri.so
| mv: cannot stat `build/dri/glx/gallium/radeong_dri.so': No such file or directory
| make: *** [binary-arch] Error 1

I prefixed 'mv' with a dash to see if that goes further.

Then I got:
| dpkg-gensymbols: warning: debian/libgles1-mesa/DEBIAN/symbols doesn't match completely debian/libgles1-mesa.symbols
| --- debian/libgles1-mesa.symbols (libgles1-mesa_7.8.1-2_kfreebsd-i386)
| +++ dpkg-gensymbolsGyh1AU	2010-06-13 10:05:34.000000000 +0200
| @@ -1,6 +1,6 @@
|  libGLESv1_CM.so.1 libgles1-mesa #MINVER#
|   (regex)"^_glapi_.*@Base$" 7.8.1
| - (regex|optional=mesa internal ASM optimized functions)"^_mesa_.*@Base$" 7.8.1
| +#MISSING: 7.8.1-2# (regex|optional=mesa internal ASM optimized functions)"^_mesa_.*@Base$" 7.8.1
|   _glthread_GetID@Base 7.8.1
|   glActiveTexture@Base 7.8.1
|   glAlphaFunc@Base 7.8.1
| dpkg-gensymbols: warning: debian/libgles2-mesa/DEBIAN/symbols doesn't match completely debian/libgles2-mesa.symbols
| --- debian/libgles2-mesa.symbols (libgles2-mesa_7.8.1-2_kfreebsd-i386)
| +++ dpkg-gensymbolsC1BleL	2010-06-13 10:05:34.000000000 +0200
| @@ -1,6 +1,6 @@
|  libGLESv2.so.2 libgles2-mesa #MINVER#
|   (regex)"^_glapi_.*@Base$" 7.8.1
| - (regex|optional=mesa internal ASM optimized functions)"^_mesa_.*@Base$" 7.8.1
| +#MISSING: 7.8.1-2# (regex|optional=mesa internal ASM optimized functions)"^_mesa_.*@Base$" 7.8.1
|   _glthread_GetID@Base 7.8.1
|   glActiveTexture@Base 7.8.1
|   glAttachShader@Base 7.8.1

but got a successful build.

Mraw,
KiBi.
--- a/src/gallium/auxiliary/os/os_time.c
+++ b/src/gallium/auxiliary/os/os_time.c
@@ -37,7 +37,7 @@
 
 #if !defined(PIPE_OS_EMBEDDED)
 
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_HAIKU) || defined(__GLIBC__)
 #  include <sys/time.h> /* timeval */
 #elif defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY)
 #  include <windows.h>

Attachment: signature.asc
Description: Digital signature


Reply to: