Usenet.com

www.Usenet.com

Group Index

Rec Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: compiling older versions



[EMAIL PROTECTED] (Dr. Richard E. Hawkins) writes:

> Hmm, but looking at the line from the Makefile,
>
>         @cc $(LFLAGS) -o $(GAME) $(HOBJ) $(TERMLIB)
>
> I tried
>
> gmake CFLAGS="-ansi" LFLAGS="-lcompat" TERMLIB="-lcompat"
>
> Loading ...
> termcap.o: In function `startup':
> termcap.o(.text+0x77): undefined reference to `tgetent'
> termcap.o(.text+0xa2): undefined reference to `tgetstr'
> termcap.o(.text+0xc9): undefined reference to `tgetstr'
> ...
> termcap.o(.text+0xa12): undefined reference to `ospeed'
> termcap.o(.text+0xa5f): undefined reference to `ospeed'
> tty.o: In function `gettty':
> tty.o(.text+0x4c): undefined reference to `ospeed'
> gmake: *** [nethack] Error 1
>

You need -lcompat in addition to the regular terminal library, not
instead of it; so, find where TERMLIB is set in the makefile, and add
-lcompat to it, or else set TERMLIB="-lcompat -lwhatever" on the
command line.  (Obviously, replace -lwhatever with the actual lib.)


-- 
[Jed Davis]                                        PGP key available via finger
Selling of self: http://panix.com/~jdev/rs/            or see X-PGP-Key: header
<[EMAIL PROTECTED]>                      or from keyservers, id 0xF33659F9
<[EMAIL PROTECTED]>             A098 903E 9B9A DEF4 168F  AA09 BF07 807E F336 59F9



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.