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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Compiles fine, but commands won't work when I start it

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Compiles fine, but commands won't work when I start it
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Grif   (19 posts)  [Biography] bio
Date Sun 15 Mar 2009 04:09 PM (UTC)  quote  ]
Message
Ok i started out downloading the two files from here, the executable and the 1.9tgz. Thats wat im working with, and wat isnt working. I also downloaded the smaug17fuss file and that gives me the same errors as the other one. Not sure what Im doing wrong here, or if Im doing anything wrong...
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 11 Mar 2009 02:47 PM (UTC)  quote  ]
Message
Well adding to the Makefile isn't going to instantly fix the problem. You would need to make. Which means not using a downloaded exec.

Or do you mean you're using your compiled version now?

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

Posted by Grif   (19 posts)  [Biography] bio
Date Wed 11 Mar 2009 02:31 PM (UTC)  quote  ]
Message
Uhh... because at the time I didnt really know what I was doing in terms of getting 'make' to work but after figuring out where to get and, Ive gotten over the precompiled need.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 11 Mar 2009 02:16 PM (UTC)  quote  ]
Message
Why did you download the executable?

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

Posted by Grif   (19 posts)  [Biography] bio
Date Wed 11 Mar 2009 12:03 PM (UTC)  quote  ]
Message
From what I can tell from what I can download, yea I have it. I also downloaded the smaugfuss executable and that comes with 2 cygwin parts, but Im not sure if i need to move those or what.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Tue 10 Mar 2009 01:21 AM (UTC)  quote  ]
Message
What about the Cygwin packages?

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

Posted by Grif   (19 posts)  [Biography] bio
Date Tue 10 Mar 2009 12:15 AM (UTC)  quote  ]
Message
Im not sure exactly where to put the -ldl so heres where i put it...
L_FLAGS = $(PROF) $(SOLARIS_LINK) -lz $(NEED_DL) -ldl

If thats wrong let me know...but yea i put that in, did make and started it up. Still no luck.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Mon 09 Mar 2009 11:57 PM (UTC)  quote  ]
Message
Did you try what was suggested?

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

Posted by Grif   (19 posts)  [Biography] bio
Date Mon 09 Mar 2009 07:57 PM (UTC)  quote  ]
Message
Ok i lied i didnt notice it was going to a log somewhere. Yea Im getting the fread errors too...
[Go to top] top

Posted by Grif   (19 posts)  [Biography] bio
Date Sun 08 Mar 2009 07:48 PM (UTC)  quote  ]
Message
Im having the same issue, but when i make and start, nothing shows up at all...
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Tue 05 Aug 2008 12:36 AM (UTC)  quote  ]
Message
Okay, finally got it to work somehow. I redownloaded the entire package and started from square one. It still wasn't linking properly, but putting the -ldl in L_FLAGS of the new Makefile seems to have fixed the problem. I'm still getting fread errors on mpechozone, mez, and style and a few other commands. Other than that, things seem to be okay.

Thanks for the update, I'll post if anything else goes wonky.

I can haz Smaug?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 04 Aug 2008 11:02 PM (UTC)  quote  ]
Message
This is supposed to be working out of the box; even if other solutions exist it's a little disconcerting that basic commands aren't working. I don't have access to Cygwin otherwise I'd take a look myself. Maybe somebody else has an idea?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Robert Powell   Australia  (349 posts)  [Biography] bio
Date Mon 04 Aug 2008 10:31 PM (UTC)  quote  ]
Message
Cygwin and dynamic linking can be rather hit and miss, I would suggest not using cygwin at all and installing andlinux.

Unlike cygwin which emulates linux, Andlinux is a port of the linux kernal to the windows environment, which means it is native linux and you do not have any of the troubles that arise with emulation.

Andlinux installs just like an application in any 32 bit windows environment and can run any linux application using windows as the desktop.

Check it out, it will make your life a whole lot easier, real linux without the dual boot hassles.

EldhaMUD Game Developments
The_Fury: Lead Developer, Head Coder
http://fury.eldhamud2.org
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Mon 04 Aug 2008 09:58 PM (UTC)  quote  ]
Message
I just realized something weird was happening when I compiled:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../1686-pc-cygwin/bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant datat structures referencing symbols from auto-imported DLLs.Info: resolving __timezone by linking to __imp__timezone (auto-import)

I can haz Smaug?
[Go to top] top

Posted by Dbaker84   (26 posts)  [Biography] bio
Date Mon 04 Aug 2008 09:52 PM (UTC)  quote  ]
Message
Looks like libdl is there, and I added -ldl to my L_FLAGS line; it's still doing the exact same things.

Here's the makefile, just in case I've screwed something up

CC = g++
#PROF = -p

#Uncomment to compile in Cygwin
CYGWIN = -DCYGWIN

#Uncomment the line below if you are getting undefined references to dlsym, dlopen, and dlclose.
#Comment it out if you get errors about ldl not being found.
NEED_DL = -ldl

#Some systems need this for dynamic linking to work.
EXPORT_SYMBOLS = -export-dynamic

# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket

#IMC2 - Comment out to disable IMC2 support
IMC = 1

W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls -Wconversion -Wwrite-strings

C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF) $(EXPORT_SYMBOLS)
L_FLAGS = $(PROF) $(SOLARIS_LINK) -lz $(NEED_DL) -ldl
#D_FLAGS : For the DNS Slave process. No need in linking all the extra libs for this.
D_FLAGS = -g2 -O $(PROF) $(SOLARIS_LINK)

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c calendar.c chess.c clans.c color.c comm.c comments.c const.c db.c deity.c \
dns.c fight.c handler.c hashstr.c hint.c hotboot.c imm_host.c interp.c \
liquids.c magic.c makeobjs.c mapout.c mapper.c mccp.c \
misc.c mpxset.c mud_comm.c mud_prog.c news.c planes.c player.c polymorph.c \
renumber.c reset.c save.c services.c sha256.c shops.c skills.c special.c tables.c \
track.c update.c variables.c weather.c

ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif

O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))

H_FILES = $(wildcard *.h)

all:
$(MAKE) -s smaug
$(MAKE) -s dns

# pull in dependency info for *existing* .o files
-include dependencies.d

ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
dlltool --export-all --output-def smaug.def $(O_FILES)
dlltool --dllname smaug.exe --output-exp smaug.exp --def smaug.def
$(CC) -o smaug.exe $(O_FILES) smaug.exp $(L_FLAGS)
@echo "Generating dependency file ...";
@$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
@perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
@echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)

clean:
@rm -f o/*.o smaug.exe dependencies.d resolver.exe resolver.o *~

else
smaug: $(O_FILES)
rm -f smaug
$(CC) -export-dynamic -o smaug $(O_FILES) $(L_FLAGS)
@echo "Generating dependency file ...";
@$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
@perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
@echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)

clean:
@rm -f o/*.o smaug dependencies.d resolver resolver.o *~
endif

dns: resolver.o
rm -f resolver
$(CC) $(D_FLAGS) -o resolver resolver.o
@echo "Done compiling DNS resolver.";
chmod g+w resolver
chmod a+x resolver
chmod g+w resolver.o

indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)

indentclean:
rm *.c~ *.h~

o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@

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

I can haz Smaug?
[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.


6,943 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]