This is the mail archive of the mailing list for the Java project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: instalation problem

> Date: Mon, 10 Apr 2000 16:18:45 +0100 (BST)
> From: Chris Dornan <>
> 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/

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-#ifdef HAVE_SCHED_YIELD
./include/posix-threads.h:  sched_yield ();
./include/posix-threads.h-#endif /* HAVE_SCHED_YIELD */

or find out which library contains sched_yield and link with it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]