C programming question

brjames

Member
Apr 25, 2001
168
0
0
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.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
That file exists in the Linux kernel code, I doubt it exists on your FreeBSD system. What are you trying to compile?
 

JW310

Golden Member
Oct 30, 1999
1,582
0
0
try googling for "sigcontext.h download" (leave out the quotes in your search, though)


JW
 

brjames

Member
Apr 25, 2001
168
0
0
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
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
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.
 

brjames

Member
Apr 25, 2001
168
0
0
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.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
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.