<!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>
<BR>
<BR>
Thanks.<BR>
<BR>
<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>
<BR>
<BR>
Many thanks.<BR>
<BR>
<BR>
<BR>
Fred<BR>
<BR>
<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>
<BR>
<BR>
On Fri, 2011-04-29 at 05:01 -0700, Fred Liu wrote: <BR>
<BR>
Gaetan,<BR>
<BR>
<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>
<BR>
<BR>
configure.ac:39: the top level<BR>
<BR>
configure:5033: error: possibly undefined macro: m4_ifval<BR>
<BR>
If this token and others are legitimate, please use m4_pattern_allow.<BR>
<BR>
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: "autogen.sh" failed on doc/xorg-docs<BR>
<BR>
build.sh: error processing module/component: "doc/xorg-docs"<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>
<BR>
<BR>
Thanks.<BR>
<BR>
<BR>
<BR>
Fred<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE>
<B>From:</B> Gaetan Nadon [mailto:memsize@videotron.ca] <BR>
<B>Sent:</B> 星期五, 四月 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>
<BR>
<BR>
On Thu, 2011-04-28 at 21:22 -0700, Fred Liu wrote: <BR>
<BR>
<PRE>
Hi,
I am following the instruction from "Building all modules with the build scripts" to build X11R76 as following:
util/modular/build.sh $PREFIX
...
...
./configure: line 4899: syntax error near unexpected token `X,'
./configure: line 4899: `PKG_CHECK_MODULES(X, xproto)'
build.sh: "autogen.sh" failed on util/makedepend
build.sh: error processing module/component: "util/makedepend"
...
Any workaround?
</PRE>
<BR>
<BR>
Building makedepend was moved up as it is needed by "mesa".<BR>
It looks it was moved too early, before "proto".<BR>
In build.sh, can you move building makedepend after "build proto"<BR>
and check if it corrects the problem?<BR>
This problem will only happen on a very clean system.<BR>
<BR>
<PRE>
if [ X"$MODFILE" = X ]; then
# We must install the global macros before anything else
build util macros
build font util
# Required by mesa
build util makedepend
build_doc
build_proto
build_lib
build_mesa
</PRE>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<PRE>
Many thanks.
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>