gcc in chroot

Eric "Shubes" plug at shubes.net
Thu Jun 15 15:09:22 MST 2006


Jeremy C. Reed wrote:
> On Thu, 15 Jun 2006, Eric "Shubes" wrote:
> 
>> I don't know how to do that. Can you give me an example to get me started? I
>> think this will be revealing.
> 
> Maybe something like:
> 
> strace gcc somefile.c

Got it. I ran the trace to a file, but no need to attach it.

> You might also need strace -s 255 for long strings.
> 
>> # gcc -v
> ...
>> gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
> 
> That might be part of your problem.
> 
> Do you also have /usr/lib/gcc-lib/i386-redhat-linux/3.4.5/cc1?
> 
> Or another location for gcc 3.4.5's cc1?
> 
> (Notice the 3.4.5 versus 3.2.3.)

Might be? You hit the nail on the head. I notice in the strace that it's 
looking for 3.4.5. Gotta pay close attention to version numbers!

I'm still wondering, though, why (how?) does it work normally, and not 
work inside the jail? Maybe I should strace it on the outside and 
compare results?

Where to go from here?

Thanks again, Jeremy. I learned a lot this afternoon, and it's only 3:00!

-- 
-Eric 'shubes'


More information about the PLUG-discuss mailing list