Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 357029

Summary: www-misc/zoneminder - zm_user.cpp:193: error: 'MD5_DIGEST_LENGTH' was not declared in this scope
Product: Gentoo Linux Reporter: Jared Griffith <jared.griffith>
Component: Current packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal CC: web-apps
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard: [dilfridge overlay]
Package list:
Runtime testing required: ---
Bug Depends on: 359605    
Bug Blocks:    
Attachments: build.log
Latest build.log

Description Jared Griffith 2011-03-01 23:32:49 UTC
When emerging www-misc/zoneminder-1.24.2 on x86_64 system, it fails to build

Reproducible: Always

Steps to Reproduce:
1.unmask www-misc/zoneminder and corresponding packages
2.emerge zoneminder
3.wait for the fail

Actual Results:  
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2'
make: *** [all] Error 2
emake failed
 * ERROR: www-misc/zoneminder-1.24.2 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 3634:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.24.2',
 * the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.24.2'.
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.24.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.24.2/temp/environment'.
 * S: '/var/tmp/portage/www-misc/zoneminder-1.24.2/work/ZoneMinder-1.24.2'

>>> Failed to emerge www-misc/zoneminder-1.24.2, Log file:

>>>  '/var/tmp/portage/www-misc/zoneminder-1.24.2/temp/build.log'

Expected Results:  
Installed correctly.
Comment 1 Jared Griffith 2011-03-01 23:34:11 UTC
emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.2-r3, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Xeon-R-_CPU_5130_@_2.00GHz-with-gentoo-1.12.14
Timestamp of tree: Tue, 01 Mar 2011 09:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.4.4-r9, 2.5.2-r7, 2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j10"
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="/usr/local/portage/farheap"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dm ads amd64 apache2 apic authfile bash-completion berkdb bzip2 caps clamav clamd clamdtop cli cracklib crypt cups cxx dri encode ffmpeg fortran gdbm gif gpm gsm iconv ipmi ipv6 jbig jpeg ldap ldap-sasl mailwrapper mainst mmx modules mudflap multilib mysql ncurses nls nptl nptlonly oav openmp pam pcre perl php png postgres pppd python readline sasl server session sftp sse sse2 ssl ssse3 svnserve symlink sysfs tcpd tiff unicode urandom vim vim-pager vim-syntax xfs xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi" APACHE2_MPMS="prefork" CAMERAS="ptp2" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude c
Comment 2 Rafał Mużyło 2011-03-01 23:47:12 UTC
Attach build log.
Comment 3 Jared Griffith 2011-03-02 00:50:47 UTC
Created attachment 264319 [details]
build.log

Here's the build.log, sorry for neglecting it earlier.
Comment 4 Vladimir B. Vinogradov 2011-03-22 17:21:41 UTC
Try to fix:

export CXXFLAGS="D__STDC_CONSTANT_MACROS"
emerge zoneminder
unset CXXFLAGS 

or simply

CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder


Additionally, it requires -j 1 (only a single make thread), but that is already
coded into the ebuild.

I've tested this by myself with latest ~amd64.
Comment 5 Jared Griffith 2011-03-22 17:36:17 UTC
Still erroring out.  See latest attached build.log
Comment 6 Jared Griffith 2011-03-22 17:36:43 UTC
Created attachment 266909 [details]
Latest build.log
Comment 7 Lyall Pearce 2011-03-22 22:14:07 UTC
(In reply to comment #6)
> Created attachment 266909 [details]
> Latest build.log

See https://bugs.gentoo.org/show_bug.cgi?id=359605 for a working ebuild.
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-28 15:55:20 UTC
Removed from main tree.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2011-09-16 19:58:44 UTC
Reopened for tracking and hopefully zoneminder revival
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2011-09-17 19:14:31 UTC
Fixed in zoneminder-1.25.0