RE: libX11 build error

2010-11-24 Thread Gaetan Nadon
On Wed, 2010-11-24 at 10:05 +0200, Deniz Fer wrote:

> My previous mail had the output of the compiling script which also
> includes the output of configure command. There appears to be no error
> but a lot of warnings which I couldn’t understand. I have added the
> config.log and config.status files in the attachments.
> 

Our build machines are similar, I use Ubuntu 64 bit. Not that it is
critical to have, but in order to reduce differences, you should build
and install the package xorg-sgml-doctools. This will give you the
stylesheets for the docs generated in /nls. It will remove the following
message from config.log:

configure:5826: $PKG_CONFIG --exists --print-errors "xorg-sgml-doctools 
>= 1.5"
Package xorg-sgml-doctools was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-sgml-doctools.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-sgml-doctools' found

I have uninstalled this module (make uninstall) and reconfigured libX11
and /nls still builds correctly.

.pre:

@$(MKDIR_P) $(@D)
$(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) < $< | 
$(CPP_SED_MAGIC) > $@

where: 

RAWCPP = /usr/bin/cpp
RAWCPPFLAGS = -undef -traditional
CPP_FILES_FLAGS = $(WCHAR32_FLAGS)
WCHAR32_FLAGS = -DWCHAR32=1
CPP_SED_MAGIC = $(SED) -e '/^\#  *[0-9][0-9]*  *.*$$/d' \
   -e '/^\#line  *[0-9][0-9]*  *.*$$/d' \
   -e '/^[ ]*XCOMM$$/s/XCOMM/\#/' \
   -e '/^[ 
]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/\#/' \
   -e '/^[ ]*XHASH/s/XHASH/\#/' \
   -e 's,X11_LOCALEDATADIR,$(X11_LOCALEDATADIR),g' \
   -e '/\...@\@$$/s/\...@\@$$/\\/'


When you issue the cpp command yourself, it works. When you issue the
make command, you only get the "> $@" part which evaluates to ">
am_ET.UTF-8/XLC_LOCALE".  The variables have the correct value, yet they
don't show up on the emitted cpp command. The problem has to be around
this area. Try some of these:

Edit the generated Makefile to replace the variables with their values.
Build other directories (just cd and "make install") particularly the
specs directory.
Check for any local hack to the make executable.
Build the /config dir in app/xdm
(http://cgit.freedesktop.org/xorg/app/xdm/) it uses a similar cpp
command.
In a new empty directory, clone the libX11 again and rebuild.

I attached my generated Makefile for comparison.

>  
> 
> I also tried to issue the command you have mentioned before, it
> executes without any error (so the commands used are all valid) but
> the XLC_LOCALE file it creates is empty (probably because I did not
> edit any environment variables).

Mine too is empty. This is normal for some locales.

Good luck.


# Makefile.in generated by automake 1.10.2 from Makefile.am.
# nls/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#

#			-*- Makefile -*-
# Rules for generating files using the C pre-processor
# (Replaces CppFileTarget from Imake)


pkgdatadir = $(datadir)/libX11
pkglibdir = $(libdir)/libX11
pkgincludedir = $(includedir)/libX11
a

RE: libX11 build error

2010-11-23 Thread Gaetan Nadon
On Tue, 2010-11-23 at 10:29 +0200, Deniz Fer wrote:

> Hi again,
> 
> I have collected the logs.
> libX11_compile_log has the output of the following command(I guess this has 
> much information):
> 
> ./util/modular/build.sh --clone -p --autoresume built.modules 
> /home/yaltes/Desktop/xorg
> 
> libX11_V1_log0 has the output of "make V=1" after "make clean"(in libX11 
> directory).


On a working build, the following command is issued:

/usr/bin/cpp -undef -traditional -DWCHAR32=1 < 
am_ET.UTF-8/XLC_LOCALE.pre | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^#line  
*[0-9][0-9]*  *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ 
]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e 
's,X11_LOCALEDATADIR,/home/nadon/xorg/src/share/X11/locale,g' -e 
'/\...@\@$/s/\...@\@$/\\/' > am_ET.UTF-8/XLC_LOCALE


It looks like the entire command is missing which comes from the
Makefile target:


.pre:
@$(MKDIR_P) $(@D)
$(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) < $< | 
$(CPP_SED_MAGIC) > $@

where:

RAWCPP = /usr/bin/cpp
RAWCPPFLAGS = -undef -traditional
CPP_FILES_FLAGS = $(WCHAR32_FLAGS)
WCHAR32_FLAGS = -DWCHAR32=1
CPP_SED_MAGIC = $(SED) -e '/^\#  *[0-9][0-9]*  *.*$$/d' \
   -e '/^\#line  *[0-9][0-9]*  *.*$$/d' \
   -e '/^[ ]*XCOMM$$/s/XCOMM/\#/' \
   -e '/^[ 
]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/\#/' \
   -e '/^[ ]*XHASH/s/XHASH/\#/' \
   -e 's,X11_LOCALEDATADIR,$(X11_LOCALEDATADIR),g' \
   -e '/\...@\@$$/s/\...@\@$$/\\/'



What is the version of libX11?
Any warnings during configuration?
Can you post config.log config.status?



> 
> Thanks,
> Deniz
> 
> -Original Message-
> From: Jeremy Huddleston [mailto:jerem...@freedesktop.org] 
> Sent: Monday, November 22, 2010 7:13 PM
> To: Deniz Fer
> Cc: x...@freedesktop.org; Osman Karpuz
> Subject: Re: libX11 build error
> 
> A full build log would be helpful.
> 
> On Nov 22, 2010, at 07:57, Deniz Fer wrote:
> 
> > Hello,
> > 
> > I have a computer with CentOS 5.5 installed. My current Xorg version is 
> > attached and I want to upgrade to Release 7.5 (MPX being the main reason 
> > for the upgrade).
> > 
> > I have followed every instruction in the wiki. I used manuel build with 
> > Peter's instructions in FAQ, I have failed. I used jhbuild (after upgrading 
> > python and dbus), I have failed. Every time I have failed I get the same 
> > error which is "am_ET.UTF-8/XLC_LOCALE: command not found". It's a module 
> > in libX11, nls. I also tried to use -disable-xlocale with no success. After 
> > some research it appears that after configure, Makefile has an error in it 
> > self and it tries to use a command that is not present in my system.
> > 
> > Probably I'm missing some other upgrade but couldn't find what it might be. 
> > If anyone encountered this problem or something similar please help. Thank 
> > you for your time.
> > 
> > Kind regards,
> > Deniz FER
> > YALTES A.Ş.
> > Yenişehir Mah.
> > Lale Sk. No:8
> > 34891-Pendik İSTANBUL
> > Tel: +90 216 482 3060  x.241
> > Fax:+90 216 482 3051
> > 
> > ___
> > xorg@lists.freedesktop.org: X.Org support
> > Archives: http://lists.freedesktop.org/archives/xorg
> > Info: http://lists.freedesktop.org/mailman/listinfo/xorg
> > Your subscription address: jerem...@freedesktop.org
> 
> ___
> xorg@lists.freedesktop.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.freedesktop.org/mailman/listinfo/xorg
> Your subscription address: mems...@videotron.ca


signature.asc
Description: This is a digitally signed message part
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Re: libX11 build error

2010-11-22 Thread Dan Nicholson
2010/11/22 Deniz Fer :
> Hello,
>
>
>
> I have a computer with CentOS 5.5 installed. My current Xorg version is
> attached and I want to upgrade to Release 7.5 (MPX being the main reason for
> the upgrade).
>
>
>
> I have followed every instruction in the wiki. I used manuel build with
> Peter’s instructions in FAQ, I have failed. I used jhbuild (after upgrading
> python and dbus), I have failed. Every time I have failed I get the same
> error which is “am_ET.UTF-8/XLC_LOCALE: command not found”. It’s a module in
> libX11, nls. I also tried to use –disable-xlocale with no success. After
> some research it appears that after configure, Makefile has an error in it
> self and it tries to use a command that is not present in my system.
>
>
>
> Probably I’m missing some other upgrade but couldn’t find what it might be.
> If anyone encountered this problem or something similar please help. Thank
> you for your time.

Could you cd into the libX11 directory, run "make V=1" and then paste
the output here? We need to see the build error to know what went
wrong.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com

Re: libX11 build error

2010-11-22 Thread Jeremy Huddleston
A full build log would be helpful.

On Nov 22, 2010, at 07:57, Deniz Fer wrote:

> Hello,
> 
> I have a computer with CentOS 5.5 installed. My current Xorg version is 
> attached and I want to upgrade to Release 7.5 (MPX being the main reason for 
> the upgrade).
> 
> I have followed every instruction in the wiki. I used manuel build with 
> Peter's instructions in FAQ, I have failed. I used jhbuild (after upgrading 
> python and dbus), I have failed. Every time I have failed I get the same 
> error which is "am_ET.UTF-8/XLC_LOCALE: command not found". It's a module in 
> libX11, nls. I also tried to use -disable-xlocale with no success. After some 
> research it appears that after configure, Makefile has an error in it self 
> and it tries to use a command that is not present in my system.
> 
> Probably I'm missing some other upgrade but couldn't find what it might be. 
> If anyone encountered this problem or something similar please help. Thank 
> you for your time.
> 
> Kind regards,
> Deniz FER
> YALTES A.Ş.
> Yenişehir Mah.
> Lale Sk. No:8
> 34891-Pendik İSTANBUL
> Tel: +90 216 482 3060  x.241
> Fax:+90 216 482 3051
> 
> ___
> xorg@lists.freedesktop.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.freedesktop.org/mailman/listinfo/xorg
> Your subscription address: jerem...@freedesktop.org

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com