Login
User Name:

Password:



Register

Forgot your password?
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
SWRFUSS 1.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
Users Online
CommonCrawl, SemrushBot, AhrefsBot, Bing

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
486
3,758
19,452
571
Vladaar

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » 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 1:28 pm   
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 3:45 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,665
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 3: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 5: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 10: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 10:48 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,665
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 11: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 >>