Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, DotBot

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
621
KellieBusb
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » hotboot compiling error
Forum Rules | Mark all | Recent Posts

hotboot compiling error
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 15, 2006, 9:49 pm
Go to the top of the page
Go to the bottom of the page

jparkin

GroupMembers
Posts33
JoinedAug 11, 2006

hey everyone. so i just finished up installing the hotboot snippet. everything compiled just fine until' the very end when i received a few undefind reference errors. here is my log:

comm.o: In function `main':
/home/bleh/smaug/dist/src/comm.c:324: undefined reference to `_hotb
oot_recover'
db.o: In function `boot_db':
/home/bleh/smaug/dist/src/db.c:704: undefined reference to `_load_w
orld'
tables.o: In function `skill_function':
/home/bleh/smaug/dist/src/tables.c:325: undefined reference to `_do
_hotboot'
tables.o: In function `skill_name':
/home/bleh/smaug/dist/src/tables.c:989: undefined reference to `_do
_hotboot'
collect2: ld returned 1 exit status
make: *** [smaug] Error 1

i already added in the correct entries in mud.h and tables.c.

anyone have any ideas as to what might be wrong?

thanks!
-j
       
Post is unread #2 Aug 16, 2006, 1:13 am
Go to the top of the page
Go to the bottom of the page

NuclearDog

GroupMembers
Posts5
JoinedAug 6, 2006

Did you `make clean` first?
       
Post is unread #3 Aug 16, 2006, 1:50 am
Go to the top of the page
Go to the bottom of the page

kiasyn
Magician
GroupMembers
Posts121
JoinedJun 30, 2006

also, did you remember to add hotboot.c to your makefile
       
Post is unread #4 Aug 16, 2006, 1:57 am
Go to the top of the page
Go to the bottom of the page

jparkin

GroupMembers
Posts33
JoinedAug 11, 2006

sure did. both of them :)
       
Post is unread #5 Aug 16, 2006, 3:17 am   Last edited Nov 25, 2007, 6:36 pm by Samson
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

comm.o: In function `main':
/home/bleh/smaug/dist/src/comm.c:324: undefined reference to `_hotb
oot_recover'
db.o: In function `boot_db':
/home/bleh/smaug/dist/src/db.c:704: undefined reference to `_load_w
orld'
tables.o: In function `skill_function':
/home/bleh/smaug/dist/src/tables.c:325: undefined reference to `_do
_hotboot'
tables.o: In function `skill_name':
/home/bleh/smaug/dist/src/tables.c:989: undefined reference to `_do
_hotboot' 

Looks like linking errors due to haveing it not setup right.
While I don't have the code i would suggest makeing sure the lines its complaining about match what you have in hotboot.c as well as the defines for them match.
they should be
hotboot_recover
load_world
do_hotboot

If you wish to keep useing an older Smaug instead of SmaugFUSS do yourself a favor and go ahead and check out the fixes at http://www.smaugmuds.org/index.php?a=forum&f=26 It's alot to do so have fun.
       
Post is unread #6 Aug 16, 2006, 6:51 pm   Last edited Aug 16, 2006, 6:52 pm by Conner
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

The easy solution to most of these issues you're having, Nos, is to download SmaugFUSS and move your new areas (your new pk academy for example) to the new areas folder and then look to see what changes you actually still need, there will be a whole lot less of them. (You don't want to move your *.c or *.h files to the new src folder because they're what's been fixed up in SmaugFUSS to begin with so why would you want to set up FUSS and then corrupt it by throwing it back to the old smaug 1.4a src files?)
       
Post is unread #7 Aug 20, 2006, 5:22 am
Go to the top of the page
Go to the bottom of the page

jparkin

GroupMembers
Posts33
JoinedAug 11, 2006

ahh.. so i started from scratch and re-did the entire snippet.

still getting the exact same compiling errors.

i'm not entirely sure on what you meant when you said:

"While I don't have the code i would suggest makeing sure the lines its complaining about match what you have in hotboot.c as well as the defines for them match."

both this:

void hotboot_recover( void )

and this:

void load_world( CHAR_DATA * ch )

are in hotboot.c - this is the entire file for hotboot.h:

#ifndef CH
#define CH(d) ((d)->original ? (d)->original : (d)->character)
#endif

#define HOTBOOT_FILE SYSTEM_DIR "copyover.dat" /* for hotboots */
#define EXE_FILE "../src/smaug"
#define HOTBOOT_DIR "../hotboot/" /* For storing objects across hotboots */
#define MOB_FILE "mobs.dat" /* For storing mobs across hotboots */

/* warmboot code */
void hotboot_recover( void );
void load_world( CHAR_DATA * ch );
DECLARE_DO_FUN( do_hotboot ); /* Hotboot command - Samson 3-31-01 */

notice how both void hotboot_recover and void load_world are in hotboot.h? is that anything i need to change?

here is what i have in my comm.c and db.c files for both the hotboot_recover and load_world:

COMM.C:

if( fCopyOver )
{
log_string( "Initiating hotboot recovery." );
hotboot_recover();
}

DB.C:

if( fCopyOver )
{
log_string( "Loading world state..." );
load_world( supermob );
}

i have been racking my brain trying to figure out this problem but am having no luck :(

any ideas?

thanks a bunch!
-josh

       
Pages:<< prev 1 next >>