libxmlpp-2.10.0-r1 install all include files in /usr/include/libxml++-2.6/libxml++/ with no symlink to /usr/include/libxml++/ The problem is that libxml++.h want to include /usr/include/libxml++/something.h ! Reproducible: Always Steps to Reproduce: 1. create en C++ program with #include <libxml++-2.6/libxml++/libxml++.h> 2. compile it with g++ 3. see error messages Portage 2.0.51.21 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r7 i686) ================================================================= System uname: 2.6.11-gentoo-r7 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.3 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks moo sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.belnet.be/packages/gentoo/" LANG="fr_BE@euro" LC_ALL="fr_BE@euro" LINGUAS="fr FR fr_FR" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts cdr crypt cups curl dba dvd eds emboss encode esd fam flac font-server foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 java jpeg kde kqemu libg++ libwww mad mikmod mmx motif mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline real samba sdl softmmu spell ssl svg svga tcpd tetex theora tiff truetype truetype-fonts type1-fonts v4l vorbis win32codecs xine xml xml2 xmms xv xvid zlib linguas_fr linguas_FR linguas_fr_FR userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
You shouldn't be including <libxml++-2.6/libxml++/libxml++.h> i bet, but <libxml++/libxml++.h> and let pkgconfig handle finding the includes. Also give the _real_ error message next time, that is easier for us.
Oops, didn't see the pkg-config... this works fine, thanks and sorry !