Problem Compiling Something to do with Db.o

Posted by Darkflame on Fri 04 Jan 2002 05:14 PM — 9 posts, 33,396 views.

#0
gcc -c -Wall -O -g db.c
db.c:54: conflicting types for `random'
/usr/include/stdlib.h:155: previous declaration of `random'
db.c:56: conflicting types for `srandom'
/usr/include/stdlib.h:156: previous declaration of `srandom'
make: *** [db.o] Error 1

Australia Forum Administrator #1

There is a mention of fixing the random problem in another post on this forum (a little way down) - see ROM server with cygnus

#2
This is what happended when i tried it again with the fixed makefile

$ make
gcc -c -Wall -O -g db.c
db.c:68: conflicting types for `srandom'
/usr/include/stdlib.h:156: previous declaration of `srandom'
make: *** [db.o] Error 1
Australia Forum Administrator #3
Which version of ROM are you compiling? Are you using Cygwin? I compiled the version from this site OK with the suggested changes, and had no problems.
#4
Ok im compiling rom24b6 and i got everything going ok all the files finished up but when it went to make the exe file this is what happened


act_info.o: In function `do_password':
/cygdrive/c/muds/rom24/rom24/src/act_info.c:2722: undefined reference to `crypt'

/cygdrive/c/muds/rom24/rom24/src/act_info.c:2739: undefined reference to `crypt'

comm.o: In function `nanny':
/cygdrive/c/muds/rom24/rom24/src/comm.c:1652: undefined reference to `crypt'
/cygdrive/c/muds/rom24/rom24/src/comm.c:1764: undefined reference to `crypt'
/cygdrive/c/muds/rom24/rom24/src/comm.c:1787: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [rom] Error 1
#5
And i use cygwin
#6
Another error while compiling another mud
a more added on too rom2.4 its ghostmud but anyeays.



$ make
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND db.c
In file included from db.c:41:
merc.h:2914: parse error before `char'
make: *** [db.o] Error 1


I dont know what to do to fix it when i look at char and compare it to others its the same i dont know the problem
Australia Forum Administrator #7
To fix the "crypt" problem with your earlier compile use the "-DNOCRYPT" that you have on the later one (in the file "makefile").
#8
For GhostMUD join the yahoo groups. both the cygwin and parse errors during compile have been covered.

Also feel free to take me up on the offer i made in the ghost package and email me with issues. I am always happy to help though it may take a day or two sometimes as i can not always check email constantly.

Thanks
Taka
a_ghost_dancer@excite.com
bb12.betterbox.net:3333