Re: [compiling probs][redhat 52]

From: David Taylor (davidt@xfiles.nildram.co.uk)
Date: 04/12/99


On Sun, 11 Apr 1999, bill long wrote:

> gcc -o ../bin/rpm  main.o config.o db.o state.o cparse.o pfile.o utils.o

Huh?  rpm??

> constants.o alias.o ban.o boards.o color.o fight.o graph.o handler.o
> house.o infos.o ispell.o limits.o magic.o mail.o misc.o mobact.o
> mobcmd.o mobprog.o modify.o movement.o objects.o objsave.o olc.o pcomm.o
> pcreate.o pfight.o shop.o skin.o socials.o spec_assign.o spec_procs.o
> spell_parser.o spells.o spirit.o wcomm1.o wcomm2.o weather.o aedit.o
> hedit.o medit.o oedit.o redit.o sedit.o zedit.o money.o pedit.o races.o
> skills.o
> state.o: In function `state':
> /home/uladmin/rpm/src/state.c:218: undefined reference to `crypt'
> /home/uladmin/rpm/src/state.c:285: undefined reference to `crypt'
> /home/uladmin/rpm/src/state.c:298: undefined reference to `crypt'
> /home/uladmin/rpm/src/state.c:412: undefined reference to `crypt'
> pedit.o: In function `pedit_parse':
> /home/uladmin/rpm/src/pedit.c:632: undefined reference to `crypt'
> pedit.o:/home/uladmin/rpm/src/pedit.c:637: more undefined references to
> `crypt' follow
> make[1]: *** [../bin/rpm] Error 1
> make[1]: Leaving directory `/home/uladmin/rpm/src'
> make: *** [default] Error 2

You have to add -lcrypt to the end of the gcc line...
Though configure should do that itself.

>
> i'm stumped. it should be working fine.
>
> any help is appreciated
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+
>

--
David Taylor
E-Mail: dtaylor@nildram.co.uk.spam
ICQ:    268004
[Remove .spam from e-mail to reply]


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST