Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2002 10:10:37 -0500 (EST)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Kevin Day <toasty@shell.dragondata.com>
Cc:        current@FreeBSD.ORG, bde@FreeBSD.ORG
Subject:   Re: function name collision on "getcontext" with ports/editors/joe
Message-ID:  <Pine.GSO.4.10.10202101002040.15554-100000@pcnet1.pcnet.com>
In-Reply-To: <200202100723.g1A7NtW54701@shell.dragondata.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 Feb 2002, Kevin Day wrote:
> 
> I'm the maintainer for ports/editors/joe, and just tried compiling it under
> -CURRENT.
> 
> <signal.h> includes <sys/signal.h> which includes ucontext.h
> 
> > cc -O -pipe  -c umath.c
> > In file included from b.h:6,
> >                  from bw.h:23,
> >                  from umath.c:5:
> > rc.h:41: conflicting types for `getcontext'
> > /usr/include/sys/ucontext.h:54: previous declaration of `getcontext'
> > *** Error code 1
> > 
> > Stop in /usr/ports/editors/joe/work/joe.
> 
> 
> I can rename getcontext in joe, but "getcontext" seems like a pretty common
> function name, I know I've used it in projects before. Not including
> signal.h isn't really an option either.
> 
> I'm not familiar with any of the ucontext.h functions, are they complying
> with some kind of standard and can't be renamed or have a prefix added to
> it?

Yea, getcontext is part of SUSv2 and the 2001 POSIX spec.  It has been
present in at least Solaris for years now, so it's kind of weird that
joe hasn't had the problem when built for it [Solaris].

Hmm, <sys/signal.h> includes <sys/ucontext.h>.  I'm not sure why though.
bde might know.

-- 
Dan Eischen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10202101002040.15554-100000>