From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5909 invoked from network); 3 May 2003 23:21:51 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 3 May 2003 23:21:51 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19C6Ja-0003Hr-00 for listarch-gnats-devel@sources.redhat.com; Sat, 03 May 2003 19:21:10 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19C6IC-0002m7-00 for help-gnats@gnu.org; Sat, 03 May 2003 19:19:44 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19C6Hq-0001xp-00 for help-gnats@gnu.org; Sat, 03 May 2003 19:19:31 -0400 Received: from lakemtao03.cox.net ([68.1.17.242]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19C6Gu-0000XN-00 for help-gnats@gnu.org; Sat, 03 May 2003 19:18:24 -0400 Received: from clindberg.org ([68.98.165.13]) by lakemtao03.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030503231812.OIBT23518.lakemtao03.cox.net@clindberg.org>; Sat, 3 May 2003 19:18:12 -0400 Date: Sat, 03 May 2003 23:21:00 -0000 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: help-gnats@gnu.org From: Carl Lindberg In-Reply-To: Message-Id: <82BB5D23-7DBD-11D7-8E83-0003930E1600@clindberg.org> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) Subject: Re: Help with getting started on Mac OS X X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General discussion about GNU GNATS List-Help: List-Post: List-Subscribe: , List-Archive: Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2003-q2/txt/msg00038.txt.bz2 > I'm trying to setup gnats 3.999.2 on a Mac OS X Server but I'm having a > few problems, and I'm wondering if anyone else has managed to get gnats > up and running on X Server 10.2.5. > > When I build gnats, I get a LOT of errors like these > > ... > regex.h:434:3: style of line directive is a GCC extension This is because of the -ansi and -pedantic flags that are present in the Makefiles. While these are useful during development, they should probably be turned off for releases -- many times the system headers themselves will cause piles of warnings. It should build fine though. > In the end, gnatsd did compile, but when inetd tries to start it, I it > crashes and I get a backtrace like this: > > Thread 0 Crashed: > #0 0x9007472c in memmove > #1 0x0000fdf8 in xstrndup (misc.c:398) > #2 0x0001a92c in getOneAddress (mail.c:236) > #3 0x0001a998 in get_responsible_addr (mail.c:251) > #4 0x00003c64 in gnatsdChdb (cmds.c:662) > #5 0x00002d20 in main (gnatsd.c:1044) > #6 0x0000186c in _start (crt.c:267) > #7 0x000016ec in start > This is a bug in mail.c; here's a patch: *** mail.c 25 Nov 2002 13:58:33 -0000 1.20 --- mail.c 3 May 2003 22:42:52 -0000 *************** *** 226,232 **** addrEnd = addr; /* ignore any ending white space */ ! while (addr >= addrStart && isspace((int)(unsigned char)*(addr-sizeof(*addr)))) { addr--; } --- 226,232 ---- addrEnd = addr; /* ignore any ending white space */ ! while (addr > addrStart && isspace((int)(unsigned char)*(addr-sizeof(*addr)))) { addr--; } The existing code allows a comparison of the character before the 'addrStart' address, which is bad. On MacOS X, that character just so happens to be a space, and addr is decremented one too many times. The result is a -1 being passed to xstrndup. -Carl Lindberg _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats