Build fails with message "fatal error: curl/types.h: No such file or directory." due to curl/types.h being removed in curl-7.21.7 (see bug # 376007). Reproducible: Always Steps to Reproduce: 1. try to compile with net-misc/curl-7.21.7 Actual Results: Comile fails with: i686-pc-linux-gnu-g++ -o nsUrlClassifierStreamUpdater.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include ../../../../c onfig/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS _NET -DIMPL_THEBES -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -I./../../build -I. -I. -I../../../../dist/include -I../../../../dist/include/nsprpub -I /usr/include/nspr -I/usr/include/nss -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privac y -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pipe -march=nocona -Wno-return-type -w -mno-avx -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/ns UrlClassifierStreamUpdater.pp nsUrlClassifierStreamUpdater.cpp In file included from http_upload.cc:36:0: ../../../../../../dist/system_wrappers/curl/types.h:3:29: fatal error: curl/types.h: No such file or directory compilation terminated. make[5]: *** [http_upload.o] Error 1 make[5]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/toolkit/crashreporter/google-breakpad/src/common/linux' make[4]: *** [libs] Error 2 make[4]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-2.0.1-r1/work/mozilla-2.0/toolkit/crashreporter' make[3]: *** [crashreporter_libs] Error 2 Expected Results: Build ok
Portage 2.1.10.7 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.13-r4, 2.6.39-gentoo-r3 i686) ================================================================= System uname: Linux-2.6.39-gentoo-r3-i686-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-gentoo-2.0.3 Timestamp of tree: Fri, 22 Jul 2011 22:00:01 +0000 app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.7, 2.7.2, 3.2 dev-util/cmake: 2.8.5-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.21.1 sys-devel/gcc: 4.3.6, 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.38 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="da_DK.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_GB da" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache apache2 apng arts asf avi bash-completion bluetooth bluray branding browserplugin bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus divx4linux dri dts dv dvb dvd dvdr dvdread eds emboss encode esd exif extras fam fame firefox flac fontconfig fortran fts3 gd gdbm gdu ghostscript gif gnutls gpm gtk iconv id3tag ithreads java jpeg kde kpathsea lame latin1 lcms ldap libnotify lm_sensors mad midi mikmod mjpeg mmx mmx2 mmxext mng modules mp3 mp4 mpeg mudflap mysql mythtv ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp oss pam pango pcre pdf perl php png policykit ppds pppd python qt qt3support qt4 quicktime readline scanner sdl semantic-desktop session smp spell sqlite sse ssl startup-notification subtitles svg sysfs tcpd threads tiff truetype type1 udev unicode usb usbi vorbis win32codecs x264 x86 xcb xinei xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB da" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vga ati radeon r300" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Confirm, same story.
Confirmed, too. http_upload.cc is part of the crash reporter, so there a chances that i'll work without that: USE="-crashreporter".
Bug 376001 is probably related.
I'd rather say it's related to or even a duplicate of bug 375899.
They're all related, the header was removed from 7.21.7, so every package using it must be fixed. The fix is pretty easy though, just remove the include, the header has been unused since 2004.
Created attachment 280867 [details, diff] curl-types.h.patch Patch.
Downgrading curl temporarily 'fixes' the bug. Haven't tried Ed's path though.
Patch works perfectly. It is basically the same thing upstream has proposed for firefox. If anyone cares to make the same patch for thunderbird and seamonkey, it would be great.
Patch works perfect!
+ 26 Jul 2011; Lars Wendler <polynomial-c@gentoo.org> + xulrunner-1.9.2.12.ebuild, xulrunner-1.9.2.17.ebuild, + xulrunner-1.9.2.18.ebuild, xulrunner-2.0.1-r1.ebuild: + Fixed compilation with >=curl-7.21.7 (bug #375899). +