Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2019 08:02:09 -0400
From:      "Vlad D. Markov" <dvoich@aim.com>
To:        MJ <mafsys1234@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Imake fails
Message-ID:  <20190919080209.abe7bfd821ecc8cecd17e890@aim.com>
In-Reply-To: <7f08a95d-180b-ff1c-0166-20bf5d6a2c5e@gmail.com>
References:  <20190918152511.fa908fba7c3370ce32d6ba3b@aim.com> <e6f9aa74-c10f-5667-643c-2e5014824c40@gmail.com> <20190918192156.c1ecab9a83307de51a72b4be@aim.com> <7f08a95d-180b-ff1c-0166-20bf5d6a2c5e@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 Sep 2019 11:11:51 +1000
MJ <mafsys1234@gmail.com> wrote:

> 
> On 19/09/2019 9:21 am, Vlad D. Markov via freebsd-questions wrote:
> > On Thu, 19 Sep 2019 08:58:07 +1000
> > MJ <mafsys1234@gmail.com> wrote:
> >
> >> On 19/09/2019 5:25 am, Vlad D. Markov via freebsd-questions wrote:
> >>> I was hoping to build xpat2 but Imake fails. I've had no issues doing the same thing using Debian.
> >>>
> >>> Any ideas how to fix this?
> >>>
> >>> happy$ xmkmf -a
> >>> mv -f Makefile Makefile.bak
> >>> imake -DUseInstalled -I/usr/local/lib/X11/config
> >>> In file included from Imakefile.c:15:
> >>> 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 \                               @@\
> >>>                                    ^
> >>> In file included from Imakefile.c:15:
> >>> /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 1 error generated.
> >>> imake: Exit code 1.
> >>>     Stop.
> >>
> >> You probably want to add uname information etc. to aid in any help.
> >>
> >>
> > FreeBSD happy 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC  amd64
> >
> > imake-1.0.8,1
> > Name           : imake
> > Version        : 1.0.8,1
> > Installed on   : Wed Sep 18 14:38:50 2019 EDT
> > Origin         : devel/imake
> > Architecture   : FreeBSD:12:amd64
> > Prefix         : /usr/local
> > Categories     : devel
> > Licenses       : MIT
> > Maintainer     : x11@FreeBSD.org
> > WWW            : https://www.x.org/
> > Comment        : Imake and other utilities from X.Org
> > Annotations    :
> > 	FreeBSD_version: 1200086
> > Flat size      : 70.7KiB
> > Description    :
> > This package contains X.Org's imake, imake config files, and other build-related
> > tools.
> >
> > WWW: https://www.x.org/
> >
> Are you using ports? I have the same v12 FreeBSD and I just built it from games/xpat2 without a problem. This built imake as well.
> 
> Why are you using xmkmf?
> 
> Cheers
> Mark
> 
xpat2 builds well from ports because it uses the supplied Makefile. No problem there.

There are multiple options to building xpat2 like using Motif vice Xaw etc. I prefer the Motif version. There is a tmpl file in the src directory where you can modify things then run xmkmf to generate the new Makefile and build it to your taste.




-- 




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