I get the following error: gtk-doc: Compiling scanner mkdir .libs x86_64-pc-linux-gnu-gcc -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/freetype2 -O2 -march=nocona -pipe -Wall -c pango-scan.c -fPIC -DPIC -o .libs/pango-scan.o gtk-doc: Linking scanner x86_64-pc-linux-gnu-gcc -O2 -march=nocona -pipe -Wall -o .libs/pango-scan .libs/pango-scan.o ../pango/.libs/libpangocairo-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpng12.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libpixman-1.so /var/tmp/portage/x11-libs/pango-1.20.3/work/pango-1.20.3/pango/.libs/libpangoft2-1.0.so /var/tmp/portage/x11-libs/pango-1.20.3/work/pango-1.20.3/pango/.libs/libpango-1.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so -lm /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lz /usr/lib64/libexpat.so .libs/pango-scan.o: In function `main': pango-scan.c:(.text+0x1535): undefined reference to `pango_xft_font_get_type' pango-scan.c:(.text+0x1548): undefined reference to `pango_xft_font_map_get_type' pango-scan.c:(.text+0x155b): undefined reference to `pango_xft_renderer_get_type' collect2: ld returned 1 exit status Linking of scanner failed: make[2]: *** [scan-build.stamp] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-libs/pango-1.20.3/work/pango-1.20.3/docs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/pango-1.20.3/work/pango-1.20.3' make: *** [all] Error 2 * * ERROR: x11-libs/pango-1.20.3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2682: Called gnome2_src_compile * environment, line 2044: Called die * The specific snippet of code: * emake || die "compile failure" * The die message: * compile failure * Compiling with USE="-doc" works.
please include emerge --info and emerge -pv pango cairo
emerge --info Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64) ================================================================= System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz Timestamp of tree: Fri, 20 Jun 2008 14:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ABI="amd64" ACCEPT_KEYWORDS="amd64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="autoindex authz_host dir mime so" ARCH="amd64" ASFLAGS_x86="--32" AUTOCLEAN="yes" BROWSER="konqueror" CAMERAS="canon" CBUILD="x86_64-pc-linux-gnu" CDEFINE_amd64="__x86_64__" CDEFINE_x86="__i386__" CFLAGS="-O2 -march=nocona -pipe" CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" CHOST="x86_64-pc-linux-gnu" CHOST_amd64="x86_64-pc-linux-gnu" CHOST_x86="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" COLORTERM="" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=nocona -pipe" DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-oFCrHMEP5w,guid=979ef4da2e7f6fda8cc3ef77485cce70" DEFAULT_ABI="amd64" DESKTOP_SESSION="kde-3.5" DISPLAY=":0" DM_CONTROL="/var/run/xdmctl" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--tree --ask --verbose" EMERGE_WARNING_DELAY="10" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.imj.fr/pub/gentoo/" GPG_AGENT_INFO="/tmp/gpg-P2XuYW/S.gpg-agent:5258:1" GS_LIB="/home/martin/.fonts" GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/martin/.gtkrc-2.0:/home/martin/.kde3.5/share/config/gtkrc-2.0" GTK_RC_FILES="/etc/gtk/gtkrc:/home/martin/.gtkrc:/home/martin/.kde3.5/share/config/gtkrc" HOME="/root" INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-22" INPUT_DEVICES="keyboard mouse" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KDEDIR="/usr/kde/3.5" KDEDIRS="/usr:/usr/local:/usr/kde/3.5" KDE_FULL_SESSION="true" KDE_MULTIHEAD="false" KDE_SESSION_UID="1000" KERNEL="linux" KONSOLE_DCOP="DCOPRef(konsole-5724,konsole)" KONSOLE_DCOP_SESSION="DCOPRef(konsole-5724,session-2)" LANG="de_DE@euro" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" LDPATH="/usr/kde/3.5/lib:/usr/kde/3.5/lib64:/usr/kde/3.5/lib32:" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LIBDIR_amd64="lib64" LIBDIR_x86="lib32" LINGUAS="de" LOGNAME="root" LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:" MAKEOPTS="-j3" MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man" MULTILIB_ABIS="amd64 x86" MULTILIB_STRICT_DENY="64-bit.*shared object" MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib" MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)" OPENGL_PROFILE="nvidia" PAGER="/usr/bin/less" PATH="/sbin:/bin:/usr/sbin:/usr/bin" PILOTPORT="/dev/ttyUSB1" PKGDIR="/usr/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib64/pkgconfig" PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib64/portage/bin" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="warn error" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_IUSE="^(3dfx|adabas|alpha|alsa_cards_aoa|alsa_cards_aoa-fabric-layout|alsa_cards_aoa-onyx|alsa_cards_aoa-soundbus|alsa_cards_aoa-soundbus-i2s|alsa_cards_aoa-tas|alsa_cards_aoa-toonie|alsa_cards_armaaci|alsa_cards_at91-soc|alsa_cards_at91-soc-eti-b1-wm8731|alsa_cards_au1x00|alsa_cards_cs5535audio|alsa_cards_harmony|alsa_cards_powermac|alsa_cards_pxa2xx-i2sound|alsa_cards_pxa2xx-soc|alsa_cards_pxa2xx-soc-corgi|alsa_cards_pxa2xx-soc-poodle|alsa_cards_pxa2xx-soc-spitz|alsa_cards_pxa2xx-soc-tosa|alsa_cards_sa11xx-uda1341ts|alsa_cards_sun-amd7930|alsa_cards_sun-cs4231|alsa_cards_sun-dbri|altivec|amd64|aqua|arm|asm|birdstep|bmp|bmpx|bootstrap|build|capslib|clvm|cman|cmucl|coreaudio|crosscompile_opts_.*|dbmaker|doomsday|drac|elibc_.*|elibc_Darwin|elibc_DragonFly|elibc_FreeBSD|elibc_NetBSD|elibc_OpenBSD|elibc_glibc|elibc_uclibc|emf|empress|empress-bcs|esoob|fdftk|filepro|firebird|frontbase|gamess|gcc64|gulm|hppa|ia64|ibm|infopipe|informix|ingres|kernel_.*|kernel_Darwin|kernel_FreeBSD|kernel_linux|lcd_devices_svga|m68k|macbook|mips|multilib|n32|n64|osp|pam_console|pbbuttonsd|pfpro|plugin|ppc|ppc64|ppcsha1|psyco|pvm|real|s390|selinux|sh|solid|sparc|sparc-fbsd|svga|sybase|sybase-ct|tcc|uclibc|ultra1|userland_.*|userland_BSD|userland_Darwin|userland_GNU|video_cards_geode|video_cards_i740|video_cards_impact|video_cards_imstt|video_cards_newport|video_cards_nsc|video_cards_sunbw2|video_cards_suncg14|video_cards_suncg3|video_cards_suncg6|video_cards_sunffb|video_cards_sunleo|video_cards_suntcx|video_cards_vermilion|video_cards_xgi|vidix|vis|win32codecs|x86|x86-fbsd|xmms|yellownet)$" PORTAGE_NICENESS="10" PORTAGE_PYM_PATH="/usr/lib64/portage/pym" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="3" PORTAGE_TMPDIR="/var/tmp" PORTAGE_USE="amd64 elibc_glibc kernel_linux userland_GNU" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" PORT_LOGDIR="/var/log/portage" PYTHONDOCS="/usr/share/doc/python-docs-2.4.4/html/lib" PYTHONPATH="/usr/lib64/portage/pym" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}" ROOT="/" ROOTPATH="/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/qt/3/bin:/usr/games/bin" RPMDIR="/usr/portage/rpm" SANE_CONFIG_DIR="/etc/sane.d" SESSION_MANAGER="local/desktop:/tmp/.ICE-unix/5698" SHELL="/bin/bash" SHLVL="3" STAGE1_USE="nptl nptlonly unicode" SYMLINK_LIB="yes" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" TERM="xterm" USB_DEVFS_PATH="/dev/bus/usb" USE="acl acpi alsa amd64 arts cairo cdr cli cracklib cups dbus dri dvd dvdr dvdread emboss encode evo fam firefox gif gstreamer hal iconv ieee1394 isdnlog jpeg kde mad midi mikmod mmx mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pcre pdf png pppd qt3support quicktime readline reflection session spl sse sse2 ssl svg tiff truetype vorbis xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="autoindex authz_host dir mime so" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia" USER="root" USERLAND="GNU" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" VIDEO_CARDS="nvidia" WINDOWID="31457285" XCURSOR_THEME="default" XDG_CONFIG_DIRS="/usr/kde/3.5/etc/xdg" XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share" XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic,auto" _="/usr/bin/emerge" emerge -pv pango cairo These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] x11-libs/pango-1.20.3 USE="doc* -X -debug" 0 kB [ebuild R ] x11-libs/cairo-1.6.4 USE="X opengl svg -debug -directfb -doc -glitz -test -xcb" 0 kB Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
Btw, now the same happened on my laptop, which is x86, so it doesn't seem to be platform-dependend.
The error actually shows up when emerge-ing without USE flag X. When using USE="doc X" emerge -1 =x11-libs/pango-1.20.3 it works.
@gnome: after a quick look, this is going to be tough to fix. USE=doc is handled in the eclass, in such a way that you can't place extra conditions on it in the ebuild without overriding src_compile. One possibility is to remove the X use flag entirely, and just require X. What's the use case for pango without X?
> One possibility is to remove the X use flag entirely, and just require X. > What's the use case for pango without X? I don't know, but it seems that it was just introduced with the ebuild for pango-1.20.0.
Isn't this a bug for upstream?
(In reply to comment #5) > @gnome: after a quick look, this is going to be tough to fix. USE=doc is > handled in the eclass, in such a way that you can't place extra conditions on > it in the ebuild without overriding src_compile. > > One possibility is to remove the X use flag entirely, and just require X. > What's the use case for pango without X? Ask compnerd, he added it. I think GTK+ on DirectFB. That said, if this controls building or not building of pangox, then I'm in favour of working towards not needing it being installed (ever) - not so sure about optionality here. (pangox is kind of deprecated, it's a separate .so providing some pango_xft_ stuff, iirc, while pango high level API should be used, and if really necessary then the new pangocairo backend API, but I haven't double-checked yet so don't take this as a fact)
Note that by now for example x11-wm/openbox has a built_with_use check for having USE=X on pango, because it uses pango_xft backend symbols from libpangox directly. i got it changed to have a --missing true to not break if we change our mind though. I'd like to see or produce some analysis on how many things actually use pango_xft functions. That can be easily retrieved from nm, readelf, objdump or similar tools. Maybe if it can be done to most things to not need these anymore, we can get rid of it completely. I'll consult with Behdad (upstream maintainer) on the status of pangox at some later date also. (In reply to comment #7) > Isn't this a bug for upstream? It probably is worth making sure upstream has been notifying about this as well, yes. But I personally like the approach of bugs first going through Gentoo Bugzilla until we can reasonable keep up with it, to help upstream have best reports. Other distribution maintainers do forwarding themselves as well, but the difference there is that many of them are paid to do that as part of their job.
#5: another use case would be graphviz running on a headless machine, generating graphs via cairo. graphviz with USE="cairo" requires pango. On another note, emerging pango with USE="-X" fails with a missing xft dependency...
*** Bug 241274 has been marked as a duplicate of this bug. ***
pango-1.20 series left the tree. For any other bugs, please remember to fill separate issues.