Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534174 - www-misc/zoneminder-1.28.0 - cmake: Checking for perl module LWP::UserAgent - failed // Could NOT find PerlModules (missing: PERLMODULES_LWP_USERAGENT_MODULE)
Summary: www-misc/zoneminder-1.28.0 - cmake: Checking for perl module LWP::UserAgent ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-01 09:00 UTC by Ron
Modified: 2015-01-11 18:23 UTC (History)
0 users

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


Attachments
build.log (build.log,8.19 KB, text/plain)
2015-01-03 18:58 UTC, Ron
Details
cMake Error log (CMakeError.log,2.48 KB, text/plain)
2015-01-03 18:58 UTC, Ron
Details
cMake Output log file (CMakeOutput.log,84.32 KB, text/plain)
2015-01-03 18:59 UTC, Ron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron 2015-01-01 09:00:25 UTC
www-misc/zoneminder-1.28.0.ebuild fails because it cant find the LWP:UserAgent. It appears that ZoneMinder has references to Perl 5.6 (Obsolete) I am not sure if this is the cause.

The workaround is to add the folowing to the mycmakeargs:

-DPERLMODULES_LWP_USERAGENT_MODULE=/usr/lib64/perl5/vendor_perl/5.20.1/LWP

I have 5.20.1 installed. I don't know enough about ebuilds to make this choose the current version of perl from the script instead of using the hard coded path I used. After making the change cMake completed and the package builds without issues.
Comment 1 Rafał Mużyło 2015-01-01 14:24:45 UTC
Have you checked if that's not a case of either bug 41124 or dropping trash into /usr/local ?
Comment 2 Ron 2015-01-01 17:39:27 UTC
(In reply to Rafał Mużyło from comment #1)
> Have you checked if that's not a case of either bug 41124 or dropping trash
> into /usr/local ?

Yes. Its not related to the XML parser and there are no /usr/local files. This is almost a clean Gentoo system. I believe its because the cMake config for zoneminder is a "work in progress" and doesn't like the newer perl5 versions. when I examined the cMake config file it had a reference to Perl 5.6 instead of perl 5.x
Comment 3 Rafał Mużyło 2015-01-02 13:11:39 UTC
...in such case, for completeness sake, attach the log with the failure.
Comment 4 Ron 2015-01-02 18:58:59 UTC
(In reply to Rafał Mużyło from comment #3)
> ...in such case, for completeness sake, attach the log with the failure.
Here is the error output without the path specified in the mymakeargs:

-- Found Perl: /usr/bin/perl (found version "5.20.1")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib64/perl5/5.20.1/x86_64-linux/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/lib64/perl5/vendor_perl/5.20.1/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/lib64/perl5/vendor_perl/5.20.1/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - failed
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/lib64/perl5/5.20.1/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/Sys/Mmap.pm
-- Could NOT find PerlModules (missing:  PERLMODULES_LWP_USERAGENT_MODULE)
CMake Error at CMakeLists.txt:467 (message):
  Not all required perl modules were found on your system


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/CMakeFiles/CMakeError.log".
 * ERROR: www-misc/zoneminder-1.28.0::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 4077:  Called cmake-utils_src_configure
 *   environment, line  935:  Called _execute_optionally 'src_configure'
 *   environment, line  293:  Called enable_cmake-utils_src_configure
 *   environment, line 1306:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
-----------------------------------------------------------------------------
from Log file:
cmake --no-warn-unused-cli -C /var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DZM_PERL_SUBPREFIX=/lib64/perl5/vendor_perl/5.20.1 -DZM_TMPDIR=/var/tmp/zm -DZM_SOCKDIR=/var/run/zm -DZM_WEB_USER=apache -DZM_WEB_GROUP=apache -DZM_WEBDIR=/usr/share/zoneminder/www -DZM_NO_MMAP=OFF -DZM_NO_X10=OFF -DZM_NO_FFMPEG=OFF -DZM_NO_CURL=OFF -DZM_NO_LIBVLC=ON -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL=OFF -DHAVE_gnutls=ON -DHAVE_GNUTLS=ON -DHAVE_Gnutls=ON -DHAVE_gcrypt=OFF -DHAVE_GCRYPT=OFF -DHAVE_Gcrypt=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/gentoo_toolchain.cmake  /var/tmp/portage/www-misc/zoneminder-1.28.0/work/ZoneMinder-1.28.0
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found CURL: /usr/lib64/libcurl.so (found version "7.37.0")
-- Looking for curl/curl.h
-- Looking for curl/curl.h - found
-- Found JPEG: /usr/lib64/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1i")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype MD5 for HAVE_MD5_GNUTLS - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/bin/perl (found version "5.20.1")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib64/perl5/5.20.1/x86_64-linux/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/lib64/perl5/vendor_perl/5.20.1/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/lib64/perl5/vendor_perl/5.20.1/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - failed
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/lib64/perl5/5.20.1/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux/Sys/Mmap.pm
-- Could NOT find PerlModules (missing:  PERLMODULES_LWP_USERAGENT_MODULE)
CMake Error at CMakeLists.txt:467 (message):
  Not all required perl modules were found on your system


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/CMakeFiles/CMakeError.log".
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-03 10:03:31 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 6 Rafał Mużyło 2015-01-03 12:19:31 UTC
...as already noted, attach != paste,.
Also, those two mentioned cmake log  files might contain something relevant.
Comment 7 Ron 2015-01-03 18:56:43 UTC
Sorry Guys, I don't do this very often so please excuse my errors.

Below is the output of the emerge --info:

Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.14.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.14.4-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_C2750_@_2.40GHz-with-gentoo-2.2
KiB Mem:      760352 total,     67288 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 03 Jan 2015 00:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -pipe -mmmx -mssse3 -msse4.1 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops -fprefetch-loop-arrays -ftree-loop-optimize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -pipe -mmmx -mssse3 -msse4.1 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops -fprefetch-loop-arrays -ftree-loop-optimize"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv kerberos mmx modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 sse2i ssl tcpd threads unicode zip zlib" ABI_X86="64" 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" APACHE2_MODULES="access_compat alias auth_digest authn_alias authn_anon authn_core auth_basic authn_file authz_core authz_owner authz_user authz_host autoindex headers cgi cgid filter ident vhost_alias dav dav_lock dir deflate include imagemap speling version mime socache_shmcb unixd usertrack" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga 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 chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 8 Ron 2015-01-03 18:58:02 UTC
Created attachment 393096 [details]
build.log

Attached are the full Build log
Comment 9 Ron 2015-01-03 18:58:48 UTC
Created attachment 393098 [details]
cMake Error log
Comment 10 Ron 2015-01-03 18:59:13 UTC
Created attachment 393100 [details]
cMake Output log file
Comment 11 Rafał Mużyło 2015-01-04 00:49:46 UTC
The error log moves the problem to dev-perl/HTTP-Message, at least that was the package that seems to provide HTTP::Request module at 6.30.0 ...

If that module is already installed, try reemerging it.
If that helps - and by that I mean as little as "changes the error in the error log" - then it may very well be bug 41124 after all. I've never meant it's XML::Parser related, just "didn't run perl-cleaner" related.
Comment 12 Ron 2015-01-11 18:23:27 UTC
(In reply to Rafał Mużyło from comment #11)
> The error log moves the problem to dev-perl/HTTP-Message, at least that was
> the package that seems to provide HTTP::Request module at 6.30.0 ...
> 
> If that module is already installed, try reemerging it.
> If that helps - and by that I mean as little as "changes the error in the
> error log" - then it may very well be bug 41124 after all. I've never meant
> it's XML::Parser related, just "didn't run perl-cleaner" related.

Sorry for the delay!

I reran perl-cleaner and it did correct the issue. I may have forgotten to run the update on this machine (it was a one of several VMs). Sorry for the mistake!