Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 22:52:55 -0700
From:      Cy Schubert <Cy.Schubert@komquats.com>
To:        Cy Schubert <Cy.Schubert@komquats.com>
Cc:        Matthias Apitz <guru@unixarea.de>, freebsd-ports@freebsd.org, cy@FreeBSD.org
Subject:   Re: net/vnc r327755 does not build in /head
Message-ID:  <201310300552.r9U5qtck027873@slippy.cwsent.com>
In-Reply-To: Message from Cy Schubert <Cy.Schubert@komquats.com> of "Tue, 29 Oct 2013 15:30:22 -0700." <201310292230.r9TMUMfS017516@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <201310292230.r9TMUMfS017516=40slippy.cwsent.com>, Cy Schubert=
=20
writes:
> In message <20131029212647.GA1211=40tiny-r255948>, Matthias Apitz write=
s:
> > El d=EDa Tuesday, October 29, 2013 a las 07:52:14AM -0700, Cy Schuber=
t escribi=F3
> :
> >=20
> > > In message <20131029084836.GA19333=40sh4-5.1blu.de>, Matthias Apitz=
 writes:
> > > >=20
> > > > Hello,
> > > >=20
> > > > The vnc client only build in /head (anyway if with clang or gcc46=
) if
> > > > one adds an=20
> > > >=20
> > > > =23include <stdlib.h> to the following three files:
> > > >=20
> > > > ./work/vnc-4_1_3-unixsrc/common/network/TcpSocket.cxx
> > > > ./work/vnc-4_1_3-unixsrc/unix/tx/TXImage.cxx
> > > > ./work/vnc-4_1_3-unixsrc/unix/x0vncserver/Image.cxx
> > > >=20
> > > > The server part stops building in:
> > > >=20
> > > > ...
> > > > cc -c  -O -I../../include -I../../imports/x11/include/X11 =60./cc=
imake=60 i
> ma
> > ke.c
> > > > cc -o imake  -O -I../../include -I../../imports/x11/include/X11 i=
make.o
> > > > rm -f ./config/makedepend/Makefile.proto
> > > > ./config/imake/imake -I./config/cf  -s ./config/makedepend/Makefi=
le.pro
> to
> >  -f=20
> > > > ./config/makedepend/Imakefile -DTOPDIR=3D../.. -DCURDIR=3D./confi=
g/makedepe
> nd
> > > > objformat: not found
> > > > In file included from Imakefile.c:16:
> > > > In file included from ./config/cf/Imake.tmpl:104:
> > > > ./config/cf/FreeBSD.cf:477:35: error: '=23' is not followed by a =
macro pa
> ra
> > mete
> > > > r
> > >=20
> > > I haven't looked at it completely but it appears vnc needs a few pa=
tches=20
> to
> > =20
> > > add includes for stdlib.h. It's on my plate of things to do.
> >=20
> > The missing includes for stdlib.h is an easy one, but the imake probl=
em is
> > more complex; see also our exchange in June:
> >=20
> >   Date: Fri, 7 Jun 2013 10:57:30 +0200
> >   To: Niclas Zeising <zeising=40freebsd.org>, freebsd-ports=40freebsd=
.org, cy=40f
> re
> > ebsd.org
> >   Subject: Re: ports && 10-CURRENT
> >   Message-ID: <20130607085730.GA8414=40sh4-5.1blu.de>
> >   References: <20130525185649.GA932=40tiny.Sisis.de> <51A11350.805070=
0=40freebs
> d.
> > org> <20130526155022.GA2665=40sh4-5.1blu.de>
>=20
> I'm aware of that one too. In time it will be fixed. Patches are always=
=20
> welcome though. As a user of vnc I too am impacted by this but one thin=
g at=20
> a time.

It appears the the clang cpp re-evaluates expressions which is not=20
compatible with other cpp's.

A workaround and possibly permanent solution is to set the IMAKECPP=20
environment variable to one of the gcc cpp's. Unfortunately tradcpp nor=20
mcpp work though any of the gcc cpp's does. We don't need gcc, just its=20
cpp. Unfortunately dragging in a gcc is a bit of overkill but I don't see=
=20
any way around this.


--=20
Cheers,
Cy Schubert <Cy.Schubert=40komquats.com>
FreeBSD UNIX:  <cy=40FreeBSD.org>   Web:  http://www.FreeBSD.org





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310300552.r9U5qtck027873>