LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   error in libX11 in blfs (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-in-libx11-in-blfs-942381/)

ankit0301 04-29-2012 05:46 AM

error in libX11 in blfs
 
by mistake i installed an older version of xproto now the following error in being shown how do i remove the older version


root [ /sources/libX11-1.4.4 ]# case $(basename "$PWD") in libXfont-[0-9]* ) ./configure $XORG_CONFIG --disable-devel-docs; ;; libXt-[0-9]* ) ./configure $XORG_CONFIG --with-appdefaultdir=/etc/X11/app-defaults; ;; * ) ./configure $XORG_CONFIG; ;; esac && make
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc option to accept ISO C99... -std=gnu99
checking whether __clang__ is declared... no
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking if gcc -std=gnu99 supports -Werror=attributes... no
checking whether to build functional specifications... yes
checking for xmlto... no
configure: WARNING: xmlto not found - documentation targets will be skipped
checking for xsltproc... /usr/bin/xsltproc
checking for X.Org SGML entities >= 1.8... no
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... yes
checking if /usr/bin/cpp requires -traditional... yes
checking for perl... /usr/bin/perl
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking return type of signal handlers... void
checking if Xtrans should support UNIX socket connections... yes
checking if Xtrans should support TCP socket connections... yes
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for getaddrinfo... yes
checking if IPv6 support should be built... yes
checking for struct sockaddr_in.sin_len... no
checking for socklen_t... yes
checking if Xtrans should support os-specific local connections... no
checking for authdes_seccreate... no
checking for authdes_create... no
checking if Secure RPC authentication ("SUN-DES-1") should be supported... no
checking what order to try transports in for local connections... LOCAL_TRANS,UNIX_TRANS,TCP_TRANS
checking if run-time linking is supported... checking for library containing dlopen... -ldl
checking for dlfcn.h... (cached) yes
yes
checking if loadable i18n module support should be enabled... no
checking if loadable Xcursor library support should be enabled... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for strtol... yes
checking for issetugid... no
checking for getresuid... yes
checking for shmat... yes
checking for launchd... no
checking for getpwuid_r in -lc... yes
checking for pthread_self in -lc... yes
checking for poll... yes
checking keysym definitions... /usr/local/include/X11/keysymdef.h /usr/local/include/X11/XF86keysym.h /usr/local/include/X11/Sunkeysym.h /usr/local/include/X11/DECkeysym.h /usr/local/include/X11/HPkeysym.h
checking if XLOCALEDIR support should be enabled... yes
checking for BIGFONT... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for nl_langinfo... yes
checking for X11... configure: error: Package requirements (xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92 kbproto inputproto) were not met:

Requested 'xproto >= 7.0.17' but version of Xproto is 7.0.10

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X11_CFLAGS
and X11_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Thank You

druuna 04-29-2012 07:33 AM

Hi,

Removing the older version might not be necessary.

Install the correct version. Most, if not all the older files will be overwritten with the newer version.

Hope this helps.

ankit0301 04-29-2012 08:49 AM

i tried by installing the newer version still the same problem persists

druuna 04-29-2012 09:53 AM

Hi,

xproto is part of the Xorg Protocol Headers chapter and version 7.0.22 is installed, so the correct one should be present. What does /usr/lib/pkgconfig/xproto.pc say?

Did you redo all of the Xorg Libraries chapter (remove all and start again with that chapter) after redoing Xorg Proto?

Running the ldconfig command might also be needed.

BTW: You do need to redo all the packages that depend on xproto (libXdmcp-1.1.0 / libXau / makedepend).

Hope this helps.

ankit0301 04-29-2012 01:19 PM

i did everything again and the error still persists the /usr/lib/pkgconfig/xproto.pc file reads as follows

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
includex11dir=${prefix}/include/X11

Name: Xproto
Description: Xproto headers
Version: 7.0.23
Cflags: -I${includedir}

druuna 04-29-2012 01:37 PM

Hi,

Xproto has the correct version, the problem must be elsewhere.

Are you still getting the exact same error as in your first post?

ankit0301 04-29-2012 01:39 PM

yes the error is exactly the same i did it again but its coming the same what should i do now

druuna 04-29-2012 02:23 PM

Hi,

Have you checked if your X environment is set correctly and if the packages are installed in the correct place?

It does depend on what you have chosen to use as XORG_PREFIX, but if you used /usr the xproto related packages should be installed in:
- /usr/include/X11/
- /usr/include/GL/
- /usr/lib/pkgconfig/

Check all the installed versions mentioned in the error line:
Code:

grep Version /usr/lib/pkgconfig/{xproto.pc,xextproto.pc,xtrans.pc,kbproto.pc,inputproto.pc}
Just to make sure: You did fully remove the build directories before reinstalling/retrying?

ankit0301 04-29-2012 02:58 PM

i have chosen XORG_PREFIX as /usr

the installed versions are as follows


root [ /sources]# grep Version /usr/lib/pkgconfig/{xproto.pc,xextproto.pc,xtrans.pc,kbproto.pc,inputproto.pc}
/usr/lib/pkgconfig/xproto.pc:Version: 7.0.23
/usr/lib/pkgconfig/xextproto.pc:Version: 7.2.1
grep: /usr/lib/pkgconfig/xtrans.pc: No such file or directory
/usr/lib/pkgconfig/kbproto.pc:Version: 1.0.6
/usr/lib/pkgconfig/inputproto.pc:Version: 2.2


i removed and then reinstalled all the packeges still the same error occurs

druuna 04-29-2012 03:14 PM

Hi,

I do see one missing package, which belongs to the Xorg Libraries (xtrans).

How are you trying to install the packages? Are you using the commands in the chapter on individual packages or the method used in the user notes?

If at all possible use the user nots.

the wget file contains a lot of packages, the order in which they are installed does matter (look in the wget file itself, that is the order used).

Hope this helps.

ankit0301 04-29-2012 09:43 PM

initially i was doing with individual packages but the i switched with wget still the same eroor is coming and after executing ldconfig for xtrans the following error comes


root [ /sources/lib/xtrans-1.2.6 ]# ldconfig
ldconfig: /usr/lib/libstdc++.so.6.0.16-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

druuna 04-30-2012 02:25 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4666371)
initially i was doing with individual packages but the i switched with wget still the same eroor is coming

It is obvious you made a mistake somewhere, but putting my finger on it seems to be harder then I thought.

I am curious about something: I took another hard look at the versions installed and you mention this:
Quote:

/usr/lib/pkgconfig/xproto.pc:Version: 7.0.23
23? Shouldn't that be 7.0.22? Which BLFS book are you following? It looks like you are not following this one (Version 2012-04-28), which uses xproto 7.0.22 (and maybe other versions then you are using).

Quote:

... after executing ldconfig for xtrans the following error comes
root [ /sources/lib/xtrans-1.2.6 ]# ldconfig
ldconfig: /usr/lib/libstdc++.so.6.0.16-gdb.py is not an ELF file - it has the wrong magic bytes at the start.
A search would have come up with this: ldconfig warnings vs. libstdc++.so.6.0.14-gdb.py


The only advise I can give at the moment:
- start over with chapter 24,
- make sure you use the correct version of the book,
- use the user notes wherever possible,
- make sure you use the correct package versions.

Hope this helps.

ankit0301 04-30-2012 03:19 AM

i did correct the xproto version and still the same thing happens now the version of the files are


root [ / ]# grep Version /usr/lib/pkgconfig/{xproto.pc,xextproto.pc,xtrans.pc,kbproto.pc,inputproto.pc}
/usr/lib/pkgconfig/xproto.pc:Version: 7.0.22
/usr/lib/pkgconfig/xextproto.pc:Version: 7.2.0
grep: /usr/lib/pkgconfig/xtrans.pc: No such file or directory
/usr/lib/pkgconfig/kbproto.pc:Version: 1.0.5
/usr/lib/pkgconfig/inputproto.pc:Version: 2.0.2


i have being following version 2012-04-24 and initialy downloading the files i got the wrong version i want to build gnome into the base LFS

druuna 04-30-2012 03:40 AM

Hi,

I do hope you take my advise from post #12.

Out of curiosity: Can you post/attach the 2 created logfiles:
- Xorg Protocol Headers -> proto-7.6-2-compile.log
- Xorg Libraries -> lib-7.6-2-compile.log

ankit0301 04-30-2012 04:11 AM

i found out the error there was another xproto.pc file residing in /usr/local/lib/pkgconfig
but now another new error occurs which is as follows




../../../include/X11/Xlibint.h:905:12: error: old-style parameter declarations in prototyped function definition
../../../include/X11/Xlibint.h:907:1: error: parameter name omitted
imCallbk.c:753:1: error: expected '{' at end of input
imCallbk.c:753:1: warning: control reaches end of non-void function [-Wreturn-type]
make[3]: *** [imCallbk.lo] Error 1
make[3]: Leaving directory `/sources/lib/libX11-1.4.4/modules/im/ximcp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/lib/libX11-1.4.4/modules/im'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/lib/libX11-1.4.4/modules'
make: *** [all-recursive] Error 1

druuna 04-30-2012 05:48 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4666542)
i found out the error there was another xproto.pc file residing in /usr/local/lib/pkgconfig

My first concern would be: What else is out of place? Are all/most packages done during Xorg Protocol Headers in their proper locations?

Quote:

but now another new error occurs which is as follows

../../../include/X11/Xlibint.h:905:12: error: old-style parameter declarations in prototyped function definition
../../../include/X11/Xlibint.h:907:1: error: parameter name omitted
imCallbk.c:753:1: error: expected '{' at end of input
imCallbk.c:753:1: warning: control reaches end of non-void function [-Wreturn-type]
make[3]: *** [imCallbk.lo] Error 1
make[3]: Leaving directory `/sources/lib/libX11-1.4.4/modules/im/ximcp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/lib/libX11-1.4.4/modules/im'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/lib/libX11-1.4.4/modules'
make: *** [all-recursive] Error 1
There's not enough info to work with.

BTW: Can you post what I asked for in my previous post.

ankit0301 04-30-2012 06:43 AM

2 Attachment(s)
i suppose that the packages are installed properly i did not get any error in protocols the error i got in library i am attaching the compile.log files for both. Thank You

druuna 04-30-2012 07:41 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4666634)
i suppose that the packages are installed properly i did not get any error in protocols

That is a dangerous assumption, especially when you have prove that one was installed in a different location then expected. Not getting an error doesn't mean it is installed in the correct location. You decide which X environment is being used, making a mistake or not setting the correct variables can cause this.

I asked about this in post #8, did you actually check all the packages? You're not to clear about that.

Quote:

i am attaching the compile.log files for both.
If I look at the lib_compile_log I see something strange: The compilation keeps going after an error is found, which should not happen, it should stop immediately (due to this command: bash -e

Another thing: How is it I still see this: checking for X11... configure: error: Package requirements (xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92 kbproto inputproto) You said in post #15 that this was fixed.

Although by now I'm not sure if the proto_compile_log is still relevant, there are no obvious/relevant errors.

ankit0301 04-30-2012 09:48 AM

the x environment variable are set as follows

root [ / ]# echo $XORG_PREFIX
/usr
root [ / ]# echo $XORG_CONFIG
--prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --localstatedir=/var
root [ / ]#


Quote:

Another thing: How is it I still see this: checking for X11... configure: error: Package requirements (xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92 kbproto inputproto) You said in post #15 that this was fixed.
i think this are the previously written as i didnot remove the log file.


Quote:

The compilation keeps going after an error is found, which should not happen, it should stop immediately (due to this command: bash -e
What do i do now?

druuna 04-30-2012 10:02 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4666799)
What do i do now?

The advise given in post #12 might be a good idea.

ankit0301 04-30-2012 10:23 AM

i did it i started again but still the problem reamins same.
one more thing after executing bash -e i think there should be a subshell but i don't find it here is the following correct

root [ / ]# bash -e
root [ / ]#


from what point should i start again so that all the errors are removed.
Thank You

druuna 05-01-2012 12:29 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4666824)
i did it i started again but still the problem reamins same.

You redid all of chapter 24 up to the Xorg Libs?

Quote:

one more thing after executing bash -e i think there should be a subshell but i don't find it here is the following correct

root [ / ]# bash -e
root [ / ]#
This looks correct. Remember: The sub-shell is started in the current shell, you won't see much of a difference. You can look at SHLVL (echo $SHLVL, it should increase by one if you start a sub-shell and decrease again after you exit.

Quote:

from what point should i start again so that all the errors are removed.
As mentioned in post #12: All of chapter 24.

Hope this helps.

ankit0301 05-01-2012 02:01 AM

i did upto Xorg lib but the error comes the same as i send the log file. I even did the chapter 24 2 to 3 times but still no progress

druuna 05-01-2012 02:18 AM

Hi,

Asked about this in post #18 (and #8):
- Did you check the installed packages?

How about the concern I mentioned in post #16:
- Did you remove the packages that are out of place (you know of at least one: xproto.pc in /usr/local/lib/pkgconfig/).
- Are more packages installed in /usr/local/ instead of /usr and did you remove those packages?
- Have you figured out why some packages have been installed in the wrong location?

And would you be so kind and answer _all_ the questions this time. You have a tendency to only answer part of my replies.

Hope this helps.

druuna 05-01-2012 04:01 AM

Hi again,

I'm pretty sure you made a mistake when you installed Xorg Protocol Headers. If I look at the following (from your original post):
Quote:

checking keysym definitions... /usr/local/include/X11/keysymdef.h /usr/local/include/X11/XF86keysym.h /usr/local/include/X11/Sunkeysym.h /usr/local/include/X11/DECkeysym.h /usr/local/include/X11/HPkeysym.h
I see that files are found in /usr/local, which is incorrect. These files are part of the protocol headers and should reside in /usr.

You might have correctly re-installed the Xorg Protocol Headers at a later stage (although I haven't seen any evidence to support this), but the files associated with the protocol headers in /usr/local should be removed. At the bottom of the Xorg Protocol Headers chapter (Contents) the correct directories are mentioned. Cross-reverence these with those in /usr/local.

Hope this helps.

ankit0301 05-01-2012 02:26 PM

Quote:

Did you check the installed packages?
how do i check the installed packages?

Quote:

Did you remove the packages that are out of place (you know of at least one: xproto.pc in /usr/local/lib/pkgconfig/)
there were other packages installed on /usr/local/lib/pkgconfig/ i removed every packages

Quote:

Are more packages installed in /usr/local/ instead of /usr and did you remove those packages?
yes there were more packages installed and now i removed the packages from /usr/local/include/X11, /usr/local/include/GL. Should i delete other files and directories in /usr/local?

Quote:

Have you figured out why some packages have been installed in the wrong location?
I think while installing xorg protocol for the first time i did not set XORG_PREFIX variable which caused the problem.

Quote:

And would you be so kind and answer _all_ the questions this time. You have a tendency to only answer part of my replies
I apologize for this.

Quote:

the files associated with the protocol headers in /usr/local should be removed.
should i delete the entire files present in /usr/local or only deleting from /usr/local/include/GL and /usr/local/include/X11 is enough?

druuna 05-02-2012 12:36 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4667830)
how do i check the installed packages?

As mentioned earlier: Check the bottom of each chapter (the Contents part), it mentions what is installed and where. If you made a mistake with the XORG_CONF setting you might need to cross-reference.
Quote:

there were other packages installed on /usr/local/lib/pkgconfig/ i removed every packages
All of them? That might not have been too smart. /usr/local/lib/pkgconfig/ is a valid location and depending on what you have installed previously (not talking about X) you might have thrown away valid files and created a possible problem. But without knowing what is/isn't installed yet it is hard to point out anything specific.
Quote:

yes there were more packages installed and now i removed the packages from /usr/local/include/X11, /usr/local/include/GL. Should i delete other files and directories in /usr/local?
You should only remove those files and/or directories that are related to X. The 2 directories you mention should be removed (/usr/local/include/X11, /usr/local/include/GL).
Quote:

I think while installing xorg protocol for the first time i did not set XORG_PREFIX variable which caused the problem.
You might want to include XOR_PREFIX in your profile, that way it is set every time you log in. (add export XORG_PREFIX="<PREFIX>" and export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --mandir=$XORG_PREFIX/share/man --localstatedir=/var" to root's .bashrc).
Quote:

should i delete the entire files present in /usr/local or only deleting from /usr/local/include/GL and /usr/local/include/X11 is enough?
You only remove that what is relevant, other packages are also installed there and those you need to keep. So you do not delete everything in /usr/local

Hope this helps.


All times are GMT -5. The time now is 05:02 AM.