Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
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
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing, Majestic-12

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » 1.60a compile time failure
Forum Rules | Mark all | Recent Posts

1.60a compile time failure
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Nov 14, 2003, 10:26 am   Last edited Nov 24, 2007, 12:23 am by Samson
Go to the top of the page
Go to the bottom of the page

Moonwolf

GroupMembers
Posts43
JoinedAug 25, 2005

Trying to compile the 1.60a version from scratch, I get this:

  Compiling o/db.o....
db.c:33: execinfo.h: No such file or directory
db.c: In function `void bug(const char *, ...)':
db.c:6018: implicit declaration of function `int backtrace(...)'
db.c:6019: implicit declaration of function `int backtrace_symbols(...)'
db.c:6019: assignment to `char **' from `int' lacks a cast
cc1plus: warnings being treated as errors
db.c:6021: warning: unknown conversion type character `z' in format
db.c:6021: warning: too many arguments for format
gmake[2]: *** [o/db.o] Error 1


System is FreeBSD, what else does anyone need to figure this out?

Kathi
       
Post is unread #2 Nov 14, 2003, 12:27 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Would also be nice to know if that needs to be done in OpenBSD as well.
       
Post is unread #3 Nov 17, 2003, 6:04 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Moonwolf, apologies for once again disturbing your thread. If you could repost the current problem you're having with it we can take a look. I know we left off with the 0.f thing and that will be corrected since it appears as though BSD doesn't like the damn things
       
Post is unread #4 Nov 17, 2003, 6:16 pm   Last edited Nov 24, 2007, 12:23 am by Samson
Go to the top of the page
Go to the bottom of the page

Moonwolf

GroupMembers
Posts43
JoinedAug 25, 2005

I see you found the mass import function

OK, the problem with db.c was fixed.

The problem with environment.c was fixed.

Now I get this:

  Compiling o/event.o....
cc1plus: warnings being treated as errors
event.c: In function `void add_event(EVENT *, int)':
event.c:146: warning: declaration of `event' shadows global declaration
event.c: In function `void remove_event(EVENT *)':
event.c:199: warning: declaration of `event' shadows global declaration
event.c: In function `void remove_event_local(EVENT **, EVENT *)':
event.c:235: warning: declaration of `event' shadows global declaration
event.c: In function `void add_simple_ev(CHAR_DATA *, int, int, int, bool)':
event.c:262: warning: declaration of `event' shadows global declaration
event.c: In function `void event_update()':
event.c:310: warning: declaration of `event' shadows global declaration
event.c: In function `void add_mprog_ev(int, void *, int, CHAR_DATA *, void *, void *, char *)':
event.c:450: warning: declaration of `event' shadows global declaration
event.c: In function `void run_mprog_ev_now(int, void *, int, CHAR_DATA *, void *, void *, char *)':
event.c:506: warning: declaration of `event' shadows global declaration
event.c: In function `void add_simple_room_ev(ROOM_INDEX_DATA *, int, int, int)':
event.c:595: warning: declaration of `event' shadows global declaration
event.c: In function `void add_simple_obj_ev(OBJ_DATA *, int, int, int)':
event.c:621: warning: declaration of `event' shadows global declaration
event.c: In function `void inject_obj_ev(OBJ_DATA *)':
event.c:652: warning: declaration of `event' shadows global declaration
event.c: In function `void inject_char_ev(CHAR_DATA *)':
event.c:671: warning: declaration of `event' shadows global declaration
event.c: In function `void fwrite_event(EVENT *, FILE *)':
event.c:689: warning: declaration of `event' shadows global declaration
event.c: In function `void fread_event(FILE *, EVENT *)':
event.c:708: warning: declaration of `event' shadows global declaration
event.c: In function `void do_eventinfo(CHAR_DATA *, char *)':
event.c:734: warning: declaration of `event' shadows global declaration
gmake[2]: *** [o/event.o] Error 1
gmake[2]: Leaving directory `/usr/home/moonwolf/temp/afkmud/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/home/moonwolf/temp/afkmud/src'
gmake: *** [clean] Error 2


*whimper*

Kathi
       
Post is unread #5 Nov 17, 2003, 6:47 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Heh. Mass import indeed. Too bad it seems to have done such a hatchet job, but hey. It beats not having the posts in an active forum at all.

As for your problem, this is getting way beyond silly. It looks like your compiler is now complaining about "event" being a reserved keyword. I think perhaps you have an offbeat version of FreeBSD with an even more offbeat compiler.

Possible solution: Edit the Makefile and change g++ to gcc and then recompile and see where you get. The code should still compile cleanly as straight C.
       
Post is unread #6 Nov 17, 2003, 8:00 pm
Go to the top of the page
Go to the bottom of the page

Moonwolf

GroupMembers
Posts43
JoinedAug 25, 2005

Well, other than that 0.f issue which I had to fix in a few more files, it now lookg like it works.

I'll try a fresh copy of the arhive and try juct changing c++ to gcc in the Magefile to see how that compiles out.

Kathi
       
Pages:<< prev 1 next >>