Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Yesterday, 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
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
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!, DotBot

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » AFKMud 2.03 and Ubuntu 8.04
Forum Rules | Mark all | Recent Posts

AFKMud 2.03 and Ubuntu 8.04
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 1, 2008, 11:28 am
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

I'm not sure if anyone has tried this yet, but it dies on overland.cpp, I think I have the right library installed for gd2

overland.cpp: In function ‘void do_setmark(char_data*, char*)’:
overland.cpp:1127: warning: deprecated conversion from string constant to ‘char*’
overland.cpp:1132: warning: deprecated conversion from string constant to ‘char*’
overland.cpp: In function ‘void do_setexit(char_data*, char*)’:
overland.cpp:1523: warning: deprecated conversion from string constant to ‘char*’
overland.cpp: At global scope:
overland.cpp:1549: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1549: error: expected primary-expression before ‘int’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: initializer expression list treated as compound expression
overland.cpp:1550: error: expected ‘,’ or ‘;’ before ‘{’ token
overland.cpp:1556: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1556: error: expected primary-expression before ‘int’
overland.cpp:1556: error: initializer expression list treated as compound expression
overland.cpp:1557: error: expected ‘,’ or ‘;’ before ‘{’ token
make[1]: *** [o/overland.o] Error 1
       
Post is unread #2 May 1, 2008, 1:45 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

For the gd part, did you install libgd-devel ? Without that it's not going to be able to find the needed headers.

The string constant stuff is more irritation from the whole mess we've been through once before because gcc decided to get more strict about const usage. It's what finally triggered me working on getting the AFKMud trunk code converted over to std::string pretty much everywhere so this sort of thing is no longer at issue.
       
Post is unread #3 May 1, 2008, 1:59 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Odd that it wouldn't report a missing header file, though. (Unless, of course, we're not seeing the full list of errors.)
       
Post is unread #4 May 1, 2008, 3:16 pm
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

Yeah, I was missing the dev package, its been too long since I've done this stuff :) Thanks
       
Post is unread #5 May 2, 2008, 8:45 pm
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

Hmmm
Okay - I got a similar error - also on 8.04
Building AFKMud....
make -s afkmud
  Compiling o/imc.o....
cc1plus: warnings being treated as errors
imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:92: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:97: warning: deprecated conversion from string constant to ‘char*’
imc.cpp: In function ‘void imclog(const char*, ...)’:
imc.cpp:132: warning: deprecated conversion from string constant to ‘char*’
imc.cpp: In function ‘std::string imc_act_string(std::string, char_data*, char_data*)’:
imc.cpp:6732: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6732: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6732: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6733: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6733: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6733: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6734: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6734: warning: deprecated conversion from string constant to ‘char*’
imc.cpp:6734: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2
andrew@speedy:~/afkmud/src$   

I do have the libgd devel packages installed - as far as I can see when I look in adept.

Puzzling
       
Post is unread #6 May 2, 2008, 8:48 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The const char* stuff has nothing to do with the gd libs. I guess I need to get off my but and get the trunk code done so people can test that at least. I've got a pretty massive commit waiting if I can ever get motivated to finish the alterations :/
       
Post is unread #7 May 4, 2008, 9:57 am
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

No problem, at least someone is still developing this stuff :) You can turn off the -Werror to compile in case you wanted to play with it.
       
Pages:<< prev 1 next >>