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 |
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. |
i tried by installing the newer version still the same problem persists
|
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. |
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} |
Hi,
Xproto has the correct version, the problem must be elsewhere. Are you still getting the exact same error as in your first post? |
yes the error is exactly the same i did it again but its coming the same what should i do now
|
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} |
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 |
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. |
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. |
Hi,
Quote:
I am curious about something: I took another hard look at the versions installed and you mention this: Quote:
Quote:
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. |
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 |
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 |
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 |
All times are GMT -5. The time now is 07:17 PM. |