Nethack 3.0p9 under HP-UX

Carl Edman cedman at golem.ps.uci.edu
Tue Feb 5 13:00:38 AEST 1991


In article <1991Feb5.003214.16596 at cunixf.cc.columbia.edu> cag4 at 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 at golem.ps.uci.edu
in the laboratory.                           | edmanc at 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 ?  *



More information about the Comp.unix.programmer mailing list