In gentoo prefix, unable to emerge freetype-2.4.1 /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io' /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io' Full output ../freetype-2.4.1/builds/unix/libtool --mode=link i686-pc-linux-gnu-gcc -Wl,-O1 -lz -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftdiff /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftdiff.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/libfreetype.la /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -R/usr/lib -L/usr/lib -lX11 -lm ../freetype-2.4.1/builds/unix/libtool --mode=link i686-pc-linux-gnu-gcc -Wl,-O1 -lz -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgamma /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgamma.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/libfreetype.la /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -R/usr/lib -L/usr/lib -lX11 -lm libtool: link: i686-pc-linux-gnu-gcc -Wl,-O1 -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/.libs/ftdiff /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftdiff.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/.libs/libfreetype.so -lz /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -L/usr/lib -lX11 -lm -Wl,-rpath -Wl,/local/export/scratch/gentoo/usr/lib -Wl,-rpath -Wl,/usr/lib ../freetype-2.4.1/builds/unix/libtool --mode=link i686-pc-linux-gnu-gcc -Wl,-O1 -lz -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgrid /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgrid.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/libfreetype.la /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -R/usr/lib -L/usr/lib -lX11 -lm /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io' /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io' collect2: ld returned 1 exit status make: *** [/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftdiff] Error 1 make: *** Waiting for unfinished jobs.... libtool: link: i686-pc-linux-gnu-gcc -Wl,-O1 -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/.libs/ftgamma /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgamma.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/.libs/libfreetype.so -lz /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -L/usr/lib -lX11 -lm -Wl,-rpath -Wl,/local/export/scratch/gentoo/usr/lib -Wl,-rpath -Wl,/usr/lib /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io' /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io' collect2: ld returned 1 exit status make: *** [/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgamma] Error 1 libtool: link: i686-pc-linux-gnu-gcc -Wl,-O1 -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/.libs/ftgrid /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgrid.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/.libs/libfreetype.so -lz /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -L/usr/lib -lX11 -lm -Wl,-rpath -Wl,/local/export/scratch/gentoo/usr/lib -Wl,-rpath -Wl,/usr/lib /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io' /usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io' collect2: ld returned 1 exit status make: *** [/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgrid] Error 1 * ERROR: media-libs/freetype-2.4.1 failed: * * Call stack: * ebuild.sh, line 53: Called call-ebuildshell 'src_compile' * environment, line 602: Called src_compile * environment, line 3302: Called die * The specific snippet of code: * emake || die "ft2demos emake failed"; * * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1', * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'. * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'. * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'. * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1' * Messages for package media-libs/freetype-2.4.1: * ERROR: media-libs/freetype-2.4.1 failed: * ft2demos emake failed * * Call stack: * ebuild.sh, line 53: Called call-ebuildshell 'src_compile' * environment, line 602: Called src_compile * environment, line 3302: Called die * The specific snippet of code: * emake || die "ft2demos emake failed"; * * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1', * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'. * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'. * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'. * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1' * ft2demos emake failed Reproducible: Always
Change to gentoo/alt
Created attachment 249156 [details] emerge --info =media-libs/freetype-2.4.1
Created attachment 249158 [details] emerge -pqv =media-libs/freetype-2.4.1
Created attachment 249160 [details] build.log
Created attachment 249162 [details] environment
The libxcb-xlib.so issue is very old: http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml But not sure how that applies to Gentoo prefix, so moving to maintainers ->
> But not sure how that applies to Gentoo prefix, so moving to maintainers -> I think I have found a important part clue: It is not using the correct path I tried: $ ls $EPREFIX/usr/lib/libxcb-xlib.so.0 ls: cannot access [...] No such file or directory $ ls /usr/lib/libxcb-xlib.so.0 /usr/lib/libxcb-xlib.so.0@ Which means that it trying to use the system copy of libxcb-xlib and not the "gentoo prefix" version.
My guess is that there is "prefix" problem when building this package. My error stems from that this package try to use the systems /usr/lib folder instead of the prefix one. I found this in one of the readme files* X11 issues ---------- When building the demos, the build system tries to detect your X11 path by looking for the patterns `X11/bin', `X11R6/bin', and `X11R5/bin' in your current path (in this order). If no X11 path is found, some demo programs will not be able to display graphics and will fail. If you have X11 in an unusual place, use the X11_PATH make variable. More than one directory, if necessary, must be separated with spaces. Example: make X11_PATH="/usr/openwin /usr/local/X11R6" If you don't have X11 at all, fix the definition of the EXES variable as described in the top-level Makefile. * located here: $EPREFIX/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1
YES!! I found a solution. By export X11_PATH="$EPREFIX/usr/lib" I manage to build this package correctly.
I tried to fix this following your directions in the ebuild. Can you try in an hour from now or so to see if it now really works for you?
(In reply to comment #10) > I tried to fix this following your directions in the ebuild. Can you try in an > hour from now or so to see if it now really works for you? > Thanks for taking the time to work this out so quickly. However, the new ebuild did not work for me. This is the error message, if you need the rest (logs) let me know. But it seems like there is some sort of syntax error. * Messages for package media-libs/freetype-2.4.1: * ERROR: media-libs/freetype-2.4.1 failed: * Aborting due to QA concerns: invalid shebangs found * * Call stack: * misc-functions.sh, line 1697: Called install_qa_check * misc-functions.sh, line 210: Called install_qa_check_prefix * misc-functions.sh, line 858: Called die * The specific snippet of code: * die "Aborting due to QA concerns: invalid shebangs found"
There should be a couple more lines that tell us _what_ the invalid shebang is.
that's actually portage's fault, so the package builds now.
(In reply to comment #13) > that's actually portage's fault, so the package builds now. > I sync and tried again. This is what I get. libtool: install: /local/export/scratch/gentoo/usr/bin/install -m 755 ../ft2demos-2.4.1/bin/.libs/ftvalid /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/image/local/export/scratch/gentoo//usr/bin/ftvalid libtool: install: /local/export/scratch/gentoo/usr/bin/install -m 755 ../ft2demos-2.4.1/bin/.libs/ftview /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/image/local/export/scratch/gentoo//usr/bin/ftview * ERROR: media-libs/freetype-2.4.1 failed: * Aborting due to QA concerns: invalid shebangs found * * Call stack: * misc-functions.sh, line 1697: Called install_qa_check * misc-functions.sh, line 210: Called install_qa_check_prefix * misc-functions.sh, line 858: Called die * The specific snippet of code: * die "Aborting due to QA concerns: invalid shebangs found" * * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1', * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'. * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'. * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'. * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1' * Messages for package media-libs/freetype-2.4.1: * ERROR: media-libs/freetype-2.4.1 failed: * Aborting due to QA concerns: invalid shebangs found * * Call stack: * misc-functions.sh, line 1697: Called install_qa_check * misc-functions.sh, line 210: Called install_qa_check_prefix * misc-functions.sh, line 858: Called die * The specific snippet of code: * die "Aborting due to QA concerns: invalid shebangs found" * * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1', * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'. * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'. * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'. * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1'
Created attachment 253147 [details] shebangs emerge --info =media-libs/freetype-2.4.1
Created attachment 253149 [details] shebangs emerge -pqv =media-libs/freetype-2.4.1
Created attachment 253151 [details] shebangs build.log
Created attachment 253153 [details] shebangs environment
please try to downgrade your portage to 17133
(In reply to comment #19) > please try to downgrade your portage to 17133 > That did the trick. Thank you for the help and the fix of this issue.