cedman@golem.ps.uci.edu (Carl Edman) (02/05/91)
In article <1991Feb5.003214.16596@cunixf.cc.columbia.edu> cag4@cunixa.cc.columbia.edu (Carson A. Gaspar) writes:
I am having trouble compiling Nethack 3.0p9under HP-UX 7.0. The
source claims this works, soo I'm obviously doing something wrong. I
get errors when doing a make in the src directory:
$ make
gcc -o makedefs makedefs.o monst.o objects.o
makedefs.o: Undefined symbol ___iob referenced from text segment
...
makedefs.o: More undefined symbol ___iob refs follow
gmake: *** [makedefs] Error 1
If anyone knows what I'm doing wrong, please tell me.
There is an obvious thing which you should always do in such a
situation (i.e. it solves 90% of the problems of this type). All
experienced programmers and porters know it, but for the rest of us:
1. Add the following two lines to your "~/.[tck]shrc" file. [Note
these are hp-gnu-[t]csh-specific. But similiar versions using a
different directory/switchs/nm-instead-of-gnm/different-argument-
-recall-mechanism should work].
alias icheck 'grep \!* /usr/include/*.h /usr/include/sys/*.h'
alias lcheck 'gnm -go /usr/local/lib/gnu/lib*.a | grep "^/usr/local/lib/gnu/lib[a-zA-Z]*\.a([^)]*):[[:xdigit:] ]\{8\} [^U] _.*\!*"'
2. Try:
lcheck iob
and
icheck iob.
Whenever any symbol gives you trouble try these two. Chances are they
will tell you what you have to do. And - yes - this solves this
problem, too (as far as I can tell).
Carl Edman
Theoretical Physicist,N.: A physicist whose | Send mail
existence is postulated, to make the numbers | to
balance but who is never actually observed | cedman@golem.ps.uci.edu
in the laboratory. | edmanc@uciph0.ps.uci.edu
* Did you know that you can have a typo in your signature, send 100s of *
* mails and 100s of world-wide posts, and nobody will ever tell you ? *