Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
zoneminder re-emerge fail [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
weiypan_us
n00b
n00b


Joined: 25 Feb 2017
Posts: 15

PostPosted: Sat Feb 25, 2017 6:28 pm    Post subject: zoneminder re-emerge fail [SOLVED] Reply with quote

When re-emerge zoneminder, it is failed. The error message as following. asus ~ # emerge --info '=www-misc/zoneminder-1.28.0::gentoo' and emerge -pqv '=www-misc/zoneminder-1.28.0::gentoo' also posted below
Code:

Installing /var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/scripts/ZoneMinder/output/share/man/man3/ZoneMinder::Base.3pm
1>/dev/null "/usr/bin/perl" -MExtUtils::Command::MM -e 'warn_if_old_packlist' -- \
        "/usr/lib64/perl5/5.22.3/x86_64-linux/auto/ZoneMinder"
1>/dev/null true
make[3]: Leaving directory '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build/scripts/ZoneMinder'
make[2]: Leaving directory '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build'
[ 28%] Built target zmperlmodules
make[2]: Leaving directory '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build'
make[1]: *** [CMakeFiles/Makefile2:132: src/CMakeFiles/zm.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build'
make: *** [Makefile:128: all] Error 2
 * ERROR: www-misc/zoneminder-1.28.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=www-misc/zoneminder-1.28.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-misc/zoneminder-1.28.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.28.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.28.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build'
 * S: '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/ZoneMinder-1.28.0'

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

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

 * Messages for package www-misc/zoneminder-1.28.0:

 * ERROR: www-misc/zoneminder-1.28.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=www-misc/zoneminder-1.28.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-misc/zoneminder-1.28.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.28.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.28.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/zoneminder-1.28.0_build'
 * S: '/var/tmp/portage/www-misc/zoneminder-1.28.0/work/ZoneMinder-1.28.0'
-----------------------------------------------------------------------------------------------

Here is Output of emerge -pqv '=www-misc/zoneminder-1.28.0::gentoo'
Code:


asus ~ # emerge -pqv '=www-misc/zoneminder-1.28.0::gentoo'

 * IMPORTANT: 13 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
[ebuild   R   ] www-misc/zoneminder-1.28.0  USE="mmap openssl -curl -gcrypt -gnutls -vlc"

 * IMPORTANT: 34 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

------------------------------------------------------------------------------------------------
[b]asus ~ # emerge --info '=www-misc/zoneminder-1.28.0::gentoo'[/b]
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.4, glibc-2.23-r3, 4.4.39-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.39-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.3
KiB Mem:     8043064 total,   4882692 free
KiB Swap:     524220 total,    524220 free
Timestamp of repository gentoo: Sat, 25 Feb 2017 02:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.arcticnetwork.ca/ "
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac gdbm gif glamor gpm iconv icu introspection ipv6 jpeg kde kipi lcms ldap libnotify lua mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en zh-CN zh" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en zh_CN zh" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-misc/zoneminder-1.28.0::gentoo was built with the following:
USE="mmap openssl -curl -gcrypt -gnutls -vlc" ABI_X86="64"
CXXFLAGS="-march=k8 -O2 -pipe -D__STDC_CONSTANT_MACROS"


[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by weiypan_us on Sun Mar 12, 2017 5:29 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 14882
Location: here

PostPosted: Sat Feb 25, 2017 6:31 pm    Post subject: Reply with quote

You can post full build log (/var/tmp/portage/www-misc/zoneminder-1.28.0/temp/build.log) with wgetpaste?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
weiypan_us
n00b
n00b


Joined: 25 Feb 2017
Posts: 15

PostPosted: Sat Feb 25, 2017 8:33 pm    Post subject: Reply with quote

The whole /var/tmp/portage/www-misc/zoneminder-1.28.0/temp/build.log has been posted at following URL.

https://paste.pound-python.org/show/viGB7Q6NlJoiBeUvnF3m/
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 14882
Location: here

PostPosted: Sat Feb 25, 2017 8:55 pm    Post subject: Reply with quote

Seems a incopatibility with mpeg-3, try to install version 1.30.0

Reference https://github.com/ZoneMinder/ZoneMinder/pull/1137
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
weiypan_us
n00b
n00b


Joined: 25 Feb 2017
Posts: 15

PostPosted: Sun Feb 26, 2017 4:23 am    Post subject: Reply with quote

Thanks fedeliallalinea for help I have successfully emerged zoneminder-1.30.0

But I encountered another issue when i try to start zoneminder

asus ~ # service zoneminder start
* Starting zoneminder ...
DBD::mysql::st execute failed: Unknown column 'IsActive' in 'field list' at /usr/bin/zmpkg.pl line 343. [ !! ]
* ERROR: zoneminder failed to start

I have tried to upgrade DB with zmupdate.pl. However because I did not use zmuser when created DB so zmupdate.pl failed with error

asus ~ # zmupdate.pl

Initiating database upgrade to version 1.30.0 from version 1.28.0

Please ensure that ZoneMinder is stopped on your system prior to upgrading the database.
Press enter to continue or ctrl-C to stop :

Do you wish to take a backup of your database prior to upgrading?
This may result in a large file in /var/tmp/zm if you have a lot of events.
Press 'y' for a backup or 'n' to continue : y
Creating backup to /var/tmp/zm/zm-1.28.0.dump. This may take several minutes.
mysqldump: Got error: 1044: "Access denied for user 'zmuser'@'localhost' to database 'zm'" when using LOCK TABLES
Output:
Command 'mysqldump -hlocalhost -uzmuser -pzmpass --add-drop-table --databases zm > /var/tmp/zm/zm-1.28.0.dump' exited with status: 2
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 14882
Location: here

PostPosted: Sun Feb 26, 2017 9:32 am    Post subject: Reply with quote

Sorry weiypan_us but I don't know this software
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 417
Location: Italy

PostPosted: Sun Feb 26, 2017 12:50 pm    Post subject: Reply with quote

You may need to edit /etc/zm.conf and change the value of ZM_DB_USER and ZM_DB_PASS variables.
Back to top
View user's profile Send private message
weiypan_us
n00b
n00b


Joined: 25 Feb 2017
Posts: 15

PostPosted: Sun Feb 26, 2017 4:02 pm    Post subject: Reply with quote

Thanks fturco, after follow your suggestion I have successfully finished zmupdate.pl

Now I got a new error when try to start zoneminder

blk161@asus /etc/portage $ sudo service zoneminder start
* apache2 has detected an error in your setup:
apache2: Syntax error on line 161 of /etc/apache2/httpd.conf: Syntax error on line 14 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load modules/libphp5.so into server: /usr/lib64/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
* ERROR: apache2 failed to start
* ERROR: cannot start zoneminder as apache2 would not start
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 417
Location: Italy

PostPosted: Sun Feb 26, 2017 4:26 pm    Post subject: Reply with quote

Please post the output of the following commands:
Code:

sed -n 156,166p /etc/apache2/httpd.conf
sed -n 9,19p /etc/apache2/modules.d/70_mod_php5.conf


I also found this thread which may be useful.
Back to top
View user's profile Send private message
weiypan_us
n00b
n00b


Joined: 25 Feb 2017
Posts: 15

PostPosted: Sun Feb 26, 2017 4:35 pm    Post subject: Reply with quote

blk161@asus ~ $ sed -n 156,166p /etc/apache2/httpd.conf
# or to modify the default configuration of the server.
#
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
blk161@asus ~ $ sed -n 9,19p /etc/apache2/modules.d/70_mod_php5.conf
# instead of -DPHP5. Afterwards you may delete this file.
#
<IfDefine PHP5>
# Load the module first
<IfModule !mod_php5.c>
LoadModule php5_module modules/libphp5.so
</IfModule>

# Set it to handle the files
# NOTE: Avoiding AddHandler/AddType for security (bug #538822)
# NOTE: Please read the related news item!
blk161@asus ~ $

I found my gentoo has moved onto PHP7

blk161@asus ~ $ eselect php list apache2
[1] php7.0 *
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 417
Location: Italy

PostPosted: Sun Feb 26, 2017 4:38 pm    Post subject: Reply with quote

Did you run etc-update or dispatch-conf after upgrading the Apache/PHP? You probably need to update your Apache configuration and use the new PHP 7.x modules.
Back to top
View user's profile Send private message
weiypan_us
n00b
n00b


Joined: 25 Feb 2017
Posts: 15

PostPosted: Sun Feb 26, 2017 4:58 pm    Post subject: Reply with quote

Thanks fturco, I hate etc-update because it will not carry over my personal preference setting to the new configure file.

I think I have to remove php5 from zoneminder and find out how to for php7

Thank you for suggestion.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum