User Name:


Forgot your password?
Vote for Us!
AFKMud 2.2.2
Mar 3, 2019 5:35 pm
By Samson
Nov 28, 2018 12:10 pm
By Keirath
First Immortal
Oct 12, 2018 2:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018 7:31 pm
By joeyfogas
question on overland code
May 31, 2018 12:03 pm
By joeyfogas
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
AFKMud 2.2.2
Author: AFKMud Team
Submitted by: Samson
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Sogou, Bing

Members: 0
Guests: 5
Newest Member
Today's Birthdays
tphegley (37)
Related Links
» SmaugMuds » General » Smaug Snippets » Dns_slave
Forum Rules | Mark all | Recent Posts

< Newer Topic :: Older Topic > Slight problem with the smaug dns s

Pages:<< prev 1 next >>
Post is unread #1 Feb 17, 2003 4:33 am   Last edited Nov 25, 2007 9:25 pm by Samson
Go to the top of the page
Go to the bottom of the page

JoinedOct 10, 2006

Hey, just wanted ya to know I downloaded and installed the Dns slave code from smaugmuds.org and was just wondering if there is a reason for another definition of the main() function in resolver.c? In SMAUG 1.4a there's already a main() function in comm.c and I just wanted to know if there is a way to either A: rename the resolver.c main() function without causing problems, since it won't compile if two functions have the same name, or B: modify the main() function in comm.c to include the code in resolver.c instead, again without causing problems . I did try renaming the one in resolver.c to dns_main but the compiler has a problem with making the dns program with that function in resolver.c renamed:

/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'

I'm on a hosted server so I don't have any access to the libs that I'm aware of. Any help on this would be greatly appriciated.
I'm running Red Hat Linux release 6.2 (Zoot)
Kernel 2.2.14-5.0 on an i686 if that's any help
Post is unread #2 Feb 17, 2003 7:32 pm
Go to the top of the page
Go to the bottom of the page

Black Hand
JoinedJan 1, 2002

You need to take a closer read on those directions. The DNS resolver is not meant to be compiled as a part of the mud - it's an independent program and therefore NEEDS to have a main() of its own. It's designed to operate as a forked process which is only called by the mud when needed.

BTW - I just started a new job this last week and if I don't respond it's likely because I just don't have time on the days I work to actually do so. Long days combined with long commutes tend to result in short leisure time :P
Pages:<< prev 1 next >>