instalation problem

Andrew Haley aph@pasanda.cygnus.co.uk
Mon Apr 10 08:44:00 GMT 2000


> Date: 2000年4月10日 16:18:45 +0100 (BST)
> From: Chris Dornan <cdornan@arm.com>
>> I am trying to get a fairly vanilla gjc going on Solaris
> (sparc-sun-solaris2.7) but am getting segementation faults as soon as
> it tries to start up the run-time system on a trivial Hello program

The SEGV is deliberate. Only if the signal isn't caught is there any
problem. You should continue after you see this signal.
> When I do a clean rebuild with
>> 	--enable-threads=posix

Try it without threads to begin with.
>> it gives me a link error:
>> 	Undefined first referenced
> 	 symbol in file
> 	sched_yield /export/home/cdornan/gnu/gcc-2.95.2/lib/libgcj.so

This probably means that you have sched_yield in a system header file
but you don't have it in the libraries you're linking with.
You may either comment out this:
./include/posix-threads.h-_Jv_ThreadYield (void)
./include/posix-threads.h-{
./include/posix-threads.h-#ifdef HAVE_SCHED_YIELD
./include/posix-threads.h: sched_yield ();
./include/posix-threads.h-#endif /* HAVE_SCHED_YIELD */
./include/posix-threads.h-}
or find out which library contains sched_yield and link with it.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /