[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  SWRiP Make error

SWRiP Make error

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


Pages: 1  2  3  4  5 6  

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #60 on Thu 01 Nov 2007 02:27 AM (UTC)
Message
CC = g++
PROF =
#NOCRYPT = -DNOCRYPT
#Uncomment the next line if you want MCCP support
#DBUGFLG = -DMCCP
C_FLAGS = -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG)
L_FLAGS = $(PROF)

O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o \
build.o clans.o comm.o comments.o const.o db.o fight.o \
handler.o hashstr.o id.o interp.o magic.o makeobjs.o \
misc.o mud_comm.o mud_prog.o krearena.o player.o requests.o \
reset.o save.o shops.o skills.o special.o tables.o track.o update.o \
space.o space2.o bounty.o swskills.o alias.o grub.o mapper.o templateparse.o trivia.o

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
build.c clans.c comm.c comments.c const.c db.c fight.c \
handler.c hashstr.c id.c interp.c magic.c makeobjs.c \
misc.c mud_comm.c mud_prog.c krearena.c player.c requests.c \
reset.c save.c shops.c skills.c special.c tables.c track.c update.c \
space.c space2.c bounty.c swskills.c alias.c grub.c mapper.c templateparse.c trivia.c

H_FILES = mud.h bet.h

all:
# co $(H_FILES)
make swrip
# rm -f $(H_FILES)
mv swrip ../bin/swrip

swrip: $(O_FILES)
rm -f swrip
$(CC) $(L_FLAGS) -o swrip $(O_FILES) -lm
chmod g+w swrip.exe
chmod g+w $(O_FILES)

.c.o: mud.h
$(CC) -c $(C_FLAGS) $<

clean:
rm -f $(O_FILES)


theres the makefile i pulled it up in notepad...not that it matters but there it is
[Go to top] top

Posted by Nick Gammon   Australia  (22,985 posts)  [Biography] bio   Forum Administrator
Date Reply #61 on Thu 01 Nov 2007 02:34 AM (UTC)
Message
Ah I see, I had changed mine slightly to try to fix the problem. Change this line:


$(CC) $(L_FLAGS) -o swrip $(O_FILES) -lm


to:


$(CC) $(L_FLAGS) -o swrip $(O_FILES) -lm -lz

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #62 on Thu 01 Nov 2007 03:01 AM (UTC)
Message
Omg im so happy!!! that fixed those errors now i need to fix the crypt parts i have put the #include <crypt.h> in the files to try and fix them but after doing that i still have these ones left

act_info.o: In function `_Z11do_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_info.c:3393: undefined reference to `_crypt'

/cygdrive/c/phobos/swrip200/src/act_info.c:3410: undefined reference to `_crypt'

act_wiz.o: In function `_Z16do_form_passwordP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/act_wiz.c:4973: undefined reference to `_crypt'
build.o: In function `_Z7do_msetP9char_dataPc':
/cygdrive/c/phobos/swrip200/src/build.c:1656: undefined reference to `_crypt'
comm.o: In function `_Z5nannyP15descriptor_dataPc':
/cygdrive/c/phobos/swrip200/src/comm.c:1732: undefined reference to `_crypt'
comm.o:/cygdrive/c/phobos/swrip200/src/comm.c:1821: more undefined references to
`_crypt' follow
collect2: ld returned 1 exit status
make[1]: *** [swrip] Error 1
make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
make: *** [all] Error 2


so i thank you a ton for helping me fix the big problem now if you wouldn't mind also helping me with this i would be greatfull
[Go to top] top

Posted by Nick Gammon   Australia  (22,985 posts)  [Biography] bio   Forum Administrator
Date Reply #63 on Thu 01 Nov 2007 05:00 AM (UTC)
Message
Change


#NOCRYPT = -DNOCRYPT


to:


NOCRYPT = -DNOCRYPT


in your Makefile, do another "make clean" and then "make".


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #64 on Thu 01 Nov 2007 05:35 AM (UTC)
Message
Ok the errors are gone now what do i do i thought i was suppose to do ./startup & but it says bash: ./startup: No such file or directory so im not sure what to do since its compiled how do i start it
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #65 on Thu 01 Nov 2007 05:39 AM (UTC)
Message
Ok ./startup & worked but i dont see a startup file where i look to see what the port is
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #66 on Thu 01 Nov 2007 05:44 AM (UTC)
Message
I don't understand. You say ./startup worked, but you don't see a startup file. ./startup couldn't have worked without a startup file.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #67 on Thu 01 Nov 2007 05:50 AM (UTC)
Message
$ ./startup &
[4] 3888
[3] Exit 127 ./startup
bash: ./startup: No such file or directory

is what i get but there isnt a file named startup or anything like it in the src
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #68 on Thu 01 Nov 2007 05:51 AM (UTC)
Message
nevermind it was in the bin folder
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #69 on Thu 01 Nov 2007 05:53 AM (UTC)
Message
Ok now it is telling me %%% Error Connecting: Connection refused and wont connect
[Go to top] top

Posted by Nick Gammon   Australia  (22,985 posts)  [Biography] bio   Forum Administrator
Date Reply #70 on Thu 01 Nov 2007 06:07 AM (UTC)
Message
You need to be in the area directory. This is how I got it to work - after compiling.


$ cd ../area

$ ../bin/swrip.exe

Thu Nov  1 17:05:36 2007 :: PID: 2520
Thu Nov  1 17:05:36 2007 :: Booting Database
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Thu Nov  1 17:05:36 2007 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Thu Nov  1 17:05:36 2007 :: Loading commands
Thu Nov  1 17:05:36 2007 :: Loading sysdata configuration...
Thu Nov  1 17:05:36 2007 :: Loading socials
Thu Nov  1 17:05:36 2007 :: Loading skill table
Thu Nov  1 17:05:36 2007 :: Sorting skill table...
Thu Nov  1 17:05:36 2007 :: Loading herb table
Thu Nov  1 17:05:36 2007 :: Making wizlist
Thu Nov  1 17:05:36 2007 :: Initializing request pipe
Thu Nov  1 17:05:36 2007 :: Initializing random number generator
Thu Nov  1 17:05:36 2007 :: Setting time and weather
Thu Nov  1 17:05:36 2007 :: Assigning gsn's
ASSIGN_GSN: Skill makehulltracker not found.
ASSIGN_GSN: Skill makeinternaltracker not found.
ASSIGN_GSN: Skill makemissile not found.
ASSIGN_GSN: Skill shieldwork not found.
ASSIGN_GSN: Skill feed not found.
ASSIGN_GSN: Skill bite not found.
ASSIGN_GSN: Skill claw not found.
ASSIGN_GSN: Skill sting not found.
ASSIGN_GSN: Skill tail not found.
ASSIGN_GSN: Skill study not found.
ASSIGN_GSN: Skill brew not found.
ASSIGN_GSN: Skill slice not found.
ASSIGN_GSN: Skill chill touch not found.
ASSIGN_GSN: Skill curse not found.
Thu Nov  1 17:05:36 2007 :: Reading in area files...
(help.are)
limbo.are     : Rooms:     1 - 45    Objs:     2 - 99    Mobs:     1 - 98
newacad.are   : Rooms: 10300 - 10430 Objs: 10300 - 10499 Mobs: 10340 - 10499
Thu Nov  1 17:05:36 2007 :: [*****] FILE: space.are LINE: 9717
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Get_obj_index: bad vnum 2700.
Thu Nov  1 17:05:36 2007 :: [*****] BOOT: Load_resets: space.are (1) 'O': object
 2700 doesn't exist.
space.are     : Rooms: 32000 - 32499 Objs: 32000 - 32499 Mobs: 32000 - 32499
omni_complex  : Rooms:   100 - 150   Objs:   100 - 150   Mobs:     0 - 0
templaterooms.are: Rooms:  2700 - 3197  Objs:  2700 - 2700  Mobs:     0 - 0
Thu Nov  1 17:05:36 2007 :: Fixing exits
Thu Nov  1 17:05:36 2007 :: Initializing economy
Thu Nov  1 17:05:36 2007 :: Loading buildlist
Thu Nov  1 17:05:36 2007 :: ../gods/Darrik
Thu Nov  1 17:05:36 2007 :: Loading boards
Thu Nov  1 17:05:36 2007 :: Loading clans
Thu Nov  1 17:05:36 2007 :: Loading clans...
Thu Nov  1 17:05:36 2007 :: empire.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: rebel.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: assassins.guild
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: csa.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: Triad.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: BaClan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: sexicouncil.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: tttech.clan
Thu Nov  1 17:05:36 2007 :: Storeroom not found
Thu Nov  1 17:05:36 2007 :: $
Thu Nov  1 17:05:36 2007 ::  Done clans
Sorting clans....
Thu Nov  1 17:05:36 2007 ::  Done sorting
Thu Nov  1 17:05:36 2007 :: Loading senate
Thu Nov  1 17:05:36 2007 :: Loading bans
Thu Nov  1 17:05:36 2007 :: Loading corpses
Thu Nov  1 17:05:36 2007 :: Loading space
Thu Nov  1 17:05:36 2007 :: Loading space...
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Fread_spaceobject: no match: ~
Thu Nov  1 17:05:36 2007 ::  Done spaceobjects
Thu Nov  1 17:05:36 2007 :: Loading ships
Thu Nov  1 17:05:36 2007 :: Loading ships...
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 :: [*****] BUG: Load_ship_file: # not found.
Thu Nov  1 17:05:36 2007 ::  Done ships
Thu Nov  1 17:05:36 2007 :: Loading bounties
Thu Nov  1 17:05:36 2007 :: Loading disintigrations...
Thu Nov  1 17:05:36 2007 ::  Done bounties
Thu Nov  1 17:05:36 2007 :: Loading governments
Thu Nov  1 17:05:36 2007 :: Loading planets...
Thu Nov  1 17:05:36 2007 :: $
Thu Nov  1 17:05:36 2007 ::  Done planets
Thu Nov  1 17:05:36 2007 :: Resetting areas
Resetting: limbo.are
Resetting: newacad.are
Resetting: space.are
Resetting: omni_complex
Resetting: templaterooms.are
Thu Nov  1 17:05:36 2007 :: Reading in Vendors
Thu Nov  1 17:05:36 2007 :: Reading in Storerooms
Thu Nov  1 17:05:36 2007 :: Initializing socket
Thu Nov  1 17:05:36 2007 :: Rise in Power ready on port 4000.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #71 on Thu 01 Nov 2007 08:19 AM (UTC)
Message
Ok well it was up then i was in the academy trying to get the doll and i had a crash and my connection is refused and this is what cygwin tells me

make[1]: Leaving directory `/cygdrive/c/phobos/swrip200/src'
mv swrip ../bin/swrip
mv: cannot move `swrip.exe' to `../bin/swrip.exe': Permission denied
make: *** [all] Error 1
[4]+ Exit 127 ./startup

so if anyone can help me i'd apreshiate it also how would i change the authorization so i can make myself an immy without having to graduate the academt because the mobprog is messed up and the child wont give me the luke action figure
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #72 on Thu 01 Nov 2007 08:51 AM (UTC)
Message
If you had an actual crash, you should try running your game under gdb. Nick has an excellent guide:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3653

As for making yourself an imm, you can edit your pfile to set your level to 65. But the game might come with an imm character already; check the docs. (SmaugFUSS 1.8 for instance comes with an 'Admin' character.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Phobos   (79 posts)  [Biography] bio
Date Reply #73 on Thu 01 Nov 2007 08:38 PM (UTC)
Message
Ok reading that leaves me with more questions then i started with but i havent changed anything and i guess that means it is just unexpected behavior so if anyone knows how i would narrow this problem down because im not getting anything in gdb please help!
[Go to top] top

Posted by Nick Gammon   Australia  (22,985 posts)  [Biography] bio   Forum Administrator
Date Reply #74 on Thu 01 Nov 2007 11:52 PM (UTC)

Amended on Thu 01 Nov 2007 11:53 PM (UTC) by Nick Gammon

Message
It goes a bit beyond the scope of what we can offer here, to tease out of you every last bit of information, to assist in such crashes.

Quote:

... i was in the academy trying to get the doll ...


What doll? I haven't played SWRIP myself, so I have no idea what this refers to.

Quote:

... i had a crash ...


What sort of crash? What was the error message?

Quote:

... im not getting anything in gdb ...


Not getting anything? Did you run it under gdb? Did you reproduce the crash? If so, did you see any useful error messages? When I ran under gdb I saw something along these lines:


$ gdb ../bin/swrip.exe

GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...

(gdb) run

Starting program: /home/Owner/swrip200_modified/bin/swrip.exe
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /usr/bin/cygz.dll
Fri Nov  2 10:42:42 2007 :: PID: 2576
Fri Nov  2 10:42:42 2007 :: Booting Database
... rest of booting messages ...


You really need to try to help yourself. A message like "I got a crash, please help" is so vague we can't actually help you at all.

I want to point out that these code bases are not professionally supported. The coders of them have tailored them to suit themselves, and they have very kindly made them publicly available. The general idea is that, if you want to run one yourself, you should have some basic programming and Unix knowledge. Otherwise you are going to get very frustrated.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


169,447 views.

This is page 5, subject is 6 pages long:  [Previous page]  1  2  3  4  5 6  [Next page]

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]