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 ➜ SMAUG ➜ Compiling the server ➜ compiling Problem

compiling Problem

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


Pages: 1 2  

Posted by Straud   (62 posts)  Bio
Date Wed 18 Jul 2001 07:45 PM (UTC)
Message
okay I have tried and tried to compile the server (smaug 1.4a) so I can use IMC but keep getting these errors I'm using cygwin



33 c:/smaug/source/webserver.c
sys\socket.h: No such file or directory
35 c:/smaug/source/webserver.c
sys\un.h: No such file or directory
25 c:/smaug/source/act_info.c
c:\smaug\source\mud.h:28: undefined or invalid # directive
29 mud.h
undefined or invalid # directive
2841 mud.h
field `total_time' has incomplete type
2842 mud.h
field `min_time' has incomplete type
2843 mud.h
field `max_time' has incomplete type
5392 mud.h
parse error before `HANDLE'
5396 mud.h
parse error before `}'
5399 mud.h
parse error before `*'
5400 mud.h
parse error before `*'
5401 mud.h
parse error before `*'
5416 mud.h
parse error before `/'
2047 c:/smaug/source/act_info.c
`NULL_FILE' undeclared (first use in this function)
2047 c:/smaug/source/act_info.c
(Each undeclared identifier is reported only once
2047 c:/smaug/source/act_info.c
for each function it appears in.)
25 c:/smaug/source/act_move.c
c:\smaug\source\mud.h:28: undefined or invalid # directive
29 mud.h
undefined or invalid # directive
2841 mud.h
field `total_time' has incomplete type
2842 mud.h
field `min_time' has incomplete type
2843 mud.h
field `max_time' has incomplete type
5392 mud.h
parse error before `HANDLE'
5392 mud.h
parse error before `HANDLE'
5399 mud.h
parse error before `*'
5400 mud.h
parse error before `*'
5401 mud.h
parse error before `*'
5416 mud.h
parse error before `/'
22 c:/smaug/source/act_obj.c
c:\smaug\source\mud.h:28: undefined or invalid # directive
29 mud.h
undefined or invalid # directive
2841 mud.h
field `total_time' has incomplete type
2842 mud.h
field `min_time' has incomplete type
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 19 Jul 2001 01:26 AM (UTC)
Message
You have done something strange here. I got the IMC stuff to compile by editing Makefile and modifying the lines it mentions:


#Uncomment the next three comments below if you want to use IMC
USE_IMC    = -DUSE_IMC

IMC_OFILES = imc.o imc-mail.o imc-interp.o imc-util.o imc-config.o \
        imc-events.o imc-version.o imc-mercbase.o ice.o icec.o icec-mercbase.o

IMC_CFILES = imc.c imc-mail.c imc-interp.c imc-util.c imc-config.c \
        imc-events.c imc-version.c imc-mercbase.c ice.c icec.c icec-mercbase.c



I actually had to remove 5 comments (it was 3 sets of lines).

I also had to add "-DSMAUG14" to C_FLAGS to remove one compile error I got...



C_FLAGS = $(OPT_FLAG) -O -g3 -Wall -Wuninitialized $(PROF) $(NOCRYPT) $(DBUGFLG)
 -DSMAUG $(SOLARIS_FLAG) $(TIME) $(REG) -DSMAUG14

- Nick Gammon

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

Posted by Straud   (62 posts)  Bio
Date Reply #2 on Fri 20 Jul 2001 09:33 AM (UTC)

Amended on Fri 20 Jul 2001 09:24 PM (UTC) by Straud

Message
okay I got it to compile but now when i run the server I get this message after it says making wizlist


0 [main] smaug 616753 open_stackdumpfile: Dumping stack trace to SMAUG.EXE .stackdump
segmentation fault (core dumped)
Top

Posted by Straud   (62 posts)  Bio
Date Reply #3 on Fri 20 Jul 2001 08:04 PM (UTC)
Message
okay also whenever I compile right at the end when it makes the executable it says this

chmod g+w smaug
chmod: changing permissions of 'smuag': No such file or directory
make[1]:*** [smaug] Error 1
make[1]: Leaving directory '/usr/smaug2/smaug/src'
make[all]: Error 2

Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #4 on Sat 21 Jul 2001 01:38 AM (UTC)
Message
Hmm - I did not have a problem running that version. This is what I saw ...


Sat Jul 21 11:33:56 2001 :: Loading races
Sat Jul 21 11:33:56 2001 :: Loading herb table
Sat Jul 21 11:33:56 2001 :: Loading tongues
Sat Jul 21 11:33:56 2001 :: Making wizlist
Sat Jul 21 11:33:56 2001 :: Initializing request pipe
Sat Jul 21 11:33:56 2001 :: Initializing random number generator
Sat Jul 21 11:33:56 2001 :: Setting time and weather
Sat Jul 21 11:33:56 2001 :: Assigning gsn's
Sat Jul 21 11:33:56 2001 :: Reading in area files...
(help.are)
(imc-help.are)
(ice-help.are)
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
limbo.are : Rooms: 1 - 43 Objs: 2 - 99 Mobs: 1 - 99
newacad.are : Rooms: 10300 - 10499 Objs: 10300 - 10499 Mobs: 10300 - 10499
newgate.are : Rooms: 100 - 199 Objs: 100 - 199 Mobs: 100 - 199
newdark.are : Rooms: 21000 - 21499 Objs: 21000 - 21435 Mobs: 21000 - 21499

[snip]

Sat Jul 21 11:33:56 2001 :: Loading Colors
Sat Jul 21 11:33:56 2001 :: Initializing socket
Sat Jul 21 11:33:56 2001 :: imc: imc2-1.03g hub initializing
Sat Jul 21 11:33:56 2001 :: imc: Logging On
Sat Jul 21 11:33:56 2001 :: imc: hubswitch yes|no
Sat Jul 21 11:33:56 2001 :: imc: imc_readignores: couldn't open imc/rignores
Sat Jul 21 11:33:56 2001 :: imc: network initializing
Sat Jul 21 11:33:56 2001 :: imc: binding port 4005 for incoming connections
Sat Jul 21 11:33:56 2001 :: imc: Setting auto-optimize to run in 6 minutes.
Sat Jul 21 11:33:56 2001 :: imc: ICE client starting.
Sat Jul 21 11:33:56 2001 :: imc: Can't open imc/icec


If you are using the same source as me I'm not sure what the problem is. You could make sure you have the latest Cygwin.

You could try running under gdb to see what the problem is, eg.


gdb ../src/smaug.exe


As for the error during the make, that is a minor problem with the makefile, that doesn't seem to matter. It should read:


chmod g+w smaug.exe


You can change the makefile to make that message go away.




- Nick Gammon

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

Posted by Straud   (62 posts)  Bio
Date Reply #5 on Sat 21 Jul 2001 02:38 AM (UTC)
Message
okay I tried it using gdb and got this


unable to read instructions at 0x61004ee7


before I got that a window popped up saying

program received signal sigsegv segmentation fault
Top

Posted by Straud   (62 posts)  Bio
Date Reply #6 on Sat 21 Jul 2001 03:06 AM (UTC)
Message
okay I ditched what i had and downlaoded the code from your site and got the same thing
Top

Posted by Straud   (62 posts)  Bio
Date Reply #7 on Sat 21 Jul 2001 04:48 AM (UTC)
Message
okay using gbd and using the next button I can get down to line 281 boot_db() but when I try to go to the next line 282 is when I get the error above line 282 is as follows
log_string("Initializing Socket")
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #8 on Sat 21 Jul 2001 08:30 AM (UTC)
Message
Something must have gone wrong inside boot_db - I suggest you use "step" which will step into the function, instead of "next".

- Nick Gammon

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

Posted by Straud   (62 posts)  Bio
Date Reply #9 on Sat 21 Jul 2001 07:39 PM (UTC)
Message
okay nick i got this from an E-mail from nivek and it worked i didn't even think of looking here for the problem
turns out I didn't have the gods directory and I had to take test deity out of the deity list file
Top

Posted by Straud   (62 posts)  Bio
Date Reply #10 on Sat 21 Jul 2001 07:54 PM (UTC)
Message
okay now that it's running I checked to see if IMC works and it doesn't i uncommented the lines you said before I compiled and it didn't work
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #11 on Sat 21 Jul 2001 10:52 PM (UTC)
Message
I've never used IMC so I don't know how to get it to work. Maybe someone else does. :)

- Nick Gammon

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

Posted by Heiko   Australia  (3 posts)  Bio
Date Reply #12 on Wed 25 Jul 2001 09:09 AM (UTC)
Message
gah i now this probaly sounds stupid but i go to compile the smaug code and then i go to run it and this is what i get

0 [main] smaug 616753 open_stackdumpfile: Dumping stack trace to SMAUG.EXE .stackdump
segmentation fault (core dumped)

Heiko
--Death is not an end--
(just an annoyance)
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #13 on Wed 25 Jul 2001 10:07 PM (UTC)
Message
Are you using the stock SMAUG or the one with MXP added?

Have you changed the Makefile to add IMC?

Are you compiling/running on Cygwin (Windows) or Linux?

Do you get any messages before the crash (eg. loading areas)?

Try running with gdb, eg.

cd area
gdb ../src/smaug.exe
run


- Nick Gammon

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

Posted by Heiko   Australia  (3 posts)  Bio
Date Reply #14 on Thu 26 Jul 2001 11:24 AM (UTC)
Message
hrmmm i had to go over this one i got the MXP version
and im using cygwin i tryed using gdb but i got so lost so quick it wasnt funny .

Heiko
--Death is not an end--
(just an annoyance)
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.


47,113 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

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.