TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Compile error in chat.c on solaris

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
reality3k



Joined: 11 Feb 2009
Posts: 48

PostPosted: Sun Jul 01, 2012 5:35 pm    Post subject: Compile error in chat.c on solaris Reply with quote

In Solaris, there's a compile error in chat.c:

Code:
gcc -Wall  -D_GNU_SOURCE -DHAVE_CONFIG_H     -c chat.c
chat.c: In function 'threaded_chat_call':
chat.c:436:35: error: 'ses' undeclared (first use in this function)
chat.c:436:35: note: each undeclared identifier is reported only once for each function it appears in
make: * [chat.o] Error 1


The error occurs in an #else block for HAVE_GETADDRINFO that doesn't seem to get compiled on linux installs.

The fix is to /s/ses/gtd->ses/g on lines 436 and 437.

Code:
   arg = (void *) get_arg_in_braces(gtd->ses, (char *) arg, host, FALSE);
   arg = (void *) get_arg_in_braces(gtd->ses, (char *) arg, port, FALSE);


Edit: Or I guess I should say, this resolves the compile-time error. I don't know what effect this has on the #chat functionality since I don't use it! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group