Bob Jamison wrote:
It might be in the patch. Anyway, I added it to SessionManager's constructor for now. I can take it out. But it does get past that first error. However, I don't know what proper operation is like, so I don't know where to go from here.
Hi, all,
Notes on Loudmouth0.90 on Win32 only:
I got a bit tired of hacking on Loudmouth code. That's their project, not ours! ^^
However, I did get three things done.
================================= 1. I made a static makefile so that anyone can hack on the patched Loudmouth source I posted, and try it out. It is attached. It is set up to use our /gtk26 dir.
================================= 2. In lm-sock.c, there is a bug. At line 46, the lines: u_long mode = (block ? 0 : 1); res = ioctlsocket(sock, FIONBIO, &mode);
should be : u_long mode = (block ? 1 : 0); res = ioctlsocket(sock, FIONBIO, &mode);
That's according to the ioctlsocket() manpage: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/win...
================================= 3. In lm-connection.c, the function connection_connect_cb() has the lines: } else if (condition == G_IO_OUT) { _lm_connection_succeeded (connect_data);
It should maybe be: } else if (condition == 0 || condition == G_IO_OUT) { _lm_connection_succeeded (connect_data);
So, if anyone wants to hack on this to make it work, please do so.
I'm Off To The Pub!
Bob (ishmal)
CC = mingw32-gcc CXX = mingw32-g++ AS = as AR = mingw32-ar RANLIB = ranlib WINDRES = windres DLLWRAP = dllwrap DLLTOOL = dlltool RM = del
OBJ = \ lm-connection.o \ lm-debug.o \ lm-error.o \ lm-message-handler.o \ lm-message-node.o \ lm-message.o \ lm-parser.o \ lm-proxy.o \ lm-sha.o \ lm-sock.o \ lm-ssl.o \ lm-utils.o
CFLAGS = -g -DLM_COMPILATION
####### Where is your GTK directory? GTK=c:/gtk26
####### Same thing, DOS style GTKDOS=c:\gtk26
INC = -I. -I.. -I$(GTK)/include/glib-2.0 -I$(GTK)/lib/glib-2.0/include
libloudmouth-1.a: $(OBJ) ar crv $@ $(OBJ) ranlib $@ copy /y libloudmouth-1.a $(GTKDOS)\lib
####### IMPLICIT RULES .cpp.o: $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
.c.o: $(CC) $(CFLAGS) $(INC) -c -o $@ $<
clean: -$(RM) *.o -$(RM) *.a