[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] simulavr on 'bsd
From: |
ken |
Subject: |
[Simulavr-devel] simulavr on 'bsd |
Date: |
Mon, 7 Jan 2002 19:09:18 -0800 |
User-agent: |
Mutt/1.2.5i |
just tried to compile simulavr on netbsd 1.5.1 again.
it does pretty well on portability. but a couple things appear broken:
1) ../simulavr/src/disp/disp.c:541: undefined reference to `resizeterm'
this is an ncurses thing, and netbsd doesn't grok ncurses that well.
it's theoretically possible to install ncurses, but i've never been
able to.
i'd suggest replacing it with some curses least-common-denominator,
if such a thing exists.
2) on_exit again. i'd hacked main.c to use atexit instead as a workaround.
on_exit appears to be a gnu thing, neither netbsd nor freebsd 4.3 have
it.
atexit semantics are different too, there's no way to pass a void * arg.
3) texi is a NOP on netbsd. probably makes sense to do an AC_PROGRAM for it,
and fail to ./configure without it, or allow an option to build w/o it.
4) the use of times() in utils.c:get_program_time is broken on netbsd.
compiles fine, but causes segfaults. urk.
the netbsd docs recommend using gettimeofday() instead.
and that was it. not too bad, but it won't build and run out-of-the-box on the
bsd's as it stands now. i would guess the ncurses stuff would be an obstacle on
solaris, too, and possibly on_exit as well.
-ken
--
------------------
One world. Many gods. Plenty for everyone.
- [Simulavr-devel] simulavr on 'bsd,
ken <=