Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448022 - www-client/firefox-10.0.11 - file_util.cc:228:35: error: 'ftruncate' was not declared in this scope
Summary: www-client/firefox-10.0.11 - file_util.cc:228:35: error: 'ftruncate' was not ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-20 22:01 UTC by Dmitry Potapov
Modified: 2012-12-21 18:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
add '#include <unistd.h>' to files which miss it (file_448022.txt,69 bytes, text/plain)
2012-12-20 23:41 UTC, Dmitry Potapov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Potapov 2012-12-20 22:01:33 UTC
www-client/firefox-10.0.11 emerge failed because "file_util.cc" references "ftruncate" but doesn't include "unistd.h" where this function is declared

Reproducible: Always

Steps to Reproduce:
emerge "=www-client/firefox-10.0.11"
Actual Results:  
emerge fails

Expected Results:  
emerge success

Portage 2.1.11.31 (!/etc/portage/ncursed-desktop, gcc-4.7.2, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P7350_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Thu, 20 Dec 2012 20:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo reinvented-wheels ncursed-desktop
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe -march=native -fno-stack-protector -U_FORTIFY_SOURCE -finline-functions -floop-interchange -floop-strip-mine -floop-block -ftree-loop-im -ftree-loop-ivcanon -fivopts"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPPFLAGS="-O2 -pipe -O2 -pipe -march=native -fno-stack-protector -U_FORTIFY_SOURCE -finline-functions -floop-interchange -floop-strip-mine -floop-block -ftree-loop-im -ftree-loop-ivcanon -fivopts"
CXXFLAGS="-O2 -pipe -O2 -pipe -march=native -fno-stack-protector -U_FORTIFY_SOURCE -finline-functions -floop-interchange -floop-strip-mine -floop-block -ftree-loop-im -ftree-loop-ivcanon -fivopts"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O2"
MAKEOPTS=" -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/reinvented-wheels /var/lib/layman/ncursed-desktop"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac alsa amd64 bluetooth branding cairo cdda cdr consolekit cscope djvu dts dvd dvdr emboss encode exif fam firefox flac fontconfig gif gpg jpeg lcms ldap mad minimal mmx mng mp3 mp4 mpeg multilib ncurses nptl ogg pango pdf png policykit ppds qt3support sasl savedconfig spell sse sse2 sse4 sse4_1 ssl ssse3 svg symlink tiff udev unicode usb vim-syntax vorbis x264 xcb xml xvid" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev evdev keyboard mouse synaptics joystick" KERNEL="linux" LINGUAS="en ru ru_RU hy hy_AM" PYTHON_TARGETS="python2_7 python3_2" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Dmitry Potapov 2012-12-20 23:41:49 UTC
Created attachment 332854 [details]
add '#include <unistd.h>' to files which miss it
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-21 17:31:10 UTC
Comment on attachment 332854 [details]
add '#include <unistd.h>' to files which miss it

Something went wrong here.
Comment 3 Jory A. Pratt gentoo-dev 2012-12-21 18:55:10 UTC
firefox-17 esr is just around the corner, if you want to use the latest compiler on stable you will have to deal with the issues.