• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C programming question

brjames

Member
I'm trying to compile this code and its bugging out at the include statement:

#include <asm/sigcontext.h>

Where can I find this library, or how can I put it on my system? (The system I'm running on is FreeBSD). I've tried googling for this and all it turns up is a bunch of mailing lists that go along the lines of "Fixed the bug in x86-64 implementation of sigcontext.h" i.e. nothing that helps me figure out what this thing is.

Incidentally, the major function in the code is a segv_handler.
 
That file exists in the Linux kernel code, I doubt it exists on your FreeBSD system. What are you trying to compile?
 
Hmm... so you're saying I should use a linux system then...
That is an option, the only problem is that this code is for running computers on many computers and I only have access to one Linux box (as opposed to 48 FreeBSD boxes)

Thanks for the help
 
If you have so many FreeBSD systems why not just search the kernel and "world" sources for it?

Chances are though if it's looking for an include file in the Linux kernel it won't work on FreeBSD without some changes.
 
How would I search the kernel and "world" sources for it? Your answer is beyond my easy comprehension. I'm not at all skilled with Unix or Linux. In fact this assigment is probably well beyond my capabilities. It is not out of the question to rewrite the segv_handler function if I could figure what the context for FreeBSD was.
 
I've not got much FreeBSD experience but if it's anywhere it'll probably be under /usr/src, from there type 'find . -name "sigcontext.h"' and see if anything turns up.
 
Back
Top