Using gcc 2.95.3, this happens during compilation... ... g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DHAVE_DNOTIFY -DHAVE_GETHOSTBYNAME_R -DQCA_STATIC -DXMPP_TEST -DHAVE_CONFIG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I../cutestuff/util -I../cutestuff/network -I../cutestuff/trayicon -I../cutestuff/idle -I../cutestuff/zip -I../cutestuff/dirwatch -I../cutestuff/openpgp -I../qca -I../iris/libidn -I../iris/include -I../iris/xmpp-core -I../iris/xmpp-im -I../iris/jabber -I../libpsi/iconset -I../libpsi/psiwidgets -I../libpsi/psipng -I/usr/qt/3/include -I.ui/ -Ioptions -I.moc/ -I/usr/qt/3/mkspecs/linux-g++ -o .obj/opt_chat.o options/opt_chat.cpp options/opt_chat.cpp:2: common.h: No such file or directory options/opt_application.cpp: In method `void OptionsTabApplication::applyOptions(Options *)': options/opt_application.cpp:85: invalid use of undefined type `struct Options' options/optionstab.h:9: forward declaration of `struct Options' options/opt_application.cpp:86: invalid use of undefined type `struct Options' options/optionstab.h:9: forward declaration of `struct Options' options/opt_application.cpp:87: invalid use of undefined type `struct Options' options/optionstab.h:9: forward declaration of `struct Options' ... etc. ... In opt_chap.cpp and friends, common.h is included as: #include "common.h" The current directory during compilation is one level up from the source file, and the same directory as common.h is in. So in summary, relevant directories: psi-0.9.1/src/options/ psi-0.9.1/src/ Reproducible: Always Steps to Reproduce: 1. Emerge psi 0.9.1 Actual Results: Compilation error. Expected Results: Proper compilation. Portage 2.0.49-r21 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r8, 2.6.0-test11) ================================================================= System uname: 2.6.0-test11 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.2.8 ACCEPT_KEYWORDS="x86" AUTOCLEAN="no" CFLAGS=" -march=i686 -mcpu=i686 -O3 -pipe -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS=" -march=i686 -mcpu=i686 -O3 -pipe -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://gentoo.linux.no/ http://gentoo.tiscali.nl/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb cdr cjk crypt cups encode esd gdbm gif gnome-libs gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mikmod mmx motif mozilla moznocompose moznoirc moznomail mozsvg mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv"
For some reason it works now. Could be my upgrade to autoconf 2.58-r1.