reality3k
Joined: 11 Feb 2009 Posts: 46
|
Posted: Sun Jul 01, 2012 5:35 pm Post subject: Compile error in chat.c on solaris |
|
|
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!  |
|