compile of libusb-0.1.7-r1 on exec of "jade -t sgml - d ./website.dsl\#html ./manual.sgml" from makefile. Reproducible: Always Steps to Reproduce: 1. emerge libusb 2. 3. Actual Results: joule gtk+extra # emerge kde Calculating dependencies ...done! >>> emerge (1 of 9) dev-libs/libusb-0.1.7-r1 to / >>> md5 src_uri ;-) libusb-0.1.7.tar.gz >>> Unpacking source... >>> Unpacking libusb-0.1.7.tar.gz to /var/tmp/portage/libusb-0.1.7-r1/work >>> Source unpacked. doc creating cache ./config.cache checking for a BSD compatible install... /bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... gcc -E checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc -O3 -march=pentium3 -funroll-loops - fprefetch-loop-arrays -pipe ) works... yes checking whether the C compiler (gcc -O3 -march=pentium3 -funroll-loops - fprefetch-loop-arrays -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ld used by 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... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether -lc should be explicitly linked in... no creating libtool checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i686-pc-linux-gnu checking for what USB OS support... Linux checking for gcc... (cached) gcc checking whether the C compiler (gcc -O3 -march=pentium3 -funroll-loops - fprefetch-loop-arrays -pipe ) works... yes checking whether the C compiler (gcc -O3 -march=pentium3 -funroll-loops - fprefetch-loop-arrays -pipe ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... none needed checking for a BSD compatible install... /bin/install -c checking for ANSI C header files... yes checking for vprintf... yes checking size of char... 1 checking size of short... 2 checking size of long... 4 checking size of int... 4 checking size of void *... 4 checking size of long long... 8 checking for working const... yes checking whether byte ordering is bigendian... no checking for limits.h... yes checking for unistd.h... yes checking for values.h... yes checking for memmove... yes checking if we should build the documentation... yes checking for jade... jade updating cache ./config.cache creating ./config.status creating Makefile creating doc/Makefile creating libusb.spec creating libusb-config creating tests/Makefile creating README creating INSTALL.libusb creating usb.h creating config.h make all-recursive make[1]: Entering directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb-0.1.7' Making all in . make[2]: Entering directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb-0.1.7' /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -c usb.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -c usb.c -fPIC -DPIC -o .libs/usb.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -c usb.c -o usb.o >/dev/null 2>&1 mv -f .libs/usb.lo usb.lo /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -c error.c rm -f .libs/error.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -c error.c -fPIC -DPIC -o .libs/error.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -c error.c -o error.o >/dev/null 2>&1 mv -f .libs/error.lo error.lo /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -c descriptors.c rm -f .libs/descriptors.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -c descriptors.c -fPIC -DPIC - o .libs/descriptors.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -c descriptors.c -o descriptors.o >/dev/null 2>&1 mv -f .libs/descriptors.lo descriptors.lo /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -c linux.c rm -f .libs/linux.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -c linux.c -fPIC -DPIC -o .libs/linux.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -c linux.c -o linux.o >/dev/null 2>&1 mv -f .libs/linux.lo linux.lo /bin/sh ./libtool --mode=link gcc -o libusb.la -rpath /usr/lib -version-info 7:0:3 -release 0.1 -export-dynamic usb.lo error.lo descriptors.lo linux.lo rm -fr .libs/libusb.la .libs/libusb.* .libs/libusb-0.1.* gcc -shared usb.lo error.lo descriptors.lo linux.lo -Wl,-soname -Wl,libusb- 0.1.so.4 -o .libs/libusb-0.1.so.4.3.0 (cd .libs && rm -f libusb-0.1.so.4 && ln -s libusb-0.1.so.4.3.0 libusb-0.1.so.4) (cd .libs && rm -f libusb.so && ln -s libusb-0.1.so.4.3.0 libusb.so) ar cru .libs/libusb.a usb.o error.o descriptors.o linux.o ranlib .libs/libusb.a creating libusb.la (cd .libs && rm -f libusb.la && ln -s ../libusb.la libusb.la) make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb-0.1.7' Making all in tests make[2]: Entering directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb- 0.1.7/tests' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O3 -march=pentium3 -funroll-loops - fprefetch-loop-arrays -pipe -Wall -c testlibusb.c /bin/sh ../libtool --mode=link gcc -O3 -march=pentium3 -funroll-loops - fprefetch-loop-arrays -pipe -Wall -o testlibusb testlibusb.o ../libusb.la mkdir .libs gcc -O3 -march=pentium3 -funroll-loops -fprefetch-loop-arrays -pipe -Wall - o .libs/testlibusb testlibusb.o ../.libs/libusb.so creating testlibusb make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb- 0.1.7/tests' Making all in doc make[2]: Entering directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb- 0.1.7/doc' rm -rf html mkdir html jade -t sgml -d ./website.dsl\#html ./manual.sgml jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:53:65:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:54:8:E: reference to entity "ISOamsa" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:52:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:60:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:61:8:E: reference to entity "ISOamsb" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:59:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:67:60:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:68:8:E: reference to entity "ISOamsc" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:66:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:74:67:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:75:8:E: reference to entity "ISOamsn" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:73:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:81:58:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:82:8:E: reference to entity "ISOamso" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:80:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:88:59:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:89:8:E: reference to entity "ISOamsr" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:87:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:95:50:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:96:7:E: reference to entity "ISObox" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:94:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:102:46:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:103:8:E: reference to entity "ISOcyr1" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:101:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:109:50:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:110:8:E: reference to entity "ISOcyr2" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:108:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:116:47:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Diacritical Marks//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:117:7:E: reference to entity "ISOdia" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:115:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:123:43:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Greek Letters//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:124:8:E: reference to entity "ISOgrk1" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:122:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:130:46:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:131:8:E: reference to entity "ISOgrk2" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:129:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:137:43:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Greek Symbols//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:138:8:E: reference to entity "ISOgrk3" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:136:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:144:55:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:145:8:E: reference to entity "ISOgrk4" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:143:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:151:43:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 1//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:152:8:E: reference to entity "ISOlat1" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:150:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:158:43:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 2//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:159:8:E: reference to entity "ISOlat2" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:157:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:165:57:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:166:7:E: reference to entity "ISOnum" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:164:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:172:40:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Publishing//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:173:7:E: reference to entity "ISOpub" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:171:0: entity was defined here jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:179:47:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES General Technical//EN" jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:180:8:E: reference to entity "ISOtech" for which no system identifier could be generated jade:/usr/share/sgml/docbook/sgml-dtd-3.1/dbcent.mod:178:0: entity was defined here jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1no.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 1//EN" jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1no.dsl:3:5:E: reference to entity "lat1" for which no system identifier could be generated jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1no.dsl:2:0: entity was defined here jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ro.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 1//EN" jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ro.dsl:3:5:E: reference to entity "lat1" for which no system identifier could be generated jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ro.dsl:2:0: entity was defined here jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ro.dsl:4:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 2//EN" jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ro.dsl:5:5:E: reference to entity "lat2" for which no system identifier could be generated jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ro.dsl:4:0: entity was defined here jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ru.dsl:2:69:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ru.dsl:3:5:E: reference to entity "cyr1" for which no system identifier could be generated jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1ru.dsl:2:0: entity was defined here jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1sl.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 2//EN" jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1sl.dsl:3:5:E: reference to entity "lat2" for which no system identifier could be generated jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1sl.dsl:2:0: entity was defined here jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1sr.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 2//EN" jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1sr.dsl:3:5:E: reference to entity "lat2" for which no system identifier could be generated jade:/usr/share/sgml/docbook/dsssl-stylesheets- 1.77/html/../common/../common/dbl1sr.dsl:2:0: entity was defined here make[2]: *** [html/index.html] Error 1 make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb- 0.1.7/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libusb-0.1.7-r1/work/libusb-0.1.7' make: *** [all-recursive-am] Error 2 !!! ERROR: dev-libs/libusb-0.1.7-r1 failed. !!! Function src_compile, Line 26, Exitcode 2 !!! (no error message) Expected Results: emerged properly. Portage 2.0.49-r14 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.22-ac4) ================================================================= System uname: 2.4.22-ac4 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.11 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium3 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/ lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/ share/texmf/tex/platex/config/ /usr/share/config /var/qmail/control /var/qmail/a lias" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/gentoo-distfiles" FEATURES="cvs sandbox ccache buildpkg digest autoaddcvs" GENTOO_MIRRORS="http://gentoo:gentoo@gentoo.orbis-terrarum.net/ http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo ftp://gentoo.ccccom.com http://adelie.polymtl.ca/ http://gentoo.ccccom.com http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/gentoo-packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/gentoo-cvs/gentoo-x86" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 -3dfx X -Xaw3d -afs alsa arts -atlas berkdb -bonobo -canna -cjk -dga - dnd -dvb emacs -esd -evms2 -evo -freewnn -gb gnome gphoto2 gtk gtk2 gtkhtml - guile -icc -icc-pgo -informix -jack -joystick kde -kerberos -ladcca -lcms - leim -libgda -matrox -mbox motif mozilla -mpi -mule nas opengl oss qt quicktime -ruby sdl -voodoo3 wxwindows -xface xinerama xmms xv -zeo -3dnow aalib -acl acpi amd apache2 apm avi bots -cdr crypt cups curl directfb doc dvd encode ethereal expat fbcon -firebird flash foomaticdb -freetds gd gdbm -ggi gif -ginac gmtfull gmthigh gmtsuppl gmttria gpm gps imap imlib -innodb ipalias - ipv6 java jikes jpeg junit -ldap libg++ libwww lirc mad maildir mcal md5sum mikmod mmx mpeg mysql ncurses -nls -nptl oav -odbc offensive oggvorbis ospfapi pam pcap pda pdflib perl pic plotutils png pnp -postgres ppds python qhull readline samba -sasl scanner slang slp snmp socks5 spell sse ssl -svga tcpd tetex tiff truetype type1 ungif -usagi usb v4l vscan wmf xml xml2 zlib mozsvg mozcalendar mozaccess mozp3p mozxmlterm tpctlir"
hrmm, looks like it cant find the iso entities. could you please try remerging sgml-common and then remerging, it seems a catalog has gone odd somewhere.
robin acknowledged the fix on irc
I had the same problem, remerged sgml-common, but it didn't help. :-(
Found the solution in another thread: emerging =docbook-sgml-dtd-3.1-r1 helped (had only 4.0 before)! Maybe it should be added to dependencies?