So 4.3.0, as it is distributed, doesn't build on FreeBSD alpha (I run
-current, but I think the same problems would exist for -stable).
The following patch makes the build work for me - it runs ok with my
matrox millenium II card.
It does 3 things -- it makes a prototype for a function that doesn't have
one (I couldn't find a header file with this, so I just include it here --
seems ugly), it fixes a problem with system include files (needed an extra
one) and it fixes some broken #ifdef'd code (the #endif is several lines
past where it should be, making the file have systax errors (the function
never finds a final closing '}').
I'd be happpy to answer any questions about the code, and I'd be happy to
try modified versions of this patch if you end up wanting to change things
around a bit.
(standard diff)
-----------------------------------------------------------------------------
# diff xc/programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c
xc.working/programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c
35a36,38
> # ifdef __FreeBSD__
> # include <machine/sysarch.h>
> # endif 38a42
> 53a58,59
> axpDevice bsdGetAXP(void);
> 262a269
> #endif
266d272
< #endif
-----------------------------------------------------------------------------
(or unified diff)
-----------------------------------------------------------------------------
--- xc/programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c Tue Oct 29
16:19:13 2002
+++ xc.working/programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c Tue Mar
4 10:02:16 2003
@@ -33,9 +33,13 @@
#include <sys/param.h>
#ifndef __NetBSD__
# include <sys/sysctl.h>
+# ifdef __FreeBSD__
+# include <machine/sysarch.h>
+# endif
# else
# include <machine/sysarch.h>
#endif
+
#include "xf86Axp.h"
#include "xf86_OSlib.h"
@@ -51,6 +55,8 @@
#define MAP_FAILED ((caddr_t)-1)
#endif
+axpDevice bsdGetAXP(void);
+
#ifndef __NetBSD__
extern unsigned long dense_base(void);
@@ -260,10 +266,10 @@
#endif /* __OpenBSD__ */
xf86ErrorF("\tlinear framebuffer access unavailable\n");
+#endif
}
useDevMem = FALSE;
return;
-#endif
}
void
-----------------------------------------------------------------------------
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86