LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 04-29-2012, 05:46 AM   #1
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Rep: Reputation: Disabled
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
 
Old 04-29-2012, 07:33 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
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.
 
Old 04-29-2012, 08:49 AM   #3
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
i tried by installing the newer version still the same problem persists
 
Old 04-29-2012, 09:53 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
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.
 
Old 04-29-2012, 01:19 PM   #5
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
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}
 
Old 04-29-2012, 01:37 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

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

Are you still getting the exact same error as in your first post?
 
Old 04-29-2012, 01:39 PM   #7
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
yes the error is exactly the same i did it again but its coming the same what should i do now

Last edited by ankit0301; 04-29-2012 at 01:44 PM.
 
Old 04-29-2012, 02:23 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
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?

Last edited by druuna; 04-29-2012 at 02:38 PM. Reason: fixed weird sentence
 
Old 04-29-2012, 02:58 PM   #9
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
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

Last edited by ankit0301; 04-29-2012 at 03:00 PM.
 
Old 04-29-2012, 03:14 PM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
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.
 
Old 04-29-2012, 09:43 PM   #11
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-30-2012, 02:25 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,
Quote:
Originally Posted by ankit0301 View Post
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.
 
Old 04-30-2012, 03:19 AM   #13
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-30-2012, 03:40 AM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
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
 
Old 04-30-2012, 04:11 AM   #15
ankit0301
Member
 
Registered: Apr 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply

Tags
blfs, debian, libx11, xproto


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofs-5.0.5 from BLFS Error BrandonJ Linux From Scratch 7 06-08-2011 12:22 PM
[SOLVED] pure 32 bit LFS Version SVN-20110110 trouble installing libX11 in BLFS mcamp73 Linux From Scratch 4 01-22-2011 03:42 AM
install libX11 error! (xproto) totallybored Linux - Software 6 11-18-2010 03:46 AM
error: *** libX11 not found. when installing GTK+-2.18.7 Prisp Linux - Newbie 4 02-23-2010 08:39 AM
BLFS Libxml2-2.6.20 compile error hbinded Linux From Scratch 1 05-31-2006 10:13 AM


All times are GMT -5. The time now is 11:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration