User Name:


Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Google, Yahoo!

Members: 0
Guests: 9
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » 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, 2:33 am   Last edited Nov 25, 2007, 7:25 pm by Samson
Go to the top of the page
Go to the bottom of the page

JoinedOct 9, 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, 5: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 >>