On Thu, Oct 23, 2003 at 04:22:22PM -0700, Stephen wrote: > I have been trying to get Gnome-Mud to compile on FreeBSD 4.7. I am > using gcc. The program compiles well but when I try to connect by the > Wizard or manually, I get this error. > > *** Making connection to 192.168.1.2, port 4000. > *** Invalid value for hints. On Wed, Nov 19, 2003 at 08:50:34AM -0800, Logic Flow wrote: > GNOME-Mud version 0.10.2 (compiled 04:34:08, Nov 2 2003) > Distributed under the terms of the GNU General Public Licence. > > Python version 2.2.2 (#1, May 23 2003, 14:49:39) > [GCC 3.2.2 [FreeBSD] 20030205 (release)] > *** Making connection to 10.1.1.25, port 23. > *** Invalid value for hints. Hello to both. Can you try the following patch? Some fields in a struct weren't initialized, and FreeBSD doesn't like that. Thanks. Index: ChangeLog =================================================================== RCS file: /cvs/gnome/gnome-mud/ChangeLog,v retrieving revision 1.284 diff -u -r1.284 ChangeLog --- ChangeLog 11 Nov 2003 13:51:16 -0000 1.284 +++ ChangeLog 20 Nov 2003 22:54:51 -0000 @@ -1,3 +1,9 @@ +2003-11-20 Jordi Mallach <jordi sindominio net> + + * src/net.c (open_connection): initialize all the fields in + getaddrinfo() to fix a connect error on FreeBSD. Patch by Sjoerd + Simons. + 2003-11-11 Robin Ericsson <lobbin localhost nu> * 0.10.3 release. Index: src/net.c =================================================================== RCS file: /cvs/gnome/gnome-mud/src/net.c,v retrieving revision 1.64 diff -u -r1.64 net.c --- src/net.c 11 Jul 2003 10:30:54 -0000 1.64 +++ src/net.c 20 Nov 2003 22:54:53 -0000 @@ -216,6 +216,7 @@ textfield_add (connection, buf, MESSAGE_SYSTEM); /* strerror(3) */ + memset (&req,0,sizeof(req)); req.ai_flags = 0; req.ai_family = AF_UNSPEC; req.ai_socktype = SOCK_STREAM; -- Jordi Mallach Pérez -- Debian developer http://www.debian.org/ jordi sindominio net jordi debian org http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/~jordi/
Attachment:
signature.asc
Description: Digital signature