[CC] src/document/html/parser.o [CC] src/document/html/renderer.o In file included from ../../.././src/cache/cache.h:6, from renderer.c:13: ../../.././src/util/time.h:46: error: syntax error before "n" In file included from renderer.c:13: ../../.././src/cache/cache.h:47: error: syntax error before "off_t" ../../.././src/cache/cache.h:47: warning: no semicolon at end of struct or union ../../.././src/cache/cache.h:48: warning: type defaults to `int' in declaration of `data_size' ../../.././src/cache/cache.h:48: warning: data definition has no type or storage class ../../.././src/cache/cache.h:54: error: syntax error before ':' token ../../.././src/cache/cache.h:55: error: syntax error before ':' token ../../.././src/cache/cache.h:56: error: syntax error before ':' token ../../.././src/cache/cache.h:57: error: syntax error before ':' token ../../.././src/cache/cache.h:58: error: syntax error before ':' token ../../.././src/cache/cache.h:63: error: syntax error before ':' token ../../.././src/cache/cache.h:66: error: syntax error before '}' token ../../.././src/cache/cache.h:71: error: syntax error before "off_t" ../../.././src/cache/cache.h:71: warning: no semicolon at end of struct or union ../../.././src/cache/cache.h:72: warning: type defaults to `int' in declaration of `length' ../../.././src/cache/cache.h:72: warning: data definition has no type or storage class ../../.././src/cache/cache.h:73: error: syntax error before "real_length" ../../.././src/cache/cache.h:73: warning: type defaults to `int' in declaration of `real_length' ../../.././src/cache/cache.h:73: warning: data definition has no type or storage class ../../.././src/cache/cache.h:75: error: syntax error before '}' token ../../.././src/cache/cache.h:106: error: syntax error before "off_t" ../../.././src/cache/cache.h:116: error: syntax error before "off_t" ../../.././src/cache/cache.h:118: error: syntax error before "off_t" renderer.c: In function `html_special': renderer.c:1679: error: dereferencing pointer to incomplete type renderer.c:1680: error: dereferencing pointer to incomplete type renderer.c:1688: error: dereferencing pointer to incomplete type renderer.c:1691: error: dereferencing pointer to incomplete type renderer.c:1692: error: dereferencing pointer to incomplete type renderer.c: In function `render_html_document': renderer.c:1940: error: dereferencing pointer to incomplete type renderer.c:1940: error: dereferencing pointer to incomplete type renderer.c:1945: error: dereferencing pointer to incomplete type make[3]: *** [renderer.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/elinks-0.11.1/work/elinks-0.11.1/src/document/html' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/elinks-0.11.1/work/elinks-0.11.1/src/document' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/elinks-0.11.1/work/elinks-0.11.1/src' make: *** [all-recursive] Error 1 Portage 2.1_pre10-r5 (default-linux/x86/no-nptl/2.4, gcc-3.4.6, glibc-2.3.6-r4, 2.4.32-gentoo-r2 i686) ================================================================= System uname: 2.4.32-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0_pre19 dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks fixpackages metadata-transfer sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.math.bme.hu http://ftp.iasi.roedu.net/mirrors/gentoo.org/ http://gentoo.spb.ru/rsync" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl acpi alsa apache2 apm arts avi bcmath bitmap-fonts bzip2 bzlib cairo caps cli crypt ctype cups curl dio dri dvd eds emboss encode exif expat foomaticdb fortran ftp gd gif gpm gstreamer idn imlib innodb isdnlog javamail jpeg junit libg++ libwww mad mailwrapper mikmod mmap mmx mp3 mpeg ncurses ogg pam pcre pdflib png pppd quicktime readline reflection samba session slang sockets spell spl sse ssl sysvipc tcpd tidy tiff truetype truetype-fonts type1-fonts unicode vorbis x86 xml2 xmms xorg zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY version 0.11.0 compiles fine
Some things that might be worth trying out: 1) Edit www-client/elinks/files/elinks-0.11.1-time.patch: change +#include <unistd.h> to +#include <sys/types.h> Afterwards, regenerate the manifest file (ebuild elinks-0.11.1.ebuild digest) and see whether you can emerge elinks v0.11.1. 2) Upgrade to glibc-2.4-r3.
I am having the same error. I am a bit reluctant to upgrade to glibc 2.4 because benchmarks (such as bashmark) showed regressions on my AMD64 machine. [CC] src/document/html/parser.o [CC] src/document/html/renderer.o In file included from ../../.././src/cache/cache.h:6, from renderer.c:13: ../../.././src/util/time.h:46: error: syntax error before "n" In file included from renderer.c:13: ../../.././src/cache/cache.h:47: error: syntax error before "off_t" ../../.././src/cache/cache.h:47: warning: no semicolon at end of struct or union ../../.././src/cache/cache.h:48: warning: type defaults to `int' in declaration of `data_size' ../../.././src/cache/cache.h:48: warning: data definition has no type or storage class ../../.././src/cache/cache.h:54: error: syntax error before ':' token ../../.././src/cache/cache.h:55: error: syntax error before ':' token ../../.././src/cache/cache.h:56: error: syntax error before ':' token ../../.././src/cache/cache.h:57: error: syntax error before ':' token ../../.././src/cache/cache.h:58: error: syntax error before ':' token ../../.././src/cache/cache.h:63: error: syntax error before ':' token ../../.././src/cache/cache.h:66: error: syntax error before '}' token ../../.././src/cache/cache.h:71: error: syntax error before "off_t" ../../.././src/cache/cache.h:71: warning: no semicolon at end of struct or union ../../.././src/cache/cache.h:72: warning: type defaults to `int' in declaration of `length' ../../.././src/cache/cache.h:72: warning: data definition has no type or storage class ../../.././src/cache/cache.h:73: error: syntax error before "real_length" ../../.././src/cache/cache.h:73: warning: type defaults to `int' in declaration of `real_length' ../../.././src/cache/cache.h:73: warning: data definition has no type or storage class ../../.././src/cache/cache.h:75: error: syntax error before '}' token ../../.././src/cache/cache.h:106: error: syntax error before "off_t" ../../.././src/cache/cache.h:116: error: syntax error before "off_t" ../../.././src/cache/cache.h:118: error: syntax error before "off_t" renderer.c: In function `html_special': renderer.c:1679: error: dereferencing pointer to incomplete type renderer.c:1680: error: dereferencing pointer to incomplete type renderer.c:1688: error: dereferencing pointer to incomplete type renderer.c:1691: error: dereferencing pointer to incomplete type renderer.c:1692: error: dereferencing pointer to incomplete type renderer.c: In function `render_html_document': renderer.c:1940: error: dereferencing pointer to incomplete type renderer.c:1940: error: dereferencing pointer to incomplete type renderer.c:1945: error: dereferencing pointer to incomplete type make[3]: *** [renderer.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/elinks-0.11.1/work/elinks-0.11.1/src/document/html' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/elinks-0.11.1/work/elinks-0.11.1/src/document' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/elinks-0.11.1/work/elinks-0.11.1/src' make: *** [all-recursive] Error 1 !!! ERROR: www-client/elinks-0.11.1 failed. Call stack: ebuild.sh, line 1527: Called dyn_compile ebuild.sh, line 931: Called src_compile elinks-0.11.1.ebuild, line 91: Called die Ma3oxuct andrey # emerge --info Portage 2.1_rc1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-mm2 i686) ================================================================= System uname: 2.6.16-mm2 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.12.0_pre19 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -pipe -O3 -fforce-addr -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium4 -pipe -O3 -fforce-addr -ftracer -fvisibility-inlines-hidden" DISTDIR="/in/portage" FEATURES="autoconfig dislocks distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac aalib alsa amuled apache2 apm arts avi bash-completion bcmath berkdb bitmap-fonts bzip2 calender cbbd cdda cli crypt cups dba dlloader dri dvd dvdr dvdread eds emboss encode esd fame ffmpeg firefox flac foomaticdb fortran freetype gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal imap imlib ipv6 isdnlog java jpeg kde libg++ libwww lm_sensors mad matroska mikmod mjpeg motif mp3 mpeg ncurses network nls nogecko-sdk nptl nsplugin nvidia ogg openal opengl oss pam pcre pdflib perl png postgres pppd python qt quicktime readline real reflection remote ruby sdl session spell spl sse2 ssl tcltk tcpd tetex theora truetype truetype-fonts type1-fonts udev unicode vcd vorbis win32codecs wxwindows xml xml2 xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
"1) Edit www-client/elinks/files/elinks-0.11.1-time.patch: change +#include <unistd.h> to +#include <sys/types.h> Afterwards, regenerate the manifest file (ebuild elinks-0.11.1.ebuild digest) and see whether you can emerge elinks v0.11.1." This worked! :).
OK, I've replaced the patch in CVS with one that includes 'sys/types.h' instead of 'unistd.h'. Please reopen if you have any further problem with this.