Subject: Re: Amiga Port:getting software compiled.
To: None <Michael.Hellmund@darmstadt.netsurf.de>
From: Hacksaw <hacksaw@user1.channel1.com>
List: netbsd-help
Date: 01/27/1997 23:27:16
>Since I took the last jump and installed NetBSD on my computer.
>I wonder why it seems like I cant compile any software on it.
>I  tryed to compile Bash-1.14.1. and it ends with errors.
>*** STOP. something.
>I tryed 4 programmes allready and they wont let me compile them
>not the compile would not run and start it work.
>it just stopes at a certain point.
>ie. the zsh2.1 stoped cuz of a missing termio.h file
>may I still need better include files for my maschine ?
>since termio.h allready is missing?
>and if where can I get those files ?

Well, it's like this. NetBSD is pretty darn POSIX. Maybe more than
anyone else. Because of that, certain things are done in NetBSD
somewhat differently than other folks.

In any case, you will need to learn some things about NetBSD, so you
can spot these snafus.

For instance, NetBSD doesn't use termio.h, it uses termios.h.

The process I usually use is:
1. Read the WHOLE readme file.
2. Follow the installation directions well.
3. With gnu tools, follow the directions explicitly and choose the
simplest path. More often than not, doing much more than

./configure
make
make install

is probably complicating things. 

4. When reporting problems or asking questions to the net or mailing
lists, please include your system setup (amiga with 40 megs, Pentium
with 32M and SCSI, etc.), the OS Version you have installed (1.1, 1.2,
etc.) and exactly what the program(s) printed out when they failed.

5. An important one I see a lot is complaints about sys_errlist, which
most people define in one of their main files as a global. It is
defined in NetBSD's stdio.h, and done so slightly differently than
most folks do it in their files. This is often a cause for a halted
make.

Just comment out their declaration, or ifdef it out, something like
(but not exactly, necessarily):

if !defined(__NetBSD__)
extern char *sys_errlist
endif

6. Persist and learn!

Good luck.
--
Hacksaw