* Re: Help with getting started on Mac OS X
[not found] <E199kDO-0000vd-03@monty-python.gnu.org>
@ 2003-05-03 23:21 ` Carl Lindberg
2003-08-30 13:29 ` Andrew J. Gray
0 siblings, 1 reply; 3+ messages in thread
From: Carl Lindberg @ 2003-05-03 23:21 UTC (permalink / raw)
To: help-gnats
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with getting started on Mac OS X
2003-05-03 23:21 ` Help with getting started on Mac OS X Carl Lindberg
@ 2003-08-30 13:29 ` Andrew J. Gray
0 siblings, 0 replies; 3+ messages in thread
From: Andrew J. Gray @ 2003-08-30 13:29 UTC (permalink / raw)
To: lindberg; +Cc: help-gnats
Hi Carl,
> > 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:
Thanks for that fix, I have committed it to the GNATS CVS repository.
--
Andrew J. Gray
GNU GNATS Maintainer
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 3+ messages in thread
* Help with getting started on Mac OS X
@ 2003-04-27 9:03 Doug McClure
0 siblings, 0 replies; 3+ messages in thread
From: Doug McClure @ 2003-04-27 9:03 UTC (permalink / raw)
To: help-gnats
Hi,
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
regex.h:518:3: style of line directive is a GCC extension
regex.h:558:3: style of line directive is a GCC extension
In file included from edit.c:21:
gnats.h:407:3: style of line directive is a GCC extension
edit.c:22:3: style of line directive is a GCC extension
In file included from edit.c:22:
gnatsd.h:2:3: style of line directive is a GCC extension
gnatsd.h:23:3: style of line directive is a GCC extension
...
and some errors like this:
In file included from /usr/include/machine/types.h:30,
from /usr/include/stddef.h:63,
from ./../include/libiberty.h:129,
from gnats.h:37,
from edit.c:21:
/usr/include/ppc/types.h:75: warning: ISO C89 does not support `long
long'
/usr/include/ppc/types.h:76: warning: ISO C89 does not support `long
long'
In the end, gnatsd did compile, but when inetd tries to start it, I it
crashes and I get a backtrace like this:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00091fff
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
If anybody has gotten it running on X Server, I'd appreciate any help
you can give me
-d
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-30 11:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <E199kDO-0000vd-03@monty-python.gnu.org>
2003-05-03 23:21 ` Help with getting started on Mac OS X Carl Lindberg
2003-08-30 13:29 ` Andrew J. Gray
2003-04-27 9:03 Doug McClure
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).