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
➜ SmaugFuss 1.7 Lua
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Corey
(54 posts) Bio
|
Date
| Wed 05 Dec 2007 08:35 PM (UTC) |
Message
| ok, I am really batting 1000
I downloaded this and lua 5.1 and it won't compile under cygwin at all. gd.h missing or something.
maybe I should give up trying to be a mudder, cause getting one going sure is one hell of a mudder... | Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #1 on Wed 05 Dec 2007 09:35 PM (UTC) |
Message
| Can you post the actuall compile messages so we can see exactly whats going on, obviously your missing a header somewhere and need to install an extra package in cygwin.
Now dont give up too soon, when i first started i knew even less then you do, i still try to do things way over my head, but thats the fun of learning. |
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #2 on Thu 06 Dec 2007 12:05 AM (UTC) |
Message
| I didn't realize anything used gd... that's odd, since it's a drawing library, but, err, ok... yeah, do what Robert suggested and post the exact messages. In the meantime, you can try installing the "libgd" package and see if that helps.
And yeah, it definitely is a fairly difficult process... but the eventual rewards are worth it IMO. :) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Thu 06 Dec 2007 03:38 AM (UTC) Amended on Thu 06 Dec 2007 03:39 AM (UTC) by Nick Gammon
|
Message
|
Quote:
I downloaded this and lua 5.1 and it won't compile under cygwin at all. gd.h missing or something.
It helps to quote (ie. copy and paste) the actual error message. As far as I can see there is no reference to gd.h at all in Lua.
I just compiled it fine under Cygwin:
$ tar xzf lua-5.1.2.tar.gz
$ make ansi
cd src && make ansi
make[1]: Entering directory `/home/Owner/lua-5.1.2/src'
make all MYCFLAGS=-DLUA_ANSI
make[2]: Entering directory `/home/Owner/lua-5.1.2/src'
gcc -O2 -Wall -DLUA_ANSI -c -o lapi.o lapi.c
gcc -O2 -Wall -DLUA_ANSI -c -o lcode.o lcode.c
gcc -O2 -Wall -DLUA_ANSI -c -o ldebug.o ldebug.c
gcc -O2 -Wall -DLUA_ANSI -c -o ldo.o ldo.c
gcc -O2 -Wall -DLUA_ANSI -c -o ldump.o ldump.c
gcc -O2 -Wall -DLUA_ANSI -c -o lfunc.o lfunc.c
gcc -O2 -Wall -DLUA_ANSI -c -o lgc.o lgc.c
gcc -O2 -Wall -DLUA_ANSI -c -o llex.o llex.c
gcc -O2 -Wall -DLUA_ANSI -c -o lmem.o lmem.c
gcc -O2 -Wall -DLUA_ANSI -c -o lobject.o lobject.c
gcc -O2 -Wall -DLUA_ANSI -c -o lopcodes.o lopcodes.c
gcc -O2 -Wall -DLUA_ANSI -c -o lparser.o lparser.c
gcc -O2 -Wall -DLUA_ANSI -c -o lstate.o lstate.c
gcc -O2 -Wall -DLUA_ANSI -c -o lstring.o lstring.c
gcc -O2 -Wall -DLUA_ANSI -c -o ltable.o ltable.c
gcc -O2 -Wall -DLUA_ANSI -c -o ltm.o ltm.c
gcc -O2 -Wall -DLUA_ANSI -c -o lundump.o lundump.c
gcc -O2 -Wall -DLUA_ANSI -c -o lvm.o lvm.c
gcc -O2 -Wall -DLUA_ANSI -c -o lzio.o lzio.c
gcc -O2 -Wall -DLUA_ANSI -c -o lauxlib.o lauxlib.c
gcc -O2 -Wall -DLUA_ANSI -c -o lbaselib.o lbaselib.c
gcc -O2 -Wall -DLUA_ANSI -c -o ldblib.o ldblib.c
gcc -O2 -Wall -DLUA_ANSI -c -o liolib.o liolib.c
gcc -O2 -Wall -DLUA_ANSI -c -o lmathlib.o lmathlib.c
gcc -O2 -Wall -DLUA_ANSI -c -o loslib.o loslib.c
gcc -O2 -Wall -DLUA_ANSI -c -o ltablib.o ltablib.c
gcc -O2 -Wall -DLUA_ANSI -c -o lstrlib.o lstrlib.c
gcc -O2 -Wall -DLUA_ANSI -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_ANSI -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.
o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm
.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o l
strlib.o loadlib.o linit.o
ranlib liblua.a
gcc -O2 -Wall -DLUA_ANSI -c -o lua.o lua.c
gcc -o lua lua.o liblua.a -lm
gcc -O2 -Wall -DLUA_ANSI -c -o luac.o luac.c
gcc -O2 -Wall -DLUA_ANSI -c -o print.o print.c
gcc -o luac luac.o print.o liblua.a -lm
make[2]: Leaving directory `/home/Owner/lua-5.1.2/src'
make[1]: Leaving directory `/home/Owner/lua-5.1.2/src'
$ make install
cd src && mkdir -p /usr/local/bin /usr/local/include /usr/local/lib /usr/local/m
an/man1 /usr/local/share/lua/5.1 /usr/local/lib/lua/5.1
cd src && cp lua luac /usr/local/bin
cd src && cp lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp /usr/local/includ
e
cd src && cp liblua.a /usr/local/lib
cd doc && cp lua.1 luac.1 /usr/local/man/man1
$ lua
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
> print "hi world"
hi world
>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Corey
(54 posts) Bio
|
Date
| Reply #4 on Thu 06 Dec 2007 03:58 AM (UTC) |
Message
| no, the mud, not the lua.
| Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #5 on Thu 06 Dec 2007 04:08 AM (UTC) |
Message
| smaug does not use dg.h that im aware of. can you post the actual compile errors. |
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Corey
(54 posts) Bio
|
Date
| Reply #6 on Thu 06 Dec 2007 08:38 AM (UTC) |
Message
| ok, read all the docs on nick's site, got smaug fuss 1.7 lua to compile. in the docs it says compile lua make linux, but it needs make ansi. ok, now you want to hear something funny? SmaugFuss 1.7 Lua won't run fuss areas or smaug areas. I get this error in my logs, and the mud exits.
Thu Dec 6 01:25:05 2007 ::
Reading in area files...(help.are)
Thu Dec 6 01:25:05 2007 ::
[*****] FILE: limbo.are LINE: 1
Thu Dec 6 01:25:05 2007 ::
[*****] BUG: load_area_file: bad section name: FUSSAREA
ain't this fun? I tryed both fuss areas and smaug areas.
this could drive me to drink soon...
| Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #7 on Thu 06 Dec 2007 10:14 AM (UTC) |
Message
| Can you post the links to smaugfuss1.7 and lua package your using. The areas that come with the package always work. |
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Corey
(54 posts) Bio
|
Date
| Reply #8 on Thu 06 Dec 2007 02:09 PM (UTC) |
Message
| |
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #9 on Thu 06 Dec 2007 07:38 PM (UTC) Amended on Thu 06 Dec 2007 07:40 PM (UTC) by Nick Gammon
|
Message
| Well I can't reproduce that. Using a fairly fresh copy of a Cygwin install (which I did last week or so):
- I downloaded that exact file to make sure we are talking about the same thing.
- I untarred it:
$ tar xzf smaug17fuss_lua_v4.tgz
$ cd smaugfuss/src
- I edited the Makefile to uncomment the Cygwin line. That is, changed:
#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN
to:
#Uncomment to compile in Cygwin
CYGWIN = -DCYGWIN
- I then typed "make" and got this:
$ make
make -s smaug
Compiling o/imc.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
Compiling o/comments.o....
Compiling o/const.o....
Compiling o/db.o....
Compiling o/deity.o....
Compiling o/dns.o....
Compiling o/fight.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/hotboot.o....
Compiling o/imm_host.o....
Compiling o/interp.o....
Compiling o/magic.o....
Compiling o/makeobjs.o....
Compiling o/mapout.o....
Compiling o/mccp.o....
Compiling o/misc.o....
Compiling o/mpxset.o....
Compiling o/mud_comm.o....
Compiling o/mud_prog.o....
Compiling o/planes.o....
Compiling o/player.o....
Compiling o/polymorph.o....
Compiling o/reset.o....
Compiling o/save.o....
Compiling o/services.o....
Compiling o/sha256.o....
Compiling o/shops.o....
Compiling o/skills.o....
Compiling o/special.o....
Compiling o/tables.o....
Compiling o/track.o....
Compiling o/update.o....
Compiling o/lua_scripting.o....
Compiling o/lua_bits.o....
lua_bits.c: In function `bit_tonumber':
lua_bits.c:76: warning: integer constant is too large for "long" type
make[1]: *** [o/lua_bits.o] Error 1
make: *** [all] Error 2
- I think this error is mentioned somewhere else, anyway to fix it you remove the entire function bit_tonumber from lua_bits.c - there are problems under Cygwin and that function is not used anyway.
You also delete this line in that file:
{"tonumber", bit_tonumber}, // new by Nick
- Typing "make" again finishes the compile:
$ make
make -s smaug
Compiling o/lua_bits.o....
Compiling o/mt19937ar.o....
Compiling o/lua_tables.o....
Generating dependency file ...
Done compiling mud.
make -s dns
Done compiling DNS resolver.
- Time to try testing it:
$ cd ../area
$ ../src/smaug
Fri Dec 7 07:36:25 2007 :: Initializing Lua
Mud-wide Lua module started up.
Fri Dec 7 07:36:25 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
Fri Dec 7 07:36:25 2007 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Fri Dec 7 07:36:25 2007 :: Initializing libdl support...
Fri Dec 7 07:36:25 2007 :: Loading commands...
Fri Dec 7 07:36:25 2007 :: Loading spec_funs...
Fri Dec 7 07:36:25 2007 :: Loading sysdata configuration...
Fri Dec 7 07:36:25 2007 :: Loading socials
Fri Dec 7 07:36:25 2007 :: Loading skill table
Fri Dec 7 07:36:25 2007 :: Sorting skill table...
Fri Dec 7 07:36:25 2007 :: Remapping slots to sns
Fri Dec 7 07:36:25 2007 :: Loading classes
Fri Dec 7 07:36:25 2007 :: Loading races
Fri Dec 7 07:36:25 2007 :: Loading herb table
Fri Dec 7 07:36:25 2007 :: Loading tongues
Fri Dec 7 07:36:25 2007 :: Making wizlist
Fri Dec 7 07:36:25 2007 :: Initializing random number generator
Fri Dec 7 07:36:25 2007 :: Setting time and weather
Fri Dec 7 07:36:25 2007 :: Loading DNS cache...
Fri Dec 7 07:36:25 2007 :: Assigning gsn's
Fri Dec 7 07:36:25 2007 :: Reading in area files...
(help.are)
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
limbo.are : Rooms: 2 - 99 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
haon.are : Rooms: 6000 - 6156 Objs: 6000 - 6155 Mobs: 6000 - 6117
midennir.are : Rooms: 3500 - 3590 Objs: 3500 - 3550 Mobs: 3500 - 3550
sewer.are : Rooms: 7001 - 7445 Objs: 7190 - 7310 Mobs: 7000 - 7206
redferne.are : Rooms: 7900 - 7918 Objs: 7909 - 7911 Mobs: 7900 - 7900
grove.are : Rooms: 8901 - 8999 Objs: 8900 - 8919 Mobs: 8900 - 8911
dwarven.are : Rooms: 6500 - 6554 Objs: 6502 - 6519 Mobs: 6500 - 6517
daycare.are : Rooms: 6601 - 6651 Objs: 6600 - 6647 Mobs: 6600 - 6610
grave.are : Rooms: 3600 - 3651 Objs: 3600 - 3613 Mobs: 3600 - 3605
chapel.are : Rooms: 3405 - 3475 Objs: 3400 - 3430 Mobs: 3400 - 3416
astral.are : Rooms: 800 - 899 Objs: 800 - 899 Mobs: 800 - 899
Build.are : Rooms: 9500 - 9589 Objs: 0 - 0 Mobs: 0 - 0
pixie.are : Rooms: 2070 - 2099 Objs: 2070 - 2077 Mobs: 2070 - 2073
export.are : Rooms: 9810 - 9899 Objs: 9810 - 9899 Mobs: 9800 - 9899
srefuge.are : Rooms: 1500 - 1599 Objs: 1500 - 1599 Mobs: 1500 - 1599
manor.are : Rooms: 2400 - 2499 Objs: 2400 - 2499 Mobs: 2405 - 2484
unholy.are : Rooms: 2101 - 2172 Objs: 2101 - 2150 Mobs: 2101 - 2120
gallery.are : Rooms: 24800 - 24899 Objs: 24800 - 24899 Mobs: 24800 - 24899
Fri Dec 7 07:36:26 2007 :: Fixing exits
Fri Dec 7 07:36:26 2007 :: Initializing economy
Fri Dec 7 07:36:26 2007 :: Resetting areas
Fri Dec 7 07:36:26 2007 :: Loading buildlist
Fri Dec 7 07:36:26 2007 :: ../gods/Admin
Fri Dec 7 07:36:26 2007 :: ../gods/Nick
Fri Dec 7 07:36:26 2007 :: Loading boards
Fri Dec 7 07:36:26 2007 :: ../boards/immortal.brd
Fri Dec 7 07:36:26 2007 :: ../boards/highgod.brd
Fri Dec 7 07:36:26 2007 :: Loading clans
Fri Dec 7 07:36:26 2007 :: Loading clans...
Fri Dec 7 07:36:26 2007 :: vampire.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: druid.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: warrior.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: augurer.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: thief.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: cleric.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: mage.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: ranger.gui
Fri Dec 7 07:36:26 2007 :: Cannot open clan vault
Fri Dec 7 07:36:26 2007 :: $
Fri Dec 7 07:36:26 2007 :: Done clans
Fri Dec 7 07:36:26 2007 :: Loading councils
Fri Dec 7 07:36:26 2007 :: Loading councils...
Fri Dec 7 07:36:26 2007 :: $
Fri Dec 7 07:36:26 2007 :: Done councils
Fri Dec 7 07:36:26 2007 :: Loading deities
Fri Dec 7 07:36:26 2007 :: Loading deities...
Fri Dec 7 07:36:26 2007 :: $
Fri Dec 7 07:36:26 2007 :: Done deities
Fri Dec 7 07:36:26 2007 :: Loading watches
Fri Dec 7 07:36:26 2007 :: Loading bans
Fri Dec 7 07:36:26 2007 :: Done.
Fri Dec 7 07:36:26 2007 :: Loading reserved names
Fri Dec 7 07:36:26 2007 :: Loading corpses
Fri Dec 7 07:36:26 2007 :: Loading Immortal Hosts
Fri Dec 7 07:36:26 2007 :: Done.
Fri Dec 7 07:36:26 2007 :: Loading Projects
Fri Dec 7 07:36:26 2007 :: Loading Morphs
Fri Dec 7 07:36:26 2007 :: Done.
Fri Dec 7 07:36:26 2007 :: Initializing socket
Fri Dec 7 07:36:26 2007 :: IMC: Loading IMC2 command table...
Fri Dec 7 07:36:26 2007 :: IMC: Loading IMC2 network data...
Fri Dec 7 07:36:26 2007 :: IMC: Loading IMC2 help file...
Fri Dec 7 07:36:26 2007 :: IMC: Loading IMC2 color table...
Fri Dec 7 07:36:26 2007 :: IMC: Loading IMC2 who template...
Fri Dec 7 07:36:26 2007 :: IMC: imcfread_word: EOF encountered on read.
Fri Dec 7 07:36:26 2007 :: IMC: IMC2 network data loaded. Autoconnect not set.
IMC2 will need to be connected manually.
Fri Dec 7 07:36:26 2007 :: (Name Not Set) ready on port 4000.
MUD startup - Lua extension called
- I then logged in as admin (password admin) OK.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #10 on Thu 06 Dec 2007 09:58 PM (UTC) Amended on Thu 06 Dec 2007 10:05 PM (UTC) by Robert Powell
|
Message
| I too had the exact same experience, it all seems to be working except for the lua compile issue.
ok, read all the docs on nick's site, got smaug fuss 1.7 lua to compile. in the docs it says compile lua make linux, but it needs make ansi. ok, now you want to hear something funny? SmaugFuss 1.7 Lua won't run fuss areas or smaug areas. I get this error in my logs, and the mud exits.
Thu Dec 6 01:25:05 2007 ::
Reading in area files...(help.are)
Thu Dec 6 01:25:05 2007 ::
[*****] FILE: limbo.are LINE: 1
Thu Dec 6 01:25:05 2007 ::
[*****] BUG: load_area_file: bad section name: FUSSAREA
ain't this fun? I tryed both fuss areas and smaug areas.
this could drive me to drink soon...
The area problem is really easy to fix, pull out the areas from the origional package you downloaded and load up with those.
Nicks smaug lua code is an earlier version of FUSS and does not use the FUSSAREA section name convention of the newer versions of fuss.
Areas while you may think are totally portable between versions of smaug are sometimes not. The newest versions of FUSS have some fixes to the area file format that make nested containers work correctly.
So untar all the files again out of the package you linked above, re-compile, fix the error in code and it should just start up for you. |
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | 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.
32,822 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top