Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65799 - xorg-x11 fails to compile on ia64, can't find libpng
Summary: xorg-x11 fails to compile on ia64, can't find libpng
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: IA64 Linux
: High blocker
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-29 05:14 UTC by Jaime Alvaro Moreno
Modified: 2004-09-30 08:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of the beginning of compilation (xorg-x11-6.8.0-r1.txt,14.25 KB, text/plain)
2004-09-29 05:17 UTC, Jaime Alvaro Moreno
Details
xorg-x11-001-compilation-failed with xfree.eclass removed (xorg-x11-001-compilation-failed.txt,14.59 KB, text/plain)
2004-09-29 17:36 UTC, Jaime Alvaro Moreno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Alvaro Moreno 2004-09-29 05:14:29 UTC
Hi all,

I'm running a dual itanium2 box and when i try to emerge x11-base/xorg-x11-6.8.0-r1 i have an error in the patch process :

 * Excluding patches...
/usr/sbin/ebuild.sh: line 507: patch_exclude: command not found
/usr/sbin/ebuild.sh: line 510: patch_exclude: command not found
/usr/sbin/ebuild.sh: line 513: patch_exclude: command not found
/usr/sbin/ebuild.sh: line 514: patch_exclude: command not found
!s390
/usr/sbin/ebuild.sh: line 520: patch_exclude: command not found
/usr/sbin/ebuild.sh: line 525: patch_exclude: command not found
/usr/sbin/ebuild.sh: line 538: patch_exclude: command not found
 * Done excluding patches

and other during the step :

 * Setting up config/cf/host.def...
/usr/sbin/ebuild.sh: line 1: get_libdir: command not found
/usr/sbin/ebuild.sh: line 1: is_kernel: command not found
/usr/sbin/ebuild.sh: line 336: use_build: command not found
/usr/sbin/ebuild.sh: line 337: use_build: command not found
/usr/sbin/ebuild.sh: line 338: use_build: command not found
!debug
/usr/sbin/ebuild.sh: line 453: use_build: command not found
/usr/sbin/ebuild.sh: line 454: use_build: command not found
/usr/sbin/ebuild.sh: line 455: use_build: command not found
/usr/sbin/ebuild.sh: line 456: use_build: command not found
/usr/sbin/ebuild.sh: line 457: use_build: command not found
/usr/sbin/ebuild.sh: line 463: use_build: command not found
/usr/sbin/ebuild.sh: line 464: use_build: command not found
/usr/sbin/ebuild.sh: line 465: use_build: command not found
/usr/sbin/ebuild.sh: line 466: use_build: command not found
/usr/sbin/ebuild.sh: line 467: use_build: command not found
nls
/usr/sbin/ebuild.sh: line 471: use_build: command not found
/usr/sbin/ebuild.sh: line 472: use_build: command not found
/usr/sbin/ebuild.sh: line 473: use_build: command not found
/usr/sbin/ebuild.sh: line 474: use_build: command not found
/usr/sbin/ebuild.sh: line 478: use_build: command not found
/usr/sbin/ebuild.sh: line 479: use_build: command not found
/usr/sbin/ebuild.sh: line 481: use_build: command not found
/usr/sbin/ebuild.sh: line 483: use_build: command not found
ipv6
/usr/sbin/ebuild.sh: line 492: use_build: command not found
/usr/sbin/ebuild.sh: line 498: use_build: command not found                                                                                           [ ok ]

after all, the ebuild process fails and the last lines are :

ln -s ../../../programs/Xserver/hw/darwin/utils/dumpkeymap.man dumpkeymap.man
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/doc/man/misc'
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/doc/man'
including in doc/hardcopy...
make: *** hardcopy: No existe el fichero o el directorio.  Alto.
make: Entering an unknown directorymake: Leaving an unknown directorymake[2]: *** [includes] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/doc'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.8.0-r1 failed.
!!! Function src_compile, Line 626, Exitcode 2
!!! (no error message)

I'd attached the lines from the start point to the beginning of compilation.

If you need more data, please let me know, here is some info :
murdoc root # emerge info
Portage 2.0.50-r11 (default-ia64-1.4, gcc-3.3.2, glibc-2.3.2-r11, 2.6.5)
=================================================================
System uname: 2.6.5 ia64
Gentoo Base System version 1.4.16
distcc 2.13 ia64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="ia64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bitmap-fonts crypt cups encode foomaticdb gdbm gif gnome gpm gtk gtk2 ia64 imlib ipv6 javascript jpeg kde ldap libg++ libwww mikmod motif mysql ncurses nls nptl oggvorbis opengl oss pam pdf lib perl png python quicktime readline sdl slang spell ssl tcpd truetype xml2 xmms xprint xv zlib"

murdoc root # uname -a
Linux murdoc 2.6.5 #1 SMP Sun Apr 4 09:56:46 CEST 2004 ia64   GNU/Linux
Comment 1 Jaime Alvaro Moreno 2004-09-29 05:17:09 UTC
Created attachment 40699 [details]
output of the beginning of compilation

It's some info of the ebuild process
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-29 08:14:17 UTC
Do you have xfree.eclass in your overlay?
Comment 3 Jaime Alvaro Moreno 2004-09-29 17:34:12 UTC
Hi,

I've checked that and yes, i have "xfree.eclass" in mi overlay, but don't know how it gets there ...

I have moved it to "xfree.eclass.old" and rerun the ebuild process and i still get this line :

/usr/sbin/ebuild.sh: line 1: get_libdir: command not found

I don't know where this come from, i've looked at the eclass inherited but don't find nothing ...

After some time compiling xorg-x11 it fails with this error :

make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/programs/xrandr'
making all in programs/xcursorgen...
make[4]: Entering directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/programs/xcursorgen'
gcc -O2 -pipe -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -I../.. -I../../exports/include   -Dlinux -D__ia64__ -D_POSIX_C_SOURCE=199309L  -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                             -D_GNU_SOURCE                            -DFUNCPROTO=15 -DNARROWPROTO       -c -o xcursorgen.o xcursorgen.c
rm -f xcursorgen
gcc -o xcursorgen -O2 -pipe -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -L../../exports/lib   xcursorgen.o -lXcursor -lXrender -lXext -lX11 -lpng            -lm -lz      -Wl,-rpath-link,../../exports/lib
/usr/lib/gcc-lib/ia64-unknown-linux-gnu/3.3.2/../../../../ia64-unknown-linux-gnu/bin/ld: no se puede encontrar -lpng
collect2: ld devolvi
Comment 4 Jaime Alvaro Moreno 2004-09-29 17:34:12 UTC
Hi,

I've checked that and yes, i have "xfree.eclass" in mi overlay, but don't know how it gets there ...

I have moved it to "xfree.eclass.old" and rerun the ebuild process and i still get this line :

/usr/sbin/ebuild.sh: line 1: get_libdir: command not found

I don't know where this come from, i've looked at the eclass inherited but don't find nothing ...

After some time compiling xorg-x11 it fails with this error :

make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/programs/xrandr'
making all in programs/xcursorgen...
make[4]: Entering directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/programs/xcursorgen'
gcc -O2 -pipe -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -I../.. -I../../exports/include   -Dlinux -D__ia64__ -D_POSIX_C_SOURCE=199309L  -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                             -D_GNU_SOURCE                            -DFUNCPROTO=15 -DNARROWPROTO       -c -o xcursorgen.o xcursorgen.c
rm -f xcursorgen
gcc -o xcursorgen -O2 -pipe -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -L../../exports/lib   xcursorgen.o -lXcursor -lXrender -lXext -lX11 -lpng            -lm -lz      -Wl,-rpath-link,../../exports/lib
/usr/lib/gcc-lib/ia64-unknown-linux-gnu/3.3.2/../../../../ia64-unknown-linux-gnu/bin/ld: no se puede encontrar -lpng
collect2: ld devolvió el estado de salida 1
make[4]: *** [xcursorgen] Error 1
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/programs/xcursorgen'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r1/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.8.0-r1 failed.
!!! Function src_compile, Line 626, Exitcode 2
!!! (no error message) 

I suppose it's something about png libraries but i have them installed:

$ etcat -v libpng
[ Results for search key           : libpng ]
[ Candidate applications found : 2 ]

 Only printing found installed programs.

*  media-libs/libpng :
        [   ] 1.2.5-r8 (1.2)
        [  I] 1.2.7 (1.2)


If you need more info, please let me know.

I'd attached the output of the beginng process and the error.
Comment 5 Jaime Alvaro Moreno 2004-09-29 17:36:01 UTC
Created attachment 40739 [details]
xorg-x11-001-compilation-failed with xfree.eclass removed

This is the output with the xfree.eclass file moved to xfree.eclass.old
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-29 18:39:23 UTC
You prolly got xfree.eclass from using my freedesktop overlay.

get_libdir() is from eutils.eclass. Got that in your overlay by any chance, too?

You appear to be missing the PNG library, as you said.

`ls -l /usr/lib/libpng.so*`
Comment 7 Jaime Alvaro Moreno 2004-09-30 03:35:53 UTC
Hi,

I've solved the problem, as said it's a png libraries problem derived from the "eutils.eclass get_libdir command not found" problem, i've removed the eclass directory overlay to manage this and now it works.

I've recompiled the png libraries and now they are in their right place:

murdoc root # ls -l /usr/lib/libpng*
-rw-r--r--  1 root root 477852 sep 30 12:05 /usr/lib/libpng12.a
lrwxrwxrwx  1 root root     13 sep 30 12:05 /usr/lib/libpng12.so -> libpng12.so.0
lrwxrwxrwx  1 root root     19 sep 30 12:05 /usr/lib/libpng12.so.0 -> libpng12.so.0.1.2.7
-rwxr-xr-x  1 root root 391296 sep 30 12:05 /usr/lib/libpng12.so.0.1.2.7
lrwxrwxrwx  1 root root     10 sep 30 12:05 /usr/lib/libpng.a -> libpng12.a
lrwxrwxrwx  1 root root     11 sep 30 12:05 /usr/lib/libpng.so -> libpng.so.3
lrwxrwxrwx  1 root root     17 sep 30 12:05 /usr/lib/libpng.so.3 -> libpng.so.3.1.2.7
-rwxr-xr-x  1 root root 391296 sep 30 12:05 /usr/lib/libpng.so.3.1.2.7

After that, ebuild process finish without a problem.

Overlay on ia64 is a risky task in this early stage of it's development.

Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-30 08:15:44 UTC
Caused by overlay, so invalid.