Subject: pkg/8685: Mesa-glx does not build cleanly in pre-ELF i386 system
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/25/1999 18:48:42
>Number:         8685
>Category:       pkg
>Synopsis:       Mesa-glx does not build cleanly in pre-ELF i386 system
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 25 18:48:00 1999
>Originator:     Allen Briggs
	Ninth Wonder, LLC
>Release:        NetBSD 1.4.x
	NetBSD i386, TNT video
System: NetBSD canolog 1.4.1 NetBSD 1.4.1 (CANOLOG) #1: Sat Oct 2 09:46:31 EDT 1999 briggs@backup:/usr/src/sys/arch/i386/compile/CANOLOG i386

	When building Mesa-glx on NetBSD 1.4.1/i386, the build stops
	on servGL/mesaglx/asm_386.S with an unknown pseudo-op .section.
	Attempt to build Mesa-glx on the above platform.
	Apply the following patch (or similar--I'm not sure if the test
	for __ELF__ is correct):
--- servGL/mesaglx/asm_386.S.orig	Mon Oct 25 21:40:15 1999
+++ servGL/mesaglx/asm_386.S	Mon Oct 25 21:40:07 1999
@@ -57,7 +57,7 @@
  * Change this to .data if your system doesn't have .rodata
 #ifndef RODATA
-#if defined(FREEBSD) || defined(__EMX__)
+#if defined(FREEBSD) || defined(__EMX__) || (defined(__NetBSD__) && !defined(__ELF__))
 #define RODATA .data
 #define RODATA 	.section .rodata