From owner-freebsd-x11@FreeBSD.ORG Mon Dec 24 17:47:22 2012 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 446BE446 for ; Mon, 24 Dec 2012 17:47:22 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 958718FC0A for ; Mon, 24 Dec 2012 17:47:21 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 46BE540012 for ; Mon, 24 Dec 2012 18:47:20 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 3157040009; Mon, 24 Dec 2012 18:47:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (h-45-105.a163.priv.bahnhof.se [94.254.45.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 88B4140005; Mon, 24 Dec 2012 18:47:18 +0100 (CET) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3YVSZG2DXRz8hVn; Mon, 24 Dec 2012 18:47:18 +0100 (CET) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([IPv6:2001:470:dca9:0:1::3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) (amavisd-new, port 10025) with ESMTPS id f4IIk_vzq2ha; Mon, 24 Dec 2012 18:47:15 +0100 (CET) Received: from mail.daemonic.se (mail.daemonic.se [10.1.0.4]) by mx.daemonic.se (Postfix) with ESMTPS id 3YVSZC3VWWz8hVm; Mon, 24 Dec 2012 18:47:15 +0100 (CET) Received: from tifa.daemonic.se (h85-8-27-136.dynamic.se.alltele.net [85.8.27.136]) by mail.daemonic.se (Postfix) with ESMTPSA id 3YVSZC1BrMz9Ctj; Mon, 24 Dec 2012 18:47:15 +0100 (CET) Received: from tifa.daemonic.se (localhost [127.0.0.1]) by tifa.daemonic.se (Postfix) with ESMTP id 3DB522281B; Mon, 24 Dec 2012 18:47:14 +0100 (CET) Message-ID: <50D89522.7070103@freebsd.org> Date: Mon, 24 Dec 2012 18:47:14 +0100 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: AN Subject: Re: /usr/local/lib/X11/config/FreeBSD.cf:451:35: error: '#' References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2012 17:47:22 -0000 [CC x11@ to get more eyes on this] On 12/24/12 16:37, AN wrote: > Hi Nik: > > I know this is not your port, but could you take a look at this problem? > Is it easily fixable? > > Thanks in advance. > > > FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r244643: Sun Dec 23 > 19:05:06 EST 2012 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 > > > # cd /usr/ports/net/ssvnc/ && make install clean > ===> License GPLv2 accepted by the user > ===> Found saved configuration for ssvnc-1.0.29 > ===> ssvnc-1.0.29 depends on file: /usr/local/sbin/pkg - found > ===> Extracting for ssvnc-1.0.29 > => SHA256 Checksum OK for ssvnc-1.0.29.src.tar.gz. > ===> Patching for ssvnc-1.0.29 > ===> Applying FreeBSD patches for ssvnc-1.0.29 > ===> ssvnc-1.0.29 depends on executable: imake - found > ===> ssvnc-1.0.29 depends on executable: gmake - found > ===> ssvnc-1.0.29 depends on file: /usr/local/libdata/pkgconfig/xi.pc > - found > ===> ssvnc-1.0.29 depends on file: /usr/local/libdata/pkgconfig/xmu.pc > - found > ===> ssvnc-1.0.29 depends on file: /usr/local/libdata/pkgconfig/xt.pc > - found > ===> ssvnc-1.0.29 depends on file: > /usr/local/libdata/pkgconfig/xaw7.pc - found > ===> ssvnc-1.0.29 depends on file: /usr/local/libdata/pkgconfig/ice.pc > - found > ===> ssvnc-1.0.29 depends on file: /usr/local/libdata/pkgconfig/xpm.pc > - found > ===> ssvnc-1.0.29 depends on file: > /usr/local/libdata/pkgconfig/xext.pc - found > ===> ssvnc-1.0.29 depends on file: /usr/local/libdata/pkgconfig/sm.pc > - found > ===> ssvnc-1.0.29 depends on shared library: jpeg.11 - found > ===> Configuring for ssvnc-1.0.29 > sh -c 'type xmkmf' > xmkmf is /usr/local/bin/xmkmf > if [ "Xultraftp" != "X" ]; then :; fi > if [ "Xultraftp" != "X" ]; then :; fi > > cd vnc_unixsrc/libvncauth; pwd; xmkmf > /usr/ports/net/ssvnc/work/ssvnc-1.0.29/vnc_unixsrc/libvncauth > mv -f Makefile Makefile.bak > imake -DUseInstalled -I/usr/local/lib/X11/config > In file included from Imakefile.c:16: > In file included from /usr/local/lib/X11/config/Imake.tmpl:109: > /usr/local/lib/X11/config/FreeBSD.cf:451:35: error: '#' is not followed > by a macro parameter > #define IncludeMakefile(file) @@# dependencies are in .depend > ^ > In file included from Imakefile.c:16: > In file included from /usr/local/lib/X11/config/Imake.tmpl:316: > /usr/local/lib/X11/config/Imake.rules:1674:27: warning: empty character > constant [-Winvalid-pp-token] > for flag in ${MAKEFLAGS} ''; do \ @@\ > ^ > /usr/local/lib/X11/config/Imake.rules:1897:35: error: '#' is not > followed by a macro parameter > #define IncludeMakefile(file) @@# dependencies are in .depend > ^ > In file included from Imakefile.c:16: > /usr/local/lib/X11/config/Imake.tmpl:2144:10: fatal error: ' X11 .rules' > file not found > #include ProjectRulesFile > ^ > /usr/local/lib/X11/config/Imake.tmpl:2142:35: note: expanded from macro > 'ProjectRulesFile' > # define ProjectRulesFile Concat3(<,TopLevelProject,.rules>) > ^ > /usr/local/lib/X11/config/Imake.rules:256:23: note: expanded from macro > 'Concat3' > #define Concat3(a,b,c)a/**/b/**/c > ^ > 1 warning and 3 errors generated. > imake: Exit code 1. > Stop. > cd vnc_unixsrc/vncviewer; pwd; xmkmf > /usr/ports/net/ssvnc/work/ssvnc-1.0.29/vnc_unixsrc/vncviewer > mv -f Makefile Makefile.bak > imake -DUseInstalled -I/usr/local/lib/X11/config > In file included from Imakefile.c:16: > In file included from /usr/local/lib/X11/config/Imake.tmpl:109: > /usr/local/lib/X11/config/FreeBSD.cf:451:35: error: '#' is not followed > by a macro parameter > #define IncludeMakefile(file) @@# dependencies are in .depend > ^ > In file included from Imakefile.c:16: > In file included from /usr/local/lib/X11/config/Imake.tmpl:316: > /usr/local/lib/X11/config/Imake.rules:1674:27: warning: empty character > constant [-Winvalid-pp-token] > for flag in ${MAKEFLAGS} ''; do \ @@\ > ^ > /usr/local/lib/X11/config/Imake.rules:1897:35: error: '#' is not > followed by a macro parameter > #define IncludeMakefile(file) @@# dependencies are in .depend > ^ > In file included from Imakefile.c:16: > /usr/local/lib/X11/config/Imake.tmpl:2144:10: fatal error: ' X11 .rules' > file not found > #include ProjectRulesFile > ^ > /usr/local/lib/X11/config/Imake.tmpl:2142:35: note: expanded from macro > 'ProjectRulesFile' > # define ProjectRulesFile Concat3(<,TopLevelProject,.rules>) > ^ > /usr/local/lib/X11/config/Imake.rules:256:23: note: expanded from macro > 'Concat3' > #define Concat3(a,b,c)a/**/b/**/c > ^ > 1 warning and 3 errors generated. > imake: Exit code 1. > Stop. > > Now run: 'make all' > ===> Building for ssvnc-1.0.29 > cd vnc_unixsrc/libvncauth; gmake > gmake[1]: Entering directory > `/usr/ports/net/ssvnc/work/ssvnc-1.0.29/vnc_unixsrc/libvncauth' > Makefile:11: *** missing separator. Stop. > gmake[1]: Leaving directory > `/usr/ports/net/ssvnc/work/ssvnc-1.0.29/vnc_unixsrc/libvncauth' > gmake: *** [all] Error 2 > *** [do-build] Error code 1 > > Stop in /usr/ports/net/ssvnc. > *** [install] Error code 1 > > Stop in /usr/ports/net/ssvnc. > Hi! This is a problem with imake abusing cpp -traditional. clang cpp does not support this rather undocumented and arcane version of cpp that exists in gcc. The best course of action is to switch the build system of ssvnc to use a more modern build system, otherwise you can try and experiment with imake using other cpps, such as ucpp. Regards! -- Niclas Zeising