In message <[email protected]>, Cy Schubert writes: > In message <20131029212647.GA1211@tiny-r255948>, Matthias Apitz writes: > > El día Tuesday, October 29, 2013 a las 07:52:14AM -0700, Cy Schubert > > escribió > : > > > > > In message <[email protected]>, Matthias Apitz writes: > > > > > > > > Hello, > > > > > > > > The vnc client only build in /head (anyway if with clang or gcc46) if > > > > one adds an > > > > > > > > #include <stdlib.h> to the following three files: > > > > > > > > ./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 > > > > > > > > The server part stops building in: > > > > > > > > ... > > > > cc -c -O -I../../include -I../../imports/x11/include/X11 `./ccimake` i > ma > > ke.c > > > > cc -o imake -O -I../../include -I../../imports/x11/include/X11 imake.o > > > > rm -f ./config/makedepend/Makefile.proto > > > > ./config/imake/imake -I./config/cf -s ./config/makedepend/Makefile.pro > to > > -f > > > > ./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/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: '#' is not followed by a macro pa > ra > > mete > > > > r > > > > > > I haven't looked at it completely but it appears vnc needs a few patches > to > > > > > add includes for stdlib.h. It's on my plate of things to do. > > > > The missing includes for stdlib.h is an easy one, but the imake problem is > > more complex; see also our exchange in June: > > > > Date: Fri, 7 Jun 2013 10:57:30 +0200 > > To: Niclas Zeising <[email protected]>, [email protected], cy@f > re > > ebsd.org > > Subject: Re: ports && 10-CURRENT > > Message-ID: <[email protected]> > > References: <[email protected]> <51A11350.8050700@freebs > d. > > org> <[email protected]> > > I'm aware of that one too. In time it will be fixed. Patches are always > welcome though. As a user of vnc I too am impacted by this but one thing at > a time.
It appears the the clang cpp re-evaluates expressions which is not compatible with other cpp's. A workaround and possibly permanent solution is to set the IMAKECPP environment variable to one of the gcc cpp's. Unfortunately tradcpp nor mcpp work though any of the gcc cpp's does. We don't need gcc, just its cpp. Unfortunately dragging in a gcc is a bit of overkill but I don't see any way around this. -- Cheers, Cy Schubert <[email protected]> FreeBSD UNIX: <[email protected]> Web: http://www.FreeBSD.org _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[email protected]"
