Problems compiling on NetBSD/m68k

Stefan Burstroem f94sbu at efd.lth.se
Sun Feb 21 05:07:43 PST 1999


In article <199902212145.OAA07102 at sal.cs.utah.edu> you wrote:
>The OSKit port of kaffe also provides its own implementation of libc.
>While you're right that we don't want to keep your libc under CVS,
>I think it's not a problem, you'd simply specify link lines in your
>config.frag that would refer to your modified libc.
>Kaffe Amiga users would still have to do two downloads and installations.

>As an aside, kaffe is not supposed to call any unsafe libc function.

Well, do you know which functions that are 'unsafe' ;)
On Unix/POSIC systems where evertything is used using SYS_call and signal
disabling it works fine, but in obscure ports of libc where you cannot rely
in signal handling things works abit differently. Eg. gettimeofday is an
unsafe call under AmigaOS since it calls into the os without doing a
SYS_call. Also since i had to use my own signaling code to write the
scheduler this makes things even trickier.

>They're either part of the jsyscall interface or calls to them must be 
>protected via enter/leaveUnsafeRegion or a lock.

I also had to add my own startup code to do this since the standard crt0.o
of course assumes that standard libc is used.

The best approach would probably be to integrate the threading under 
amiga-threads and have the libc patches available in a separate package.

regards, Stefan Burstroem

-----------------------------------------------------------------------
>> Irl: Stefan Burstroem <<  >> Omnipresence Intl. <<  >> Irc: Yabba <<
 >> Phone: +46 (0)46-211 40 84 << >> EMail: stefan at omnipresence.com <<
-----------------------------------------------------------------------



More information about the kaffe mailing list