Solaris compilation Failure: fatal error: sys/mcontext.h: No such file or directory

Bug #1881393 reported by Shawn Ellis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

The compilation fails when building sbcl-2.0.4 on Solaris because mcontext.h doesn't exist. I'm able to reproduce this problem on Solaris 10 and 11. I've attached a patch that removes mcontext.h and everything builds cleanly.
gcc -m64 -g -O2 -Wall -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT -fno-omit-frame-pointer -I. -c -o x86-64-sunos-os.o x86-64-sunos-os.c
x86-64-sunos-os.c:15:10: fatal error: sys/mcontext.h: No such file or directory
 #include <sys/mcontext.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [<builtin>: x86-64-sunos-os.o] Error 1

How to Reproduce:

1. sh ./make.sh on Solaris

SunOS epinard 5.11 11.4.0.15.0 i86pc i386 i86pc

Revision history for this message
Shawn Ellis (shawn-ellis17) wrote :
Revision history for this message
Stas Boukarev (stassats) wrote :

That include is there for a reason, simply removing it might break other OS configurations.

Revision history for this message
Shawn Ellis (shawn-ellis17) wrote :

Ok, I had thought that the file was Solaris specific and wouldn't be used with other operating systems.

Revision history for this message
Stas Boukarev (stassats) wrote :

I mean different Solaris configurations. But I just tested it on OpenIndiana, and it seems to not need these includes.

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Revision history for this message
Shawn Ellis (shawn-ellis17) wrote :

Thanks! SBCL builds cleanly on Solaris 11 now.

Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.