Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398597 - dev-libs/libmemcached-0.50 emerge failed with error integer constant is too large for ‘long’ type
Summary: dev-libs/libmemcached-0.50 emerge failed with error integer constant is too l...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 03:49 UTC by Wang Bin
Modified: 2012-11-20 05:55 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,21.80 KB, text/plain)
2012-01-12 03:50 UTC, Wang Bin
Details
Patch for clients/memcapable.cc from https://code.launchpad.net/~keerthi-shetty/libmemcached/fixmemcapable/+merge/60856 (memcapable.cc.patch,967 bytes, patch)
2012-01-12 03:54 UTC, Wang Bin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wang Bin 2012-01-12 03:49:27 UTC
emerge libmemcached, got following error:

clients/memcapable.cc:658: error: integer constant is too large for ‘long’ type
clients/memcapable.cc:728: error: integer constant is too large for ‘long’ typeclients/memcapable.cc:787: error: integer constant is too large for ‘long’ type
make[1]: *** [clients/memcapable.o] Error 1
make[1]: Leaving directory `/Users/wangbin/Gentoo/var/tmp/portage/dev-libs/libmemcached-0.50/work/libmemcached-0.50'
make: *** [all] Error 2
emake failed
 * ERROR: dev-libs/libmemcached-0.50 failed (compile phase): *   (no error message) *  * Call stack: *     ebuild.sh, line  85:  Called call-ebuildshell 'src_compile' *   environment, line 326:  Called src_compile *   environment, line 2148:  Called die * The specific snippet of code:
 *       emake || die; *  * If you need support, post the output of 'emerge --info =dev-libs/libmemcached-0.50',
 * the complete build log and the output of 'emerge -pqv =dev-libs/libmemcached-0.50'.
 * The complete build log is located at '/Users/wangbin/Gentoo/var/tmp/portage/dev-libs/libmemcached-0.50/temp/build.log'.
 * The ebuild environment file is located at '/Users/wangbin/Gentoo/var/tmp/portage/dev-libs/libmemcached-0.50/temp/environment'.
 * S: '/Users/wangbin/Gentoo/var/tmp/portage/dev-libs/libmemcached-0.50/work/libmemcached-0.50'

Reproducible: Always




Portage 2.2.01.20062-prefix (prefix/darwin/macos/10.7/x86, gcc-4.2.1, unavailable, 11.2.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-11.2.0-x86_64-i386-32bit
Timestamp of tree: Thu, 12 Jan 2012 02:10:56 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin11.0 [disabled]
app-shells/bash:      4.2_p10
dev-lang/python:      2.7.2-r3
dev-util/cmake:       2.8.5-r2
dev-util/pkgconfig:   0.26
sys-devel/autoconf:   2.68
sys-devel/automake:   1.11.1
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool:    2.4-r4
sys-devel/make:       3.82
Repositories: gentoo_prefix wangbin hongqn
Installed sets: 
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin11"
CFLAGS="-O2 -pipe -march=prescott"
CHOST="i686-apple-darwin11"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=prescott"
DISTDIR="/Users/wangbin/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-dead_strip_dylibs"
PKGDIR="/Users/wangbin/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/wangbin/Gentoo/"
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="/Users/wangbin/Gentoo/var/tmp"
PORTDIR="/Users/wangbin/Gentoo/usr/portage"
PORTDIR_OVERLAY="/Users/wangbin/Gentoo/var/lib/layman/wangbin /Users/wangbin/Gentoo/var/lib/layman/hongqn"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua bash-completion coreaudio cracklib curl cxx emacs jpeg mmx mmxext modules ncurses nls objc objc++ prefix python readline smp sqlite sse sse2 ssl subversion unicode x86-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wang Bin 2012-01-12 03:50:35 UTC
Created attachment 298701 [details]
Build log
Comment 2 Wang Bin 2012-01-12 03:54:02 UTC
Created attachment 298703 [details, diff]
Patch for clients/memcapable.cc from https://code.launchpad.net/~keerthi-shetty/libmemcached/fixmemcapable/+merge/60856
Comment 3 Wang Bin 2012-01-12 03:55:17 UTC
Found the patch from https://code.launchpad.net/~keerthi-shetty/libmemcached/fixmemcapable/+merge/60856, after apply the patch, I can install libmemcached with no error.
Comment 4 Fabian Groffen gentoo-dev 2012-02-09 18:57:10 UTC
@robbat2: patch looks sane to me, ok to apply?
Comment 5 Johan Bergström 2012-11-20 05:55:27 UTC
This patch has been merged upstream in newer versions. Update and you should be game.