2008/6/21 Marc 'HE' Brockschmidt <[EMAIL PROTECTED]>:
> Package: opencascade
> Version: 6.2-5
> Severity: important
>
> Heya,
>
> Building your package failed on my alpha buildd:
>
> | Automatic build of opencascade_6.2-5 on ds10 by sbuild/alpha 98-farm
> | Build started at 20080620-1756
> |
> ******************************************************************************
>
> [...]
>
> | Checking correctness of source dependencies...
> | Toolchain package versions: libc6.1-dev_2.7-12 gcc-4.2_4.2.4-2
> g++-4.2_4.2.4-2 binutils_2.18.1~cvs20080103-4 libstdc++6-4.2-dev_4.2.4-2
> libstdc++6_4.3.1-1
> [...]
> | mv -f .deps/MFT_FileRecord.Tpo .deps/MFT_FileRecord.Plo
> | /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I../../.. -I/usr/include/X11 -I../../../inc -I../../../drv/Aspect
> -I../../../src/Aspect -I../../../drv/InterfaceGraphic
> -I../../../src/InterfaceGraphic -I../../../drv/SelectBasics
> -I../../../src/SelectBasics -I../../../drv/Viewer -I../../../src/Viewer
> -I../../../drv/Xw -I../../../src/Xw -I../../../drv/MFT -I../../../src/MFT
> -I../../../drv/PS -I../../../src/PS -I../../../drv/CGM -I../../../src/CGM
> -I../../../drv/AlienImage -I../../../src/AlienImage -I../../../drv/Image
> -I../../../src/Image -I../../../drv/PlotMgt -I../../../src/PlotMgt
> -I../../../drv/ImageUtility -I../../../src/ImageUtility
> -I../../../drv/TColQuantity -I../../../src/TColQuantity -g -O2 -DCSFDB
> -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -g -DDEB -D_DEBUG
> -MT MFT_FontManager.lo -MD -MP -MF .deps/MFT_FontManager.Tpo -c -o
> MFT_FontManager.lo `test -f '../../../src/MFT/MFT_FontManager.cxx' || echo
> './'`../../../src/MFT/MFT_FontManager.cxx
> | g++ -DHAVE_CONFIG_H -I. -I../../.. -I/usr/include/X11 -I../../../inc
> -I../../../drv/Aspect -I../../../src/Aspect -I../../../drv/InterfaceGraphic
> -I../../../src/InterfaceGraphic -I../../../drv/SelectBasics
> -I../../../src/SelectBasics -I../../../drv/Viewer -I../../../src/Viewer
> -I../../../drv/Xw -I../../../src/Xw -I../../../drv/MFT -I../../../src/MFT
> -I../../../drv/PS -I../../../src/PS -I../../../drv/CGM -I../../../src/CGM
> -I../../../drv/AlienImage -I../../../src/AlienImage -I../../../drv/Image
> -I../../../src/Image -I../../../drv/PlotMgt -I../../../src/PlotMgt
> -I../../../drv/ImageUtility -I../../../src/ImageUtility
> -I../../../drv/TColQuantity -I../../../src/TColQuantity -g -O2 -DCSFDB
> -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -g -DDEB -D_DEBUG -MT
> MFT_FontManager.lo -MD -MP -MF .deps/MFT_FontManager.Tpo -c
> ../../../src/MFT/MFT_FontManager.cxx -fPIC -DPIC -o .libs/MFT_FontManager.o
> | In file included from ../../../inc/TCollection_AsciiString.hxx:752,
> | from ../../../inc/Aspect_FontStyle.hxx:29,
> | from ../../../drv/MFT/MFT_FontManager.jxx:17,
> | from ../../../drv/MFT/MFT_FontManager.ixx:22,
> | from ../../../src/MFT/MFT_FontManager.cxx:100:
[...]
> | ../../../src/MFT/MFT_FontManager.cxx: In static member function 'static
> Standard_Boolean MFT_FontManager::Read(MFT_FileRecord&)':
> | ../../../src/MFT/MFT_FontManager.cxx:2873: error: 'MAP_VARIABLE' was not
> declared in this scope
[...]
Those mmap macros in ros/inc/MFT_FileRecord.hxx are ugly. IMO it is
not worth fixing them, fonts rendering is seldom needed by Opencascade
users,
and they are not defined on x86 and amd64, so let's disable them on all arches.
Denis
Index: opencascade-6.2/ros/inc/MFT_FileRecord.hxx
===================================================================
--- opencascade-6.2.orig/ros/inc/MFT_FileRecord.hxx
+++ opencascade-6.2/ros/inc/MFT_FileRecord.hxx
@@ -19,6 +19,7 @@
*/
#endif //WNT
+#if 0
#if defined ( __hpux ) || defined ( HPUX )
#include <sys/mman.h>
#define MAP_FAILED -1
@@ -55,6 +56,7 @@
#define MUNMAP(mmap_addr,mmap_size) \
munmap((caddr_t) mmap_addr,(size_t) mmap_size)
#endif // __alpha
+#endif
#ifndef MMAP
// #error *** MMAP is not used on your system by MFT fonts ***