<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY LINK="#0000ff">
On Fri, 2011-04-29 at 15:41 -0700, Fred Liu wrote:
<BLOCKQUOTE TYPE=CITE>
    Gaetan,<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Thanks.<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Yes, I build from source on a clean system.<BR>
    <BR>
    Do you have recommended OS or successful case to share?<BR>
    <BR>
     <BR>
</BLOCKQUOTE>
The one you are most familiar with is usually the best choice. If you are creating a Linux From Scratch system, there is significant work in getting all the required tools installed. You will basically do all the work the distros are doing. Ubuntu and Fedora are popular distros and plenty of users.<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    I have read that module developers guide, but it is not detailed like<BR>
    <BR>
    what LFS book does.<BR>
</BLOCKQUOTE>
Correct, on the other hand it is sufficient to build from source from the main distros. The main source of build errors are missing/back level tools. I added the list of tools needed in this wiki:<BR>
<A HREF="http://wiki.x.org/wiki/RequiredPackages">http://wiki.x.org/wiki/RequiredPackages</A><BR>
<BR>
Building is done continuously on various workstations and their build logs may help:<BR>
<A HREF="http://tinderbox.freedesktop.org/">http://tinderbox.freedesktop.org/</A><BR>
<BR>
I have very little info from which to make recommendations.<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    &nbsp;<BR>
    <BR>
    Many thanks.<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Fred<BR>
    <BR>
    &nbsp;<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <B>From:</B> Gaetan Nadon [mailto:memsize@videotron.ca] <BR>
    <B>Sent:</B> Saturday, April 30, 2011 6:35 AM<BR>
    <B>To:</B> Fred Liu<BR>
    <B>Cc:</B> X.Org Developers<BR>
    <B>Subject:</B> RE: `PKG_CHECK_MODULES(X, xproto)'?<BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;<BR>
    <BR>
    On Fri, 2011-04-29 at 05:01 -0700, Fred Liu wrote: <BR>
    <BR>
    Gaetan,<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    I have tried moving, it is gone, but there is a new one like:<BR>
    <BR>
    I assume you mean the makedepend module built successfully because the xproto module was built beforehand.<BR>
    I'll fix the script.<BR>
    <BR>
    <BR>
    <BR>
    <BR>
    &nbsp;<BR>
    <BR>
    configure.ac:39: the top level<BR>
    <BR>
    configure:5033: error: possibly undefined macro: m4_ifval<BR>
    <BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If this token and others are legitimate, please use m4_pattern_allow.<BR>
    <BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; See the Autoconf documentation.<BR>
    <BR>
    configure:5037: error: possibly undefined macro: AC_CHECK_FILE<BR>
    <BR>
    autoreconf: /tool/util/.package/autoconf/2.68/bin/autoconf failed with exit status: 1<BR>
    <BR>
    build.sh: &quot;autogen.sh&quot; failed on doc/xorg-docs<BR>
    <BR>
    build.sh: error processing module/component:&nbsp; &quot;doc/xorg-docs&quot;<BR>
    <BR>
    There maybe some tooling packages missing or incomplete. I don't know which distro/OS you are using. There is typically 20+ packages to install that aren't installed by default. It's hard to tell from build errors. It looks like you are starting to build from source on a clean system. Take a look at this wiki:<BR>
    <BR>
    <A HREF="http://wiki.x.org/wiki/ModularDevelopersGuide#RequiredTools">http://wiki.x.org/wiki/ModularDevelopersGuide#RequiredTools</A><BR>
    <A HREF="http://wiki.x.org/wiki/RequiredPackages">http://wiki.x.org/wiki/RequiredPackages</A><BR>
    <BR>
    <BR>
    <BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Thanks.<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Fred<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    <BLOCKQUOTE>
        <B>From:</B> Gaetan Nadon [mailto:memsize@videotron.ca] <BR>
        <B>Sent:</B> &#26143;&#26399;&#20116;, &#22235;&#26376; 29, 2011 19:54<BR>
        <B>To:</B> Fred Liu<BR>
        <B>Cc:</B> X.Org Developers<BR>
        <B>Subject:</B> Re: `PKG_CHECK_MODULES(X, xproto)'?<BR>
        <BR>
        <BR>
        <BR>
        &nbsp;<BR>
        <BR>
        On Thu, 2011-04-28 at 21:22 -0700, Fred Liu wrote: <BR>
        <BR>
<PRE>
&nbsp;
&nbsp;
Hi,
&nbsp;
I am following the instruction from &quot;Building all modules with the build scripts&quot; to build X11R76 as following:
&nbsp;
util/modular/build.sh $PREFIX
...
...
./configure: line 4899: syntax error near unexpected token `X,'
./configure: line 4899: `PKG_CHECK_MODULES(X, xproto)'
build.sh: &quot;autogen.sh&quot; failed on util/makedepend
build.sh: error processing module/component:&nbsp; &quot;util/makedepend&quot;
...
&nbsp;
Any workaround?
&nbsp;
</PRE>
        <BR>
        <BR>
        Building makedepend was moved up as it is needed by &quot;mesa&quot;.<BR>
        It looks it was moved too early, before &quot;proto&quot;.<BR>
        In build.sh, can you move building makedepend after &quot;build proto&quot;<BR>
        and check if it corrects the problem?<BR>
        This problem will only happen on a very clean system.<BR>
        <BR>
<PRE>
&nbsp;
&nbsp;
if [ X&quot;$MODFILE&quot; = X ]; then
&nbsp;&nbsp;&nbsp; # We must install the global macros before anything else
&nbsp;&nbsp;&nbsp; build util macros
&nbsp;&nbsp;&nbsp; build font util
&nbsp;&nbsp;&nbsp; # Required by mesa
&nbsp;&nbsp;&nbsp; build util makedepend
&nbsp;
&nbsp;&nbsp;&nbsp; build_doc
&nbsp;&nbsp;&nbsp; build_proto
&nbsp;&nbsp;&nbsp; build_lib
&nbsp;&nbsp;&nbsp; build_mesa
</PRE>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
<PRE>
&nbsp;
&nbsp;
Many thanks.
&nbsp;
Fred
_______________________________________________
<A HREF="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</A>: X.Org development
Archives: <A HREF="http://lists.x.org/archives/xorg-devel">http://lists.x.org/archives/xorg-devel</A>
Info: <A HREF="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</A>
</PRE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
</BODY>
</HTML>