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
➜ ROM server with cygnus
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Tue 13 Mar 2001 09:50 AM (UTC) |
| Message
| this is what i have when i do a make on the rom server
$ make
gcc -c -Wall -O -g db.c
db.c:54: conflicting types for `random'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/stdlib.h:117:
previous declaration of `random'
db.c:56: conflicting types for `srandom'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/stdlib.h:118:
previous declaration of `srandom'
make: *** [db.o] Error 1
not real sure where to look from there, but i have
had this error before, at it appears to relate to
cygnus itself...
any ideas?
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 13 Mar 2001 01:40 PM (UTC) |
| Message
| You need to amend the file "Makefile" slightly to change a couple of defines. Change the first four lines to look like this:
CC = gcc
PROF = -O -g
NOCRYPT = -DNOCRYPT
C_FLAGS = -Wall $(PROF) $(NOCRYPT) -DOLD_RAND
Specifically you are adding "-DNOCRYPT" to the end of line 3 and "-DOLD_RAND" to the end of line 4.
It is probably wise to start again, so do this then:
rm *.o
make
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #2 on Tue 13 Mar 2001 02:38 PM (UTC) |
| Message
| that one worked perfectly... now all i need
is one with colors.. ;)
i'm trying out a MudOS too, but i don't know
what knowledge you have on that... but i'm
trying some simple things first.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Tue 13 Mar 2001 05:40 PM (UTC) |
| Message
| | I haven't tried MudOS. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #4 on Tue 13 Mar 2001 06:40 PM (UTC) |
| Message
| this may not be covered but i haven't found anywhere
that has given me answers as quickly as you so here
goes... obviously i want to put color into the ROM
since text without ansi is dull... but when i use
the color code patch it doesn't seem to work, and
i think i might be doing the command wrong...
patch < patch_rom2.4_colour
if you know of the correct way to patch or this is
the right way and i may be doing something else
wrong or know of a rom24b6 thats got the color in
it, please let me know... i've been trying to figure
this patch deal out for a while because there are
lots of add-ons already created that i'd like to
patch, but if i'm doing the patch wrong, they'll
never work... thanks again. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Tue 13 Mar 2001 06:58 PM (UTC) |
| Message
| Where did you get the patch from (URL?) - I will try it myself and let you know.
One problem might be that you need to patch the exact version - depending on the way the patches are made. If it is a "context diff" it is not critical, but a different sort (which is by line number) is.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #6 on Tue 13 Mar 2001 08:14 PM (UTC) |
| Message
| its at http://www.inetsolve.com/~snip/snippets/colour_V2_0_tar.tar
also i am planning on adding OLC to the code as well and
make come across the same problem as the color in some way
of course i cant find the page for that but oh well | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Tue 13 Mar 2001 08:38 PM (UTC) |
| Message
| I've got the file: romolc10.tar.gz
but I don't remember where it came from.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #8 on Tue 13 Mar 2001 09:35 PM (UTC) |
| Message
| It appears to work with 2.4b2 but not 2.4b6.
In other words, you want to have this version of ROM:
Rom24b2.tar.gz
The same remarks apply to the OLC code.
I did a 'diff' on b2 compared to b6, and there certainly seem to be substantial changes in b6, eg. adding the "follow" command, from what I can see.
Probably what I would do is:
a) Unpack both b2 and b6 into different directories.
b) Do a "context diff" to find out the differences, eg.
diff -c rom24b2/Rom24/src rom24b6/Rom24/src > patch_rom_b2_to_b6
This creates a file "patch_rom_b2_to_b6" that you can later use to patch the b2 version to bring it up to the b6 version. The "context diff" (indicated by -c) is more resilient to lines moving around.
c) Add OLC
d) Add colour
e) Apply the patch file obtained above, eg. something like:
patch < patch_rom_b2_to_b6
I can't guarantee this will work, but I think it is the right general approach. For example, maybe OLC and colour will be mutually incompatible, maybe more context diffs are needed. However I think it is worth trying.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #9 on Wed 14 Mar 2001 08:00 AM (UTC) |
| Message
| actually i got the olc file from the same site i got
the patch from... but i got the rom24olc171.tar.gz
one... pretty much the same but a newer version?
i'm guessing the same rules apply to this version as
to how to patch it in... | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #10 on Wed 14 Mar 2001 09:29 AM (UTC) |
| Message
| ok, what i've ended up doing is what you said with
the rom24b2 and rom24b6 doing the diff and whatnot,
but when add the patch for color, it goes in fine,
but when i do a make i get this error...
$ make
rm -f rom
gcc -O -g -o rom act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o handler.o he
aler.o interp.o note.o lookup.o magic.o magic2.o music.o recycle.o save.o scan.o skills.o special.o tables.o update.o
act_info.o: In function `do_password':
/home/jmartin4/rom24b2/rom24/src/act_info.c:2714:
undefined reference to `crypt'
/home/jmartin4/rom24b2/rom24/src/act_info.c:2731:
undefined reference to `crypt'
comm.o: In function `nanny':
/home/jmartin4/rom24b2/rom24/src/comm.c:1651:
undefined reference to `crypt'
/home/jmartin4/rom24b2/rom24/src/comm.c:1763:
undefined reference to `crypt'
/home/jmartin4/rom24b2/rom24/src/comm.c:1786:
undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [rom] Error 1
i was thinking i need to change in the makefile again,
but i had already made the changes you specified...
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #11 on Wed 14 Mar 2001 12:15 PM (UTC) |
| Message
| The patch might have changed the makefile.
Certainly sounds like you need to add -DNOCRYPT to it again. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #12 on Wed 14 Mar 2001 02:06 PM (UTC) |
| Message
| nope... more like i was dumb and didn't
rm *.O ;)
heh...
all good... for now.
| | Top |
|
| Posted by
| Translucent Hate
USA (48 posts) Bio
|
| Date
| Reply #13 on Wed 14 Mar 2001 02:51 PM (UTC) |
| Message
| it seems like OLC is a big pain to install...
the one you install manually changing the src files
isn't very helpful on where exactly in each file to
change, and the one i just copy files into the src
directory seems to give me the same problems....
basically the patch fails... possibly cause the
rom24b2 is too old to patch olc into?
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #14 on Wed 14 Mar 2001 09:01 PM (UTC) |
| Message
| I thought I got it to work with rom24b2 however you probably have to have an unpatched version. That is, don't add colour first.
However then you may have the problem that the colour patch won't work. :) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
95,720 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top