Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ Problem Compiling Something to do with Db.o

Problem Compiling Something to do with Db.o

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Darkflame   (10 posts)  Bio
Date Fri 04 Jan 2002 05:14 PM (UTC)
Message
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

Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 04 Jan 2002 10:40 PM (UTC)
Message

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


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Darkflame   (10 posts)  Bio
Date Reply #2 on Sat 05 Jan 2002 02:49 PM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 05 Jan 2002 09:23 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Darkflame   (10 posts)  Bio
Date Reply #4 on Sat 05 Jan 2002 09:57 PM (UTC)
Message
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
Top

Posted by Darkflame   (10 posts)  Bio
Date Reply #5 on Sat 05 Jan 2002 09:58 PM (UTC)
Message
And i use cygwin
Top

Posted by Darkflame   (10 posts)  Bio
Date Reply #6 on Sat 05 Jan 2002 10:01 PM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #7 on Sun 06 Jan 2002 12:29 AM (UTC)
Message
To fix the "crypt" problem with your earlier compile use the "-DNOCRYPT" that you have on the later one (in the file "makefile").

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Taka   (2 posts)  Bio
Date Reply #8 on Mon 03 Jun 2002 12:17 PM (UTC)
Message
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
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


31,637 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.