Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2012 18:47:14 +0100
From:      Niclas Zeising <zeising@freebsd.org>
To:        AN <andy@neu.net>
Cc:        x11@freebsd.org
Subject:   Re: /usr/local/lib/X11/config/FreeBSD.cf:451:35: error: '#'
Message-ID:  <50D89522.7070103@freebsd.org>
In-Reply-To: <alpine.BSF.2.00.1212241020420.82313@mail.neu.net>
References:  <alpine.BSF.2.00.1212241020420.82313@mail.neu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
[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



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