I had problems with emerging "app-text/djvu-3.5.16" on my machine. You probably want to take a look at the forums.gentoo.org thread: <a href="http://forums.gentoo.org/viewtopic.php?p=3099771#3099771">http://forums.gentoo.org/viewtopic.php?p=3099771#3099771</a> concerning this bug. Eventually I got it working but I changed the .ebuild file.
Please, reopen with actual error messages and emerge --info (and fix if you have one). Don't refer to external links, it makes searching for duplicates impossible.
@@@@@@@@@@@@@@@@@@ Reproduced error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ senntb ~ # USE="threads" emerge -av djvu These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] app-text/djvu-3.5.16 -debug* +jpeg -kde +nls +nsplugin +qt +threads +tiff +xml 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 1) app-text/djvu-3.5.16 to / >>> md5 files ;-) djvu-3.5.12.ebuild >>> md5 files ;-) djvu-3.5.14.ebuild >>> md5 files ;-) djvu-3.5.14-r1.ebuild >>> md5 files ;-) djvu-3.5.16.ebuild >>> md5 files ;-) files/digest-djvu-3.5.12 >>> md5 files ;-) files/digest-djvu-3.5.14 >>> md5 files ;-) files/gentoo-acdesktop.m4 >>> md5 files ;-) files/digest-djvu-3.5.14-r1 >>> md5 files ;-) files/djvu-3.5.16-gcc41-hash.patch >>> md5 files ;-) files/digest-djvu-3.5.16 >>> md5 files ;-) files/djvu-3.5.16-gcc41.patch >>> md5 src_uri ;-) djvulibre-3.5.16.tar.gz >>> Unpacking source... >>> Unpacking djvulibre-3.5.16.tar.gz to /tmp/portage/djvu-3.5.16/work * Applying djvu-3.5.16-gcc41-hash.patch ... [ ok ] * Applying djvu-3.5.16-gcc41.patch ... [ ok ]config/acinclude.m4:53: warning: underquoted definition of AC_CHECK_CXX_OPT run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal config/acinclude.m4:74: warning: underquoted definition of AC_CXX_OPTIMIZE /usr/share/aclocal/wxwin.m4:36: warning: underquoted definition of AM_OPTIONS_WXCONFIG /usr/share/aclocal/wxwin.m4:59: warning: underquoted definition of AM_PATH_WXCONFIG /usr/share/aclocal/root.m4:14: warning: underquoted definition of HAVE_ROOT /usr/share/aclocal/root.m4:34: warning: underquoted definition of ROOT_PATH /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR /usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE/usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH /usr/share/aclocal/pstoedit.m4:7: warning: underquoted definition of AM_PATH_PSTOEDIT /usr/share/aclocal/nspr.m4:8: warning: underquoted definition of AM_PATH_NSPR /usr/share/aclocal/linc.m4:1: warning: underquoted definition of AM_PATH_LINC /usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD /usr/share/aclocal/libstroke.m4:29: warning: underquoted definition of smr_ARG_WITHLIB /usr/share/aclocal/libstroke.m4:77: warning: underquoted definition of smr_ARG_WITHINCLUDES /usr/share/aclocal/libstroke.m4:119: warning: underquoted definition of smr_CHECK_LIB /usr/share/aclocal/libgstroke.m4:29: warning: underquoted definition of smr_ARG_WITHLIB /usr/share/aclocal/libgstroke.m4:77: warning: underquoted definition of smr_ARG_WITHINCLUDES /usr/share/aclocal/libgstroke.m4:119: warning: underquoted definition of smr_CHECK_LIB /usr/share/aclocal/libglade.m4:7: warning: underquoted definition of AM_PATH_LIBGLADE /usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME /usr/share/aclocal/gtkextra.m4:8: warning: underquoted definition of AM_PATH_GTK_EXTRA /usr/share/aclocal/gtkDPS.m4:3: warning: underquoted definition of AM_PATH_GTK_DPS /usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF /usr/share/aclocal/autotrace.m4:7: warning: underquoted definition of AM_PATH_AUTOTRACE /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO You should update your `aclocal.m4' by running aclocal. Putting files in AC_CONFIG_AUX_DIR, `config'. >>> Source unpacked. * econf: updating djvulibre-3.5.16/config/config.guess with /usr/share/gnuconfig/config.guess * econf: updating djvulibre-3.5.16/config/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-desktopfiles --enable-xmltools --with-jpeg --with-tiff --enable-i18n --disable-debug --with-qt --enable-threads checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether make sets $(MAKE)... yes checking whether ln -s works... yes checking for rm... /bin/rm checking for ar... /usr/bin/ar checking for touch... /bin/touch checking for mkdir... /bin/mkdir checking for a BSD-compatible install... /bin/install -c checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether i686-pc-linux-gnu-g++ accepts -g... yes checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E checking for i686-pc-linux-gnu-g77... i686-pc-linux-gnu-g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether i686-pc-linux-gnu-g77 accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse nm output from i686-pc-linux-gnu-gcc object... ok checking for objdir... .libs checking for i686-pc-linux-gnu-ar... /usr/bin/ar checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking if i686-pc-linux-gnu-gcc static flag works... yes checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for i686-pc-linux-gnu-g77 option to produce PIC... -fPIC checking if i686-pc-linux-gnu-g77 PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-g77 supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-g77 linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed checking for i686-pc-linux-gnu-g++... (cached) i686-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... (cached) yes checking whether i686-pc-linux-gnu-g++ accepts -g... (cached) yes checking if i686-pc-linux-gnu-g++ accepts -Wall... yes checking if i686-pc-linux-gnu-g++ accepts -O3... yes checking if i686-pc-linux-gnu-g++ accepts -Wno-non-virtual-dtor... yes checking if i686-pc-linux-gnu-g++ accepts -mtune=i686... no checking if i686-pc-linux-gnu-g++ accepts -mcpu=i686... yes checking whether the compiler recognizes bool as a built-in type... yes checking whether the compiler supports exceptions... yes checking whether the compiler recognizes typename... yes checking whether the compiler comes with standard includes... yes checking whether the compiler implements namespaces... yes checking whether the compiler supports member templates... yes checking for sqrt in -lm... yes checking for libiconv in -liconv... no checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for stdint.h... (cached) yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking for X11/extensions/Xext.h... yes checking for wchar_t... no checking for long long int... yes checking for mbstate_t... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking for pid_t... yes checking for unistd.h... (cached) yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... no checking for working vfork... (cached) yes checking for wcrtomb... yes checking for iswspace... yes checking for putc_unlocked... yes checking for strerror... yes checking for vsnprintf... yes checking for gethostname... yes checking for iconv... yes checking for strftime... no checking for getpwuid... yes checking for jpeg library... yes setting JPEG_CFLAGS= setting JPEG_LIBS=-ljpeg checking for the libtiff library... yes setting TIFF_CFLAGS= setting TIFF_LIBS=-ltiff checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking if more special flags are required for pthreads... no checking threading model... pthread setting THREAD_CFLAGS=-pthread -DTHREADMODEL=POSIXTHREADS setting THREAD_LIBS= checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for Qt root directory... /usr/qt/3 checking for multithreaded Qt3 library... yes checking for moc... /usr/qt/3/bin/moc checking for uic... /usr/qt/3/bin/uic checking for lupdate... /usr/qt/3/bin/lupdate checking for lrelease... /usr/qt/3/bin/lrelease checking if a small Qt program runs... no configure: WARNING: Qt support is disabled configure: WARNING: Disabling compilation of djview. -------------------------------------------------------- *** The GUI portion of this package will not be compiled. *** This is probably not what you want. Chech the output *** of configure for warning messages. Read file INSTALL. *** Investigate options --with-qt and --enable-threads. -------------------------------------------------------- checking if i686-pc-linux-gnu-g++ has the LPR0 bug... no checking g++ version... head: `-1' option is obsolete; use `-n 1' since this will be removed in the future 3.3.6 configure: creating ./config.status config.status: creating Makefile config.status: creating libdjvu/Makefile config.status: creating tools/Makefile config.status: creating tools/jb2cmp/Makefile config.status: creating xmltools/Makefile config.status: creating gui/Makefile config.status: creating gui/desktop/Makefile config.status: creating gui/bin2cpp/Makefile config.status: creating gui/djview/Makefile config.status: creating gui/nsdejavu/Makefile config.status: creating i18n/Makefile config.status: creating i18n/ja/Makefile config.status: creating i18n/de/Makefile config.status: creating i18n/fr/Makefile config.status: creating config.h Configuration is done. Compile with command: $ make depend (optional!) $ make Then install the binaries in /usr with command: # make install for d in libdjvu tools xmltools i18n ; \ do ( cd $d && make all ) || exit ; done make[1]: Entering directory `/tmp/portage/djvu-3.5.16/work/djvulibre-3.5.16/libdjvu' make[1]: Circular Makefile.dep <- Makefile.dep dependency dropped. /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-g++ -march=athlon-xp -pipe -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobal.cpp mkdir .libs i686-pc-linux-gnu-g++ -march=athlon-xp -pipe -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobal.cpp -fPIC -DPIC -o .libs/DjVuGlobal.o /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-g++ -march=athlon-xp -pipe -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobalMemory.cpp i686-pc-linux-gnu-g++ -march=athlon-xp -pipe -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c DjVuGlobalMemory.cpp -fPIC -DPIC -o .libs/DjVuGlobalMemory.o /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-g++ -march=athlon-xp -pipe -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c GOS.cpp i686-pc-linux-gnu-g++ -march=athlon-xp -pipe -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -mcpu=i686 -pthread -DTHREADMODEL=POSIXTHREADS -c GOS.cpp -fPIC -DPIC -o .libs/GOS.o In file included from GOS.h:88, from GOS.cpp:66: GString.h:295: error: type specifier omitted for parameter `mbstate_t' GString.h:295: error: syntax error before `*' token GString.h:301: error: type specifier omitted for parameter `mbstate_t' GString.h:301: error: syntax error before `*' token GString.h:426: error: type specifier omitted for parameter `mbstate_t' GString.h:426: error: syntax error before `*' token make[1]: *** [GOS.lo] Error 1 make[1]: Leaving directory `/tmp/portage/djvu-3.5.16/work/djvulibre-3.5.16/libdjvu' make: *** [all] Error 2 !!! ERROR: app-text/djvu-3.5.16 failed. !!! Function src_compile, Line 71, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. senntb ~ # @@@@@@@@@@@@@@@@@ emerge --info output @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ senntb ~ # emerge --info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-suspend2-r1 i686) ================================================================= System uname: 2.6.14-suspend2-r1 i686 Mobile AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.6.14 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.12 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.6 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac aalib acl acpi adns afs alsa apm artworkextra audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdb cdr crypt cups curl dbcp dbus djvu dvb dvd dvdread dvi edl effects emacs emboss encode examples exif expat fam ffmpeg flac foomaticdb fortran fpx freetype gd gdbm ggi gif glut gmp gnome gnomedb gphoto2 graphviz gstreamer gtk gtk2 gtkhtml guile hal howl idn imagemagick imap imlib ipv6 java jbig jce jcs jpeg jpeg2k junit krb5 lcms ldap libg++ libwww live logrotate lzo mad matroska mikmod mime mmx mmxext mng mono mozcalendar mozdevelop mozilla mp3 mpeg mysql nas ncurses network nls nntp nptl nsplugin ogg oggvorbis openal opengl pam pcmcia pcre pdflib perl plotutils png python quicktime readline real ruby samba sasl screen sdl slang source speex spell sqlite srv sse ssl svg svga symlink t1lib tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wmf xine xml xml2 xosd xprint xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS senntb ~ #
In /usr/portage/app-text/djvu/djvu-3.5.16.ebuild I commented out these lines: # gcc 4.1 compilation fixes epatch ${FILESDIR}/${P}-gcc41-hash.patch || die epatch ${FILESDIR}/${P}-gcc41.patch || die with these: # gcc 4.1 compilation fixes #epatch ${FILESDIR}/${P}-gcc41-hash.patch || die #epatch ${FILESDIR}/${P}-gcc41.patch || die And then it worked. I.e. compiles, builds and works properly. I didn't test it thoroughly but at leas evince works and shows DJVU documents.
You forgot to reopen the bug.
Fixed in CVS. Thanks for reporting.