This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/12876] New: mprotect not declared in libgcc/_trampoline.c
- From: "lucier at math dot purdue dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2003 18:05:03 -0000
- Subject: [Bug bootstrap/12876] New: mprotect not declared in libgcc/_trampoline.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12876
Summary: mprotect not declared in libgcc/_trampoline.c
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lucier at math dot purdue dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
Sorry, I didn't save the error message before trying to fix the problem.
I came up with the following fix:
banach-98% rcsdiff -u sol2.h
===================================================================
RCS file: RCS/sol2.h,v
retrieving revision 1.1
diff -u -r1.1 sol2.h
--- sol2.h 2003/11/02 16:23:25 1.1
+++ sol2.h 2003/11/02 16:26:45
@@ -19,6 +19,8 @@
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#include <sys/mman.h>
+
/* We use stabs-in-elf for debugging, because that is what the native
toolchain uses. */
#undef PREFERRED_DEBUGGING_TYPE