Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failure in Applying kopanocore-8.2.0-automake.patch during I
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Sat Nov 18, 2023 9:53 am    Post subject: Failure in Applying kopanocore-8.2.0-automake.patch during I Reply with quote

Hi Gentoo
I've encountered several errors during the installation of Kopano Core on Gentoo. However, I'm currently stuck with a specific error. Could someone assist me in resolving this issue?
Code:
>>> Failed to emerge net-mail/kopanocore-9999, Log file:

>>>  '/var/tmp/portage/net-mail/kopanocore-9999/temp/build.log'

 * Messages for package net-mail/kopanocore-9999:

 * Failed patch: kopanocore-8.2.0-automake.patch!
 *  ( /var/tmp/portage/net-mail/kopanocore-9999/files/kopanocore-8.2.0-automake.patch )
 *
 * Include in your bug report the contents of:
 *
 *   /var/tmp/portage/net-mail/kopanocore-9999/temp/kopanocore-8.2.0-automake.patch.out
 * ERROR: net-mail/kopanocore-9999::kopano-overlay failed (prepare phase):
 *   Failed patch: kopanocore-8.2.0-automake.patch!
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 4872:  Called epatch '/var/tmp/portage/net-mail/kopanocore-9999/files/kopanocore-8.2.0-automake.patch'
 *   environment, line 2335:  Called die
 * The specific snippet of code:
 *               die "Failed patch: ${patchname}!";
 *
 * If you need support, post the output of emerge --info '=net-mail/kopanocore-9999::kopano-overlay',
 * the complete build log and the output of emerge -pqv '=net-mail/kopanocore-9999::kopano-overlay'.
 * The complete build log is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
 * S: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'

and file /var/tmp/portage/net-mail/kopanocore-9999/files/kopanocore-8.2.0-automake.patch'[/code]
Code:

diff -rupN kopanocore-8.3.0.350/ECtools/search/Makefile.am kopanocore-8.3.0.350.automake/ECtools/search/Makefile.am
--- kopanocore-8.3.0.350/ECtools/search/Makefile.am     2016-12-21 09:58:13.000000000 +0100
+++ kopanocore-8.3.0.350.automake/ECtools/search/Makefile.am    2016-12-29 22:46:31.498205647 +0100
@@ -16,7 +16,7 @@ install-exec-local:
        rm -Rf build

 install-data-local:
-       mkdir -p "${DESTDIR}${localstatedir}/lib/kopano/search"
+       mkdir -p "${DESTDIR}${localstatedir}/kopano/search"

 uninstall-local:
        rm -Rf ${DESTDIR}${pythondir}/kopano_search \
diff -rupN kopanocore-8.3.0.350/installer/linux/Makefile.am kopanocore-8.3.0.350.automake/installer/linux/Makefile.am
--- kopanocore-8.3.0.350/installer/linux/Makefile.am    2016-12-21 09:58:13.000000000 +0100
+++ kopanocore-8.3.0.350.automake/installer/linux/Makefile.am   2016-12-29 22:46:55.115634935 +0100
@@ -53,12 +53,12 @@ dist_sysconf_config_DATA = ${config_file
 sysconf_initdir=${sysconfdir}/init.d
 sysconf_init_SCRIPTS = ${@DISTRO@_initscript_files}

-rhel_sysconfig_path = ${sysconfdir}/sysconfig
+rhel_sysconfig_path = ${sysconfdir}/default
 suse_sysconfig_path = ${localstatedir}/adm/fillup-templates
 sles_sysconfig_path = ${localstatedir}/adm/fillup-templates
 sysconf_sysconfigdir = ${@DISTRO@_sysconfig_path}
 sysconf_sysconfig_DATA = sysconfig.txt
-alt_sysconfig_path = ${sysconfdir}/sysconfig
+alt_sysconfig_path = ${sysconfdir}/default

 dist_doc_DATA = \
        db-calc-storesize db-convert-attachments-to-files \
@@ -95,7 +95,7 @@ EXTRA_DIST = ${BUILT_SOURCES} ldap.m4 \

 install-data-hook:
        install -d -m 755 ${DESTDIR}/${sysconf_configdir}/license
-       install -d -m 755 ${DESTDIR}/${localstatedir}/lib/kopano/report
+       install -d -m 755 ${DESTDIR}/${localstatedir}/kopano/report
        mv -v ${DESTDIR}${sysconf_rotatedir}/kopano.logrotate ${DESTDIR}${sysconf_rotatedir}/kopano
        mv -v ${DESTDIR}${sysconf_crondir}/kopano-client-update.cron ${DESTDIR}${sysconf_crondir}/kopano-client-update
        if test ${DISTRO} = "sles" -o ${DISTRO} = "suse"; then \
diff -rupN kopanocore-8.3.0.350/spooler/python/Makefile.am kopanocore-8.3.0.350.automake/spooler/python/Makefile.am
--- kopanocore-8.3.0.350/spooler/python/Makefile.am     2016-12-21 09:58:13.000000000 +0100
+++ kopanocore-8.3.0.350.automake/spooler/python/Makefile.am    2016-12-29 22:47:19.626426381 +0100
@@ -9,5 +9,5 @@ kopano_spoolerdir = ${datadir}/kopano-sp
 kopano_spooler_DATA = mapiplugin.py pluginmanager.py plugintemplates.py wraplogger.py zconfig.py zinterval.py zunit.py

 install-data-hook:
-       mkdir -p ${DESTDIR}/${localstatedir}/lib/kopano/dagent/plugins/
-       mkdir -p ${DESTDIR}/${localstatedir}/lib/kopano/spooler/plugins/
+       mkdir -p ${DESTDIR}/${localstatedir}/kopano/dagent/plugins/
+       mkdir -p ${DESTDIR}/${localstatedir}/kopano/spooler/plugins/


and this is emerge --info
Code:


emerge --info
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r7, 6.1.60-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.1.60-gentoo-dist-x86_64-Intel-R-_Xeon-R-_Silver_4114_CPU_@_2.20GHz-with-glibc2.37
KiB Mem:    24603992 total,  19589052 free
KiB Swap:    2072572 total,   2072572 free
Timestamp of repository gentoo: Thu, 16 Nov 2023 13:00:01 +0000
Head commit of repository gentoo: de99c43ebaed42de4b86051ab85c2e730c73d3ff
Head commit of repository kopano-overlay: af23ee83eb6ed049f4ca0fe2d5ccad4a78b30805

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

kopano-overlay
    location: /var/db/repos/kopano-overlay
    sync-type: git
    sync-uri: https://github.com/galitus/gentoo-overlay
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

Sampath Akkina - FGN, [18.11.23 15:20]
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
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"
SHELL="/bin/bash"
USE="acl amd64 bindist bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc minimal mmx multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr sse sse2 ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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="karbon sheets words" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30969
Location: here

PostPosted: Sat Nov 18, 2023 11:12 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30969
Location: here

PostPosted: Sat Nov 18, 2023 11:24 am    Post subject: Reply with quote

You should adapt the patch for the last code available on github.
I see that there is also the patch for version 8.6.80 but the upstream version (9999) seems to be 11.x.x I doubt it will work.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Mon Nov 20, 2023 7:28 am    Post subject: Reply with quote

Thanks for responding fedeliallalinea
I'm having trouble understanding what you explained. I attempted to merge KopanoCore with a patch for version 8.6.80, but encountered the same error. Could you please clarify what you mean by "adapting the patch for the last code"? I'm new to this environment, so I'd appreciate it if you could explain it again.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30969
Location: here

PostPosted: Mon Nov 20, 2023 8:34 am    Post subject: Reply with quote

You should download the latest code from git and check the modified files in kopanocore-x.x.x-automake.patch and see if you need to apply them to the new code. Once you have made the appropriate changes you should create a new patch.
I tried these steps and the result is this but not using the program I wouldn't know if it is all correct (the patch will surely be applied correctly).
Code:
diff --color -Naru a/ECtools/search/Makefile.am b/ECtools/search/Makefile.am
--- a/ECtools/search/Makefile.am        2023-11-20 08:38:12.921634619 +0100
+++ b/ECtools/search/Makefile.am        2023-11-20 08:39:30.907536748 +0100
@@ -20,7 +20,7 @@
        rm -Rf build
 
 install-data-local:
-       mkdir -p "${DESTDIR}${localstatedir}/lib/kopano/search"
+       mkdir -p "${DESTDIR}${localstatedir}/kopano/search"
 
 uninstall-local:
        rm -Rf ${DESTDIR}${pythondir}/kopano_search \
diff --color -Naru a/installer/linux/Makefile.am b/installer/linux/Makefile.am
--- a/installer/linux/Makefile.am       2023-11-20 08:38:12.931634521 +0100
+++ b/installer/linux/Makefile.am       2023-11-20 08:42:32.879086126 +0100
@@ -65,7 +65,7 @@
 if ENABLE_BASE
 install-data-hook:
        install -d -m 755 ${DESTDIR}/${sysconfdir}/kopano/license
-       mkdir -p ${DESTDIR}${localstatedir}/lib/kopano/empty
+       mkdir -p ${DESTDIR}${localstatedir}/kopano/empty
        mv -v ${DESTDIR}${sysconf_rotatedir}/kopano.logrotate ${DESTDIR}${sysconf_rotatedir}/kopano
 
 uninstall-local:
diff --color -Naru a/spooler/python/Makefile.am b/spooler/python/Makefile.am
--- a/spooler/python/Makefile.am        2023-11-20 08:38:12.958300926 +0100
+++ b/spooler/python/Makefile.am        2023-11-20 08:39:54.423972869 +0100
@@ -12,8 +12,8 @@
 kopano_spooler_DATA = mapiplugin.py pluginmanager.py plugintemplates.py wraplogger.py zconfig.py
 
 install-data-hook:
-       mkdir -p ${DESTDIR}/${localstatedir}/lib/kopano/dagent/plugins/
-       mkdir -p ${DESTDIR}/${localstatedir}/lib/kopano/spooler/plugins/
+       mkdir -p ${DESTDIR}/${localstatedir}/kopano/dagent/plugins/
+       mkdir -p ${DESTDIR}/${localstatedir}/kopano/spooler/plugins/
 
 .PHONY: test
 test:

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Mon Nov 20, 2023 1:03 pm    Post subject: Reply with quote

Thanks for the help earlier; everything seems to be working fine now. However, I encountered an error during the configuration phase. about this error I attempted to downgrade the SWIG package, but I couldn't find a way to do it. I also checked if there was an option to bypass this error, but unfortunately, I couldn't find a solution. Could you assist me with this issue?
Code:

checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/libexec/gcc/x86_64-pc-linux-gnu/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for swig2.0... no
checking for swig3.0... no
checking for swig4.0... no
checking for swig... /usr/bin/swig
checking SWIG version... 4.1.1
configure: WARNING: SWIG version <= 3 is required.  You have 4.1.1.
configure: error: SWIG 3 is required to build..

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999/config.log
 * ERROR: net-mail/kopanocore-9999::kopano-overlay failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 4845:  Called econf '--enable-release' '--enable-unicode' '--enable-epoll' '--with-userscript-prefix=/etc/kopano/userscripts' '--with-quotatemplate-prefix=/etc/kopano/quotamails' '--with-searchscripts-prefix=/etc/kopano/searchscripts' '--disable-debug' '--disable-icu' '--disable-static'
 *        phase-helpers.sh, line  732:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *      die "$@"
 *
 * If you need support, post the output of emerge --info '=net-mail/kopanocore-9999::kopano-overlay',
 * the complete build log and the output of emerge -pqv '=net-mail/kopanocore-9999::kopano-overlay'.
 * The complete build log is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
 * S: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30969
Location: here

PostPosted: Mon Nov 20, 2023 2:40 pm    Post subject: Reply with quote

Maybe try to install kopano is not a good idea, see here.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Mon Nov 20, 2023 3:08 pm    Post subject: Reply with quote

Indeed, despite noticing that, I still intend to proceed with attempting the installation of this package. Can you help me with this error
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Mon Nov 20, 2023 4:13 pm    Post subject: Reply with quote

SWIG below version 4 is no longer in Gentoo. You could try to resurrect it from history, but the more maintainable option would be to fix the consuming package to work with SWIG-4. The package seems to have a deliberate block on SWIG-4. I suggest you determine why the author blocked it, and then determine whether that block is reasonable. If it is not reasonable, you could remove it.
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Tue Nov 21, 2023 8:04 am    Post subject: Reply with quote

Thanks Hu, yes downgrading isn't the option, so i made some change in configure file some dependencies were initially blocked, but resolved those by updating them to newer versions. However, despite these changes, i encountered an error during the compile phase , and the build log doesn't provide helpful information. can you help me why i get this error
Code:


make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECABContainer.lo provider/client/ECABContainer.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECABContainer.cpp  -fPIC -DPIC -o provider/client/.libs/ECABContainer.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECAttach.lo provider/client/ECAttach.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECAttach.cpp  -fPIC -DPIC -o provider/client/.libs/ECAttach.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECChangeAdvisor.lo provider/client/ECChangeAdvisor.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECChangeAdvisor.cpp  -fPIC -DPIC -o provider/client/.libs/ECChangeAdvisor.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECArchiveAwareMessage.lo provider/client/ECArchiveAwareMessage.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECArchiveAwareMessage.cpp  -fPIC -DPIC -o provider/client/.libs/ECArchiveAwareMessage.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECExchangeExportChanges.lo provider/client/ECExchangeExportChanges.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECExchangeExportChanges.cpp  -fPIC -DPIC -o provider/client/.libs/ECExchangeExportChanges.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECExchangeImportContentsChanges.lo provider/client/ECExchangeImportContentsChanges.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECExchangeImportContentsChanges.cpp  -fPIC -DPIC -o provider/client/.libs/ECExchangeImportContentsChanges.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECExchangeImportHierarchyChanges.lo provider/client/ECExchangeImportHierarchyChanges.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECExchangeImportHierarchyChanges.cpp  -fPIC -DPIC -o provider/client/.libs/ECExchangeImportHierarchyChanges.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECExchangeModifyTable.lo provider/client/ECExchangeModifyTable.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECExchangeModifyTable.cpp  -fPIC -DPIC -o provider/client/.libs/ECExchangeModifyTable.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECMAPIContainer.lo provider/client/ECMAPIContainer.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECMAPIContainer.cpp  -fPIC -DPIC -o provider/client/.libs/ECMAPIContainer.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECExportAddressbookChanges.lo provider/client/ECExportAddressbookChanges.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECExportAddressbookChanges.cpp  -fPIC -DPIC -o provider/client/.libs/ECExportAddressbookChanges.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECGenericProp.lo provider/client/ECGenericProp.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECGenericProp.cpp  -fPIC -DPIC -o provider/client/.libs/ECGenericProp.o
provider/client/ECGenericProp.cpp: In member function 'virtual HRESULT ECGenericProp::DeleteProps(const SPropTagArray*, SPropProblemArray**)':
provider/client/ECGenericProp.cpp:857:75: error: 'FALSE' was not declared in this scope
  857 |                 auto hrT = HrDeleteRealProp(lpPropTagArray->aulPropTag[i],FALSE);
      |                                                                           ^~~~~
make[2]: *** [Makefile:4656: provider/client/ECGenericProp.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECMAPIFolder.lo provider/client/ECMAPIFolder.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECMAPIFolder.cpp  -fPIC -DPIC -o provider/client/.libs/ECMAPIFolder.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECMAPIFolderPublic.lo provider/client/ECMAPIFolderPublic.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECMAPIFolderPublic.cpp  -fPIC -DPIC -o provider/client/.libs/ECMAPIFolderPublic.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX  -I./common/include     -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include    -I./inetmapi/include  -I./swig/include  -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECMAPIProp.lo provider/client/ECMAPIProp.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECMAPIProp.cpp  -fPIC -DPIC -o provider/client/.libs/ECMAPIProp.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[1]: *** [Makefile:5146: all-recursive] Error 1
make: *** [Makefile:2893: all] Error 2
 * ERROR: net-mail/kopanocore-9999::kopano-overlay failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-mail/kopanocore-9999::kopano-overlay'`,
 * the complete build log and the output of `emerge -pqv '=net-mail/kopanocore-9999::kopano-overlay'`.
 * The complete build log is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
 * S: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'

>>> Failed to emerge net-mail/kopanocore-9999, Log file:

>>>  '/var/tmp/portage/net-mail/kopanocore-9999/temp/build.log'

 * Messages for package net-mail/kopanocore-9999:

 * ERROR: net-mail/kopanocore-9999::kopano-overlay failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-mail/kopanocore-9999::kopano-overlay'`,
 * the complete build log and the output of `emerge -pqv '=net-mail/kopanocore-9999::kopano-overlay'`.
 * The complete build log is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
 * S: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'

Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Tue Nov 21, 2023 1:31 pm    Post subject: Reply with quote

sam-510 wrote:
i encountered an error during the compile phase , and the build log doesn't provide helpful information. can you help me why i get this error
If the build log does not provide helpful information, then no, we cannot help you, because we need to see the error message(s).
sam-510 wrote:
Code:
provider/client/ECGenericProp.cpp: In member function 'virtual HRESULT ECGenericProp::DeleteProps(const SPropTagArray*, SPropProblemArray**)':
provider/client/ECGenericProp.cpp:857:75: error: 'FALSE' was not declared in this scope
  857 |                 auto hrT = HrDeleteRealProp(lpPropTagArray->aulPropTag[i],FALSE);
      |                                                                           ^~~~~
make[2]: *** [Makefile:4656: provider/client/ECGenericProp.lo] Error 1
This one is easy. The source file failed to #include a header that would define FALSE. The fix is to include such a header. This omission is a bug upstream and should be reported as such. If you are in a hurry, you could #define FALSE 0 in this file.
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Tue Nov 21, 2023 3:45 pm    Post subject: Reply with quote

I am unable to paste the entire content of the build.log file here. Is there a way I can share this file or its contents in this platform?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Tue Nov 21, 2023 4:07 pm    Post subject: Reply with quote

The standard advice is to use a pastebin service. However, the snippet you shared was enough for me to identify one error you need to fix. Have you fixed that one? If yes, does it work now, or are you seeing more problems?
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Tue Nov 21, 2023 4:21 pm    Post subject: Reply with quote

I replace "FALSE 0" into the file, but I'm still encountering the same error.

Code:

provider/client/ECGenericProp.cpp: In member function 'virtual HRESULT ECGenericProp::DeleteProps(const SPropTagArray*, SPropProblemArray**)':
provider/client/ECGenericProp.cpp:857:75: error: 'FALSE' was not declared in this scope
  857 |                 auto hrT = HrDeleteRealProp(lpPropTagArray->aulPropTag[i],FALSE 0);
      |                                                                           ^~~~~
make[2]: *** [Makefile:4656: provider/client/ECGenericProp.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'

make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[2]: Entering directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano  -DLINUX         -I./common/include      -I./common/include      -I./m4lcommon/include   -I./mapi4linux/include  -I./provider/common/include     -I./provider/libserver/include  -I./ECtools/archiver/include   -I./inetmapi/include     -I./swig/include        -I./swig/python/include         -I.  -DNDEBUG -DUNICODE  -DUSE_EPOLL   -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR='"/usr/lib64/kopano"' -DUSCRIPTDIR='"/usr/lib/kopano/userscripts"' -DUSCRIPTLDIR='"/etc/kopano/userscripts"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver    -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM    -I/usr/include/jsoncpp       -I/usr/include/mysql     -I/usr/include/vmime/  -I/usr/include/libxml2   -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c -o provider/client/ECMAPIFolderPublic.lo provider/client/ECMAPIFolderPublic.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -I./common/include/kopano -DLINUX -I./common/include -I./common/include -I./m4lcommon/include -I./mapi4linux/include -I./provider/common/include -I./provider/libserver/include -I./ECtools/archiver/include -I./inetmapi/include -I./swig/include -I./swig/python/include -I. -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/usr/lib/mapi.d:/etc/mapi.d\" -DPKGLIBDIR=\"/usr/lib64/kopano\" -DUSCRIPTDIR=\"/usr/lib/kopano/userscripts\" -DUSCRIPTLDIR=\"/etc/kopano/userscripts\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_NOTHROW= -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I./common -I./libfreebusy -I./m4lcommon -I./mapi4linux/include -I./provider/client -I./provider/common -I./provider/include -I./provider/libserver -I./provider/plugins -I./libfreebusy -I./libicalmapi -I./ECtools/archiver -DWITH_IPV6 -DWITH_OPENSSL -DWITH_GZIP -DWITH_DOM -I/usr/include/jsoncpp -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/libxml2 -Wall -Wmissing-declarations -Wredundant-decls -Wno-variadic-macros -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-compare -O2 -pipe -fpermissive -c provider/client/ECMAPIFolderPublic.cpp  -fPIC -DPIC -o provider/client/.libs/ECMAPIFolderPublic.o
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
make[1]: *** [Makefile:5146: all-recursive] Error 1
make: *** [Makefile:2893: all] Error 2
 * ERROR: net-mail/kopanocore-9999::kopano-overlay failed (compile phase):
 *   emake failed
 *
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Tue Nov 21, 2023 4:39 pm    Post subject: Reply with quote

sam-510 wrote:
I replace "FALSE 0" into the file, but I'm still encountering the same error.
I said to #define FALSE 0 in this file. You added a 0 after FALSE. These are not the same change. You lost the #define. Preprocessor directives need to be on their own line, so the change would be to add #define FALSE 0 on a separate line, above where the error presently occurs. Where is this reported upstream? The upstream author should be able to commit a fix for this quickly, which would save the need to patch this on your system.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1693

PostPosted: Tue Nov 21, 2023 5:13 pm    Post subject: Reply with quote

Hu wrote:
sam-510 wrote:
I replace "FALSE 0" into the file, but I'm still encountering the same error.
I said to #define FALSE 0 in this file. You added a 0 after FALSE. These are not the same change. You lost the #define. Preprocessor directives need to be on their own line, so the change would be to add #define FALSE 0 on a separate line, above where the error presently occurs. Where is this reported upstream? The upstream author should be able to commit a fix for this quickly, which would save the need to patch this on your system.

FWIW, this "upstream" has gone subscription only and no longer offers public issue fixes or sources.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Tue Nov 21, 2023 8:10 pm    Post subject: Reply with quote

I was not aware of that, since OP never linked to this project. OP: if there are no public source updates, what is the point of using a live ebuild to pull the latest public sources?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1693

PostPosted: Tue Nov 21, 2023 8:32 pm    Post subject: Reply with quote

I should have said, any public sources have been abandoned.
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Wed Nov 22, 2023 7:11 am    Post subject: Reply with quote

Apologies, my mistake. I've managed to resolve the compile phase errors, but I'm now encountering erros in install phase a failure to change directories.
Code:

reading manifest file 'kopano.egg-info/SOURCES.txt'
writing manifest file 'kopano.egg-info/SOURCES.txt'
Copying kopano.egg-info to /var/tmp/portage/net-mail/kopanocore-9999/image/usr/lib/python3.11/site-packages/kopano-11.0.2-py3.11.egg-info
running install_scripts
rm -Rf build staging
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999/swig/python/kopano'
make[2]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999/swig/python/kopano'
make[1]: Leaving directory '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'
/var/tmp/portage/net-mail/kopanocore-9999/temp/environment: line 4167: cd: /var/tmp/portage/net-mail/kopanocore-9999/work/php8.1: No such file or directory
 * ERROR: net-mail/kopanocore-9999::kopano-overlay failed (install phase):
 *   failed to change directory to /var/tmp/portage/net-mail/kopanocore-9999/work/php8.1
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_install
 *   environment, line 4855:  Called php-ext-source-r3_createinifiles
 *   environment, line 4045:  Called php_init_slot_env 'php8.1'
 *   environment, line 4167:  Called die
 * The specific snippet of code:
 *       cd "${PHP_EXT_S}" || die "failed to change directory to ${PHP_EXT_S}"


However, in that directory, there's a link pointing to php7-ext that doesn't exist. So, I examined the script and attempted to modify ext8-ext in var/tmp/portage/net-mail/kopanocore-9999/temp/environment.

Code:

 /var/tmp/portage/net-mail/kopanocore-9999/work # ls -l
total 8
drwxr-xr-x 25 portage portage 4096 Nov 22 07:57 kopanocore-9999
lrwxrwxrwx  1 portage portage   71 Nov 22 07:51 php8.1 -> /var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999/php7-ext

I reviewed the file located at /var/tmp/portage/net-mail/kopanocore-9999/temp/environment and made the adjustment from php7-ext to php8-ext within this file
Code:

php_init_slot_env ()
{
    local libdir=$(get_libdir);
    local slot="${1}";
    PHPPREFIX="${EPREFIX}/usr/${libdir}/${slot}";
    PHPIZE="${PHPPREFIX}/bin/phpize";
    PHPCONFIG="${PHPPREFIX}/bin/php-config";
    PHPCLI="${PHPPREFIX}/bin/php";
    PHPCGI="${PHPPREFIX}/bin/php-cgi";
    PHP_PKG="$(best_version =dev-lang/php-${1:3}*)";
    EXT_DIR="$(${PHPCONFIG} --extension-dir 2>/dev/null)";
    PHP_CURRENTSLOT=${1:3};
    PHP_EXT_S="${WORKDIR}/${slot}";
    cd "${PHP_EXT_S}" || die "failed to change directory to ${PHP_EXT_S}"
}
php_slot_ini_files ()
{
    local slot_ini_files="";
    local x;
    for x in ${PHP_EXT_SAPIS};
    do
        if [[ -f "${EPREFIX}/etc/php/${x}-${1}/php.ini" ]]; then
            slot_ini_files+=" etc/php/${x}-${1}/ext/${PHP_INI_NAME}.ini";
        fi;
    done;
    echo "${slot_ini_files}"
}
pkg_needrebuild ()
{
    git-r3_pkg_needrebuild
}
pkg_nofetch ()
{
    default
}
pkg_postinst ()
{
    elog;
    elog "Kopano Core has been successfully emerged!";
    elog;
    elog "Kopano Core replaces the former ZCP package.";
    elog;
    elog "Please check the following URL for how to migrate:";
    elog "    https://kb.kopano.io/display/WIKI/Migrating+from+ZCP+to+Kopano";
    elog
}
pkg_setup ()
{
    python-single-r1_pkg_setup;
    enewgroup "${KOPANO_GROUP}";
    enewuser "${KOPANO_USER}" -1 -1 "/var/lib/kopano" "${KOPANO_GROUP}"
}
preserve_old_lib ()
{
    if [[ ${EBUILD_PHASE} != "preinst" ]]; then
        eerror "preserve_old_lib() must be called from pkg_preinst() only";
        die "Invalid preserve_old_lib() usage";
    fi;
    [[ -z $1 ]] && die "Usage: preserve_old_lib <library to preserve> [more libraries to preserve]";
    has preserve-libs ${FEATURES} && return 0;
    local lib dir;
    for lib in "$@";
    do
        [[ -e ${EROOT}/${lib} ]] || continue;
        dir=${lib%/*};
        dodir "${dir}";
        cp "${EROOT}/${lib}" "${ED}/${lib}" || die "cp ${lib} failed";
        touch "${ED}/${lib}";
    done
}
preserve_old_lib_notify ()
{
    if [[ ${EBUILD_PHASE} != "postinst" ]]; then
        eerror "preserve_old_lib_notify() must be called from pkg_postinst() only";
        die "Invalid preserve_old_lib_notify() usage";
    fi;
    has preserve-libs ${FEATURES} && return 0;
    local lib notice=0;
    for lib in "$@";
    do
        [[ -e ${EROOT}/${lib} ]] || continue;
        if [[ ${notice} -eq 0 ]]; then
            notice=1;
            ewarn "Old versions of installed libraries were detected on your system.";
            ewarn "In order to avoid breaking packages that depend on these old libs,";
            ewarn "the libraries are not being removed.  You need to run revdep-rebuild";
            ewarn "in order to remove these old dependencies.  If you do not have this";
            ewarn "helper program, simply emerge the 'gentoolkit' package.";
            ewarn;
        fi;
        ewarn "  # revdep-rebuild --library '${lib}' && rm '${lib}'";
    done
}
prune_libtool_files ()
{
    debug-print-function ${FUNCNAME} "$@";
    local removing_all removing_modules opt;
    for opt in "$@";
    do
        case "${opt}" in
            --all)
                removing_all=1;
                removing_modules=1
            ;;
            --modules)
                removing_modules=1
            ;;
            *)
                die "Invalid argument to ${FUNCNAME}(): ${opt}"
            ;;
        esac;
    done;
    local f;
    local queue=();
    while IFS= read -r -d '' f; do
        local archivefile=${f/%.la/.a};
        if ! sed -n -e '/^# Generated by .*libtool/q0;4q1' "${f}"; then
            continue;
        fi;
        [[ ${f} != ${archivefile} ]] || die 'regex sanity check failed';
        local reason= pkgconfig_scanned=;
        local snotlink=$(sed -n -e 's:^shouldnotlink=::p' "${f}");
        if [[ ${snotlink} == yes ]]; then
            if [[ -f ${archivefile} ]]; then
                einfo "Removing unnecessary ${archivefile#${D%/}} (static plugin)";
                queue+=("${archivefile}");
            fi;
            if [[ -n ${removing_modules} ]]; then
                reason='module';
            fi;
        else
            if [[ -n ${removing_all} ]]; then
                reason='requested';
            else
                if [[ ! -f ${archivefile} ]]; then
                    reason='no static archive';
                else
                    if [[ ! -n $(sed -nre                                       "s/^(dependency_libs|inherited_linker_flags)='(.*)'$/\2/p"                                      "${f}") ]]; then
                        reason='no libs & flags';
                    else
                        if [[ ! -n ${pkgconfig_scanned} ]]; then
                            local pc_libs=();
                            if [[ ! -n ${removing_all} ]]; then
                                local pc;
                                local tf=${T}/prune-lt-files.pc;
                                local pkgconf=$(tc-getPKG_CONFIG);
                                while IFS= read -r -d '' pc; do
                                    local arg libs;
                                    if ${pkgconf} --exists "${pc}" &> /dev/null; then
                                        sed -e '/^Requires:/d' "${pc}" > "${tf}";
                                        libs=$(${pkgconf} --libs "${tf}");
                                    else
                                        libs=$(sed -ne 's/^Libs://p' "${pc}");
                                    fi;
                                    for arg in ${libs};
                                    do
                                        if [[ ${arg} == -l* ]]; then
                                            if [[ ${arg} == '*$*' ]]; then
                                                eerror "${FUNCNAME}: variable substitution likely failed in ${pc}";
                                                eerror "(arg: ${arg})";
                                                eerror "Most likely, you need to add virtual/pkgconfig to DEPEND.";
                                                die "${FUNCNAME}: unsubstituted variable found in .pc";
                                            fi;
                                            pc_libs+=(lib${arg#-l}.la);
                                        fi;
                                    done;
                                done < <(find "${D}" -type f -name '*.pc' -print0);
                                rm -f "${tf}";
                            fi;
                            pkgconfig_scanned=1;
                        fi;
                        has "${f##*/}" "${pc_libs[@]}" && reason='covered by .pc';
                    fi;
                fi;
            fi;
        fi;
        if [[ -n ${reason} ]]; then
            einfo "Removing unnecessary ${f#${D%/}} (${reason})";
            queue+=("${f}");
        fi;
    done < <(find "${D}" -xtype f -name '*.la' -print0);
    if [[ -n ${queue[@]} ]]; then
        rm -f "${queue[@]}";
    fi
}
python-single-r1_pkg_setup ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ ${MERGE_TYPE} != binary ]] && python_setup
}
python_doexe ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ ${EBUILD_PHASE} != install ]] && die "${FUNCNAME} can only be used in src_install";
    local f;
    for f in "$@";
    do
        python_newexe "${f}" "${f##*/}";
    done
}
python_doheader ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ ${EBUILD_PHASE} != install ]] && die "${FUNCNAME} can only be used in src_install";
    [[ -n ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).';
    local includedir=$(python_get_includedir);
    local d=${includedir#${EPREFIX}};
    ( insopts -m 0644;
    insinto "${d}";
    doins -r "${@}" || return ${?} )
}
python_domodule ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ -n ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).';
    local d;
    if [[ ${_PYTHON_MODULEROOT} == /* ]]; then
        d=${_PYTHON_MODULEROOT};
    else
        local sitedir=$(python_get_sitedir);
        d=${sitedir#${EPREFIX}}/${_PYTHON_MODULEROOT//.//};
    fi;
    if [[ ${EBUILD_PHASE} == install ]]; then
        ( insopts -m 0644;
        insinto "${d}";
        doins -r "${@}" || return ${?} );
        python_optimize "${ED%/}/${d}";
    else
        if [[ -n ${BUILD_DIR} ]]; then
            local dest=${BUILD_DIR}/install${EPREFIX}/${d};
            mkdir -p "${dest}" || die;
            cp -pR "${@}" "${dest}/" || die;
            ( cd "${dest}" && chmod -R a+rX "${@##*/}" ) || die;
        else
            die "${FUNCNAME} can only be used in src_install or with BUILD_DIR set";
        fi;
    fi
}
python_doscript ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ ${EBUILD_PHASE} != install ]] && die "${FUNCNAME} can only be used in src_install";
    local _PYTHON_REWRITE_SHEBANG=1;
    python_doexe "${@}"
}
python_export_utf8_locale ()
{
    debug-print-function ${FUNCNAME} "${@}";
    type locale &> /dev/null || return 0;
    if [[ $(locale charmap) != UTF-8 ]]; then
        local lang locales="C.UTF-8 en_US.UTF-8 en_GB.UTF-8 $(locale -a)";
        for lang in ${locales};
        do
            if [[ $(LC_ALL=${lang} locale charmap 2>/dev/null) == UTF-8 ]]; then
                if _python_check_locale_sanity "${lang}"; then
                    export LC_CTYPE=${lang};
                    if [[ -n ${LC_ALL} ]]; then
                        export LC_NUMERIC=${LC_ALL};
                        export LC_TIME=${LC_ALL};
                        export LC_COLLATE=${LC_ALL};
                        export LC_MONETARY=${LC_ALL};
                        export LC_MESSAGES=${LC_ALL};
                        export LC_PAPER=${LC_ALL};
                        export LC_NAME=${LC_ALL};
                        export LC_ADDRESS=${LC_ALL};
                        export LC_TELEPHONE=${LC_ALL};
                        export LC_MEASUREMENT=${LC_ALL};
                        export LC_IDENTIFICATION=${LC_ALL};
                        export LC_ALL=;
                    fi;
                    return 0;
                fi;
            fi;
        done;
        ewarn "Could not find a UTF-8 locale. This may trigger build failures in";
        ewarn "some python packages. Please ensure that a UTF-8 locale is listed in";
        ewarn "/etc/locale.gen and run locale-gen.";
        return 1;
    fi;
    return 0
}
python_fix_shebang ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ -n ${EPYTHON} ]] || die "${FUNCNAME}: EPYTHON unset (pkg_setup not called?)";
    local force quiet;
    while [[ -n ${@} ]]; do
        case "${1}" in
            -f | --force)
                force=1;
                shift
            ;;
            -q | --quiet)
                quiet=1;
                shift
            ;;
            --)
                shift;
                break
            ;;
            *)
                break
            ;;
        esac;
    done;
    [[ -n ${1} ]] || die "${FUNCNAME}: no paths given";
    local path f;
    for path in "$@";
    do
        local any_fixed is_recursive;
        [[ -d ${path} ]] && is_recursive=1;
        while IFS= read -r -d '' f; do
            local shebang i;
            local error= match=;
            IFS= read -r shebang < "${f}";
            if [[ ${shebang} == '#!'* ]]; then
                local split_shebang=();
                read -r -a split_shebang <<< ${shebang#"#!"} || die;
                local in_path=${split_shebang[0]};
                local from='^#! *[^ ]*';
                if [[ ${in_path} == */env ]]; then
                    in_path=${split_shebang[1]};
                    from+=' *[^ ]*';
                fi;
                case ${in_path##*/} in
                    "${EPYTHON}")
                        match=1
                    ;;
                    python | python3)
                        match=1
                    ;;
                    python2 | python[23].[0-9] | python3.[1-9][0-9] | pypy | pypy3 | jython[23].[0-9])
                        match=1;
                        error=1
                    ;;
                esac;
            fi;
            [[ -n ${force} ]] && error=;
            if [[ ! -n ${match} ]]; then
                [[ -n ${is_recursive} ]] && continue;
                error=1;
            fi;
            if [[ ! -n ${quiet} ]]; then
                einfo "Fixing shebang in ${f#${D%/}}.";
            fi;
            if [[ ! -n ${error} ]]; then
                debug-print "${FUNCNAME}: in file ${f#${D%/}}";
                debug-print "${FUNCNAME}: rewriting shebang: ${shebang}";
                sed -i -e "1s@${from}@#!${EPREFIX}/usr/bin/${EPYTHON}@" "${f}" || die;
                any_fixed=1;
            else
                eerror "The file has incompatible shebang:";
                eerror "  file: ${f#${D%/}}";
                eerror "  current shebang: ${shebang}";
                eerror "  requested impl: ${EPYTHON}";
                die "${FUNCNAME}: conversion of incompatible shebang requested";
            fi;
        done < <(find -H "${path}" -type f -print0 || die);
        if [[ ! -n ${any_fixed} ]]; then
            eerror "QA error: ${FUNCNAME}, ${path#${D%/}} did not match any fixable files.";
            eerror "There are no Python files in specified directory.";
            die "${FUNCNAME} did not match any fixable files";
        fi;
    done
}
python_gen_cond_dep ()
{
    debug-print-function ${FUNCNAME} "${@}";
    local impl matches=();
    local dep=${1};
    shift;
    _python_verify_patterns "${@}";
    for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}";
    do
        if _python_impl_matches "${impl}" "${@}"; then
            local single_usedep="python_single_target_${impl}(-)";
            local multi_usedep="python_targets_${impl}(-)";
            local subdep=${dep//\$\{PYTHON_SINGLE_USEDEP\}/${single_usedep}};
            matches+=("python_single_target_${impl}? (
                                ${subdep//\$\{PYTHON_USEDEP\}/${multi_usedep}} )");
        fi;
    done;
    echo "${matches[@]}"
}
python_gen_impl_dep ()
{
    debug-print-function ${FUNCNAME} "${@}";
    local impl;
    local matches=();
    local PYTHON_REQ_USE=${1};
    shift;
    _python_verify_patterns "${@}";
    for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}";
    do
        if _python_impl_matches "${impl}" "${@}"; then
            local PYTHON_PKG_DEP;
            _python_export "${impl}" PYTHON_PKG_DEP;
            matches+=("python_single_target_${impl}? ( ${PYTHON_PKG_DEP} )");
        fi;
    done;
    echo "${matches[@]}"
}
python_gen_useflags ()
{
    debug-print-function ${FUNCNAME} "${@}";
    local impl matches=();
    _python_verify_patterns "${@}";
    for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}";
    do
        if _python_impl_matches "${impl}" "${@}"; then
            matches+=("python_single_target_${impl}");
        fi;
    done;
    echo "${matches[@]}"
}
python_get_CFLAGS ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _python_export "${@}" PYTHON_CFLAGS;
    echo "${PYTHON_CFLAGS}"
}
python_get_LIBS ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _python_export "${@}" PYTHON_LIBS;
    echo "${PYTHON_LIBS}"
}
python_get_PYTHON_CONFIG ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _python_export "${@}" PYTHON_CONFIG;
    echo "${PYTHON_CONFIG}"
}
python_get_includedir ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _python_export "${@}" PYTHON_INCLUDEDIR;
    echo "${PYTHON_INCLUDEDIR}"
}
python_get_library_path ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _python_export "${@}" PYTHON_LIBPATH;
    echo "${PYTHON_LIBPATH}"
}
python_get_scriptdir ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _python_export "${@}" PYTHON_SCRIPTDIR;
    echo "${PYTHON_SCRIPTDIR}"
}
python_get_sitedir ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _python_export "${@}" PYTHON_SITEDIR;
    echo "${PYTHON_SITEDIR}"
}
python_has_version ()
{
    debug-print-function ${FUNCNAME} "${@}";
    local root_arg=(-b);
    case ${1} in
        -b | -d | -r)
            root_arg=("${1}");
            shift
        ;;
    esac;
    local pkg;
    for pkg in "$@";
    do
        ebegin "    ${pkg}";
        has_version "${root_arg[@]}" "${pkg}";
        eend ${?} || return;
    done;
    return 0
}
python_moduleinto ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _PYTHON_MODULEROOT=${1}
}
python_newexe ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ ${EBUILD_PHASE} != install ]] && die "${FUNCNAME} can only be used in src_install";
    [[ -n ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).';
    [[ ${#} -eq 2 ]] || die "Usage: ${FUNCNAME} <path> <new-name>";
    local wrapd=${_PYTHON_SCRIPTROOT:-/usr/bin};
    local f=${1};
    local newfn=${2};
    local scriptdir=$(python_get_scriptdir);
    local d=${scriptdir#${EPREFIX}};
    ( dodir "${wrapd}";
    exeopts -m 0755;
    exeinto "${d}";
    newexe "${f}" "${newfn}" || return ${?} );
    local dosym=dosym;
    [[ ${EAPI} == 7 ]] && dosym=dosym8;
    "${dosym}" -r /usr/lib/python-exec/python-exec2 "${wrapd}/${newfn}";
    if [[ -n ${_PYTHON_REWRITE_SHEBANG} ]]; then
        python_fix_shebang -q "${ED%/}/${d}/${newfn}";
    fi
}
python_newscript ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ ${EBUILD_PHASE} != install ]] && die "${FUNCNAME} can only be used in src_install";
    local _PYTHON_REWRITE_SHEBANG=1;
    python_newexe "${@}"
}
python_optimize ()
{
    debug-print-function ${FUNCNAME} "${@}";
    [[ -n ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).';
    local PYTHON=${PYTHON};
    [[ -n ${PYTHON} ]] || _python_export PYTHON;
    [[ -x ${PYTHON} ]] || die "PYTHON (${PYTHON}) is not executable";
    if [[ ${#} -eq 0 ]]; then
        local f;
        while IFS= read -r -d '' f; do
            if [[ ${f} == /* && -d ${D%/}${f} ]]; then
                set -- "${D%/}${f}" "${@}";
            fi;
        done < <(
                        "${PYTHON}" - <<-EOF || die
                                import sys
                                print("".join(x + "\0" for x in sys.path))
                        EOF
                );
        debug-print "${FUNCNAME}: using sys.path: ${*/%/;}";
    fi;
    local jobs=$(makeopts_jobs);
    local d;
    for d in "$@";
    do
        local instpath=${d#${D%/}};
        instpath=/${instpath##/};
        einfo "Optimize Python modules for ${instpath}";
        case "${EPYTHON}" in
            python3.8)
                "${PYTHON}" -m compileall -j "${jobs}" -q -f -d "${instpath}" "${d}";
                "${PYTHON}" -O -m compileall -j "${jobs}" -q -f -d "${instpath}" "${d}";
                "${PYTHON}" -OO -m compileall -j "${jobs}" -q -f -d "${instpath}" "${d}"
            ;;
            python* | pypy3)
                "${PYTHON}" -m compileall -j "${jobs}" -o 0 -o 1 -o 2 --hardlink-dupes -q -f -d "${instpath}" "${d}"
            ;;
            pypy | jython2.7)
                "${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}"
            ;;
            *)
                die "${FUNCNAME}: unexpected EPYTHON=${EPYTHON}"
            ;;
        esac;
    done
}
python_scriptinto ()
{
    debug-print-function ${FUNCNAME} "${@}";
    _PYTHON_SCRIPTROOT=${1}
}
python_setup ()
{
    debug-print-function ${FUNCNAME} "${@}";
    unset EPYTHON;
    if [[ -n ${PYTHON_COMPAT_OVERRIDE} ]]; then
        local impls=(${PYTHON_COMPAT_OVERRIDE});
        [[ ${#impls[@]} -eq 1 ]] || die "PYTHON_COMPAT_OVERRIDE must name exactly one implementation for python-single-r1";
        ewarn "WARNING: PYTHON_COMPAT_OVERRIDE in effect. The following Python";
        ewarn "implementation will be used:";
        ewarn;
        ewarn " ${PYTHON_COMPAT_OVERRIDE}";
        ewarn;
        ewarn "Dependencies won't be satisfied, and PYTHON_SINGLE_TARGET flags will be ignored.";
        _python_export "${impls[0]}" EPYTHON PYTHON;
        _python_wrapper_setup;
        einfo "Using ${EPYTHON} to build";
        return;
    fi;
    local impl;
    for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}";
    do
        if use "python_single_target_${impl}"; then
            if [[ -n ${EPYTHON} ]]; then
                eerror "Your PYTHON_SINGLE_TARGET setting lists more than a single Python";
                eerror "implementation. Please set it to just one value. If you need";
                eerror "to override the value for a single package, please use package.env";
                eerror "or an equivalent solution (man 5 portage).";
                echo;
                die "More than one implementation in PYTHON_SINGLE_TARGET.";
            fi;
            _python_export "${impl}" EPYTHON PYTHON;
            _python_wrapper_setup;
            einfo "Using ${EPYTHON} to build";
        fi;
    done;
    if [[ ! -n ${EPYTHON} ]]; then
        eerror "No Python implementation selected for the build. Please set";
        eerror "the PYTHON_SINGLE_TARGET variable in your make.conf to one";
        eerror "of the following values:";
        eerror;
        eerror "${_PYTHON_SUPPORTED_IMPLS[@]}";
        echo;
        die "No supported Python implementation in PYTHON_SINGLE_TARGET.";
    fi
}
raw-ldflags ()
{
    local x input="$@";
    [[ -z ${input} ]] && input=${LDFLAGS};
    set --;
    for x in ${input};
    do
        case ${x} in
            -Wl,*)
                x=${x#-Wl,};
                set -- "$@" ${x//,/ }
            ;;
            *)

            ;;
        esac;
    done;
    echo "$@"
}
replace-cpu-flags ()
{
    local newcpu="$#";
    newcpu="${!newcpu}";
    while [ $# -gt 1 ]; do
        replace-flags "-march=${1}" "-march=${newcpu}";
        replace-flags "-mcpu=${1}" "-mcpu=${newcpu}";
        replace-flags "-mtune=${1}" "-mtune=${newcpu}";
        shift;
    done;
    return 0
}
replace-flags ()
{
    [[ $# != 2 ]] && die "Usage: replace-flags <old flag> <new flag>";
    local f var new;
    for var in $(all-flag-vars);
    do
        new=();
        for f in ${!var};
        do
            [[ ${f} == ${1} ]] && f=${2};
            new+=("${f}");
        done;
        export ${var}="${new[*]}";
    done;
    return 0
}
replace-sparc64-flags ()
{
    [[ $# -ne 0 ]] && die "replace-sparc64-flags takes no arguments";
    local SPARC64_CPUS="ultrasparc3 ultrasparc v9";
    if [ "${CFLAGS/mtune}" != "${CFLAGS}" ]; then
        for x in ${SPARC64_CPUS};
        do
            CFLAGS="${CFLAGS/-mcpu=${x}/-mcpu=v8}";
        done;
    else
        for x in ${SPARC64_CPUS};
        do
            CFLAGS="${CFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}";
        done;
    fi;
    if [ "${CXXFLAGS/mtune}" != "${CXXFLAGS}" ]; then
        for x in ${SPARC64_CPUS};
        do
            CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8}";
        done;
    else
        for x in ${SPARC64_CPUS};
        do
            CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}";
        done;
    fi;
    export CFLAGS CXXFLAGS
}
setup-allowed-flags ()
{
    [[ ${EAPI} == [67] ]] || die "Internal function ${FUNCNAME} is not available in EAPI ${EAPI}.";
    _setup-allowed-flags "$@"
}
src_compile ()
{
    sed -i '856 { s/.*/&\n              #define FALSE 0/ }' provider/client/ECGenericProp.cpp;
    emake || die "emake failed";
    sed -i '4880,4888s/7/8/g' /var/tmp/portage/net-mail/kopanocore-9999/temp/environment
}
src_configure ()
{
    append-flags -fpermissive;
    econf --enable-release --enable-unicode --enable-epoll --with-userscript-prefix=/etc/kopano/userscripts --with-quotatemplate-prefix=/etc/kopano/quotamails --with-searchscripts-prefix=/etc/kopano/searchscripts $(use_enable debug) $(use_enable icu) $(use_enable static)
}
src_install ()
{
    make DESTDIR="${D}" install || die "make install failed";
    sed -i '4880,4888s/7/8/g' /var/tmp/portage/net-mail/kopanocore-9999/temp/environment;
    php-ext-source-r3_createinifiles;
    if use logrotate; then
        insinto /etc/logrotate.d;
        newins "${FILESDIR}"/kopano.logrotate kopano || die "Failed to install logrotate";
    else
        rm "${D}/etc/logrotate.d/kopano";
    fi;
    if use ldap; then
        insinto /etc/openldap/schema;
        doins "${S}"/installer/ldap/kopano.* || die "Failed to install ldap schema files";
    fi;
    dodir /etc/kopano;
    insinto /etc/kopano;
    doins "${S}"/installer/linux/*.cfg || die "Failed to install config files";
    fowners -Rf "${KOPANO_USER}":"root" "/etc/kopano";
    dodir /var/log/kopano;
    keepdir /var/log/kopano;
    fowners -Rf "${KOPANO_USER}":"root" "/var/log/kopano";
    dodir /var/lib/kopano;
    keepdir /var/lib/kopano;
    dodir /var/lib/kopano/spooler/plugins;
    dodir /var/lib/kopano/dagent/plugins;
    fowners -Rf "${KOPANO_USER}":"root" "/var/lib/kopano";
    for service in ${KOPANO_SERVICES};
    do
        newconfd "${FILESDIR}/kopano-${service}.confd" "kopano-${service}";
        newinitd "${FILESDIR}/kopano-${service}.initd" "kopano-${service}";
    done
}
src_prepare ()
{
    use php_targets_php8-1 && ln -s "${S}/php8-ext" "${WORKDIR}/php8.1";
    epatch "${FILESDIR}/kopanocore-9999-automake.patch";
    use kerberos && epatch "${FILESDIR}/kopanocore-8.2.0-kerberos.patch";
    epatch "${FILESDIR}/kopanocore-8.2.0-search.patch";
    eapply_user;
    eautoreconf;
    sed -i '18496,18564 s/\b3\b/4/g' configure;
    sed -i '4167s/.*/    mkdir -p "${PHP_EXT_S}" || die "failed to create directory ${PHP_EXT_S}"\n\n    cd "${PHP_EXT_S}" || die "failed to change directory to ${PHP_EXT_S}"/' /var/tmp/portage/net-mail/kopanocore-9999/temp/environment
}
src_test ()
{
    php-ext-source-r3_src_test "$@"
}
src_unpack ()
{
    git-r3_src_unpack
}
strip-flags ()
{
    [[ $# -ne 0 ]] && die "strip-flags takes no arguments";
    local x y var;
    local ALLOWED_FLAGS;
    _setup-allowed-flags;
    set -f;
    for var in $(all-flag-vars);
    do
        local new=();
        for x in ${!var};
        do
            for y in "${ALLOWED_FLAGS[@]}";
            do
                if [[ ${x} == ${y} ]]; then
                    new+=("${x}");
                    break;
                fi;
            done;
        done;
        if _is_flagq ${var} "-O*" && ! _is_flagq new "-O*"; then
            new+=(-O2);
        fi;
        if [[ ${!var} != "${new[*]}" ]]; then
            einfo "strip-flags: ${var}: changed '${!var}' to '${new[*]}'";
        fi;
        export ${var}="${new[*]}";
    done;
    set +f;
    return 0
}
strip-linguas ()
{
    local d f ls newls nols;
    if [[ $1 == "-i" ]] || [[ $1 == "-u" ]]; then
        local op=$1;
        shift;
        ls=$(find "$1" -name '*.po' -exec basename {} .po ';');
        shift;
        for d in "$@";
        do
            if [[ ${op} == "-u" ]]; then
                newls=${ls};
            else
                newls="";
            fi;
            for f in $(find "${d}" -name '*.po' -exec basename {} .po ';');
            do
                if [[ ${op} == "-i" ]]; then
                    has ${f} ${ls} && newls+=" ${f}";
                else
                    has ${f} ${ls} || newls+=" ${f}";
                fi;
            done;
            ls=${newls};
        done;
    else
        ls="$@";
    fi;
    nols="";
    newls="";
    for f in ${LINGUAS};
    do
        if has ${f} ${ls}; then
            newls+=" ${f}";
        else
            nols+=" ${f}";
        fi;
    done;
    [[ -n ${nols} ]] && einfo "Sorry, but ${PN} does not support the LINGUAS:" ${nols};
    export LINGUAS=${newls:1}
}
strip-unsupported-flags ()
{
    [[ $# -ne 0 ]] && die "strip-unsupported-flags takes no arguments";
    export CFLAGS=$(test-flags-CC ${CFLAGS});
    export CXXFLAGS=$(test-flags-CXX ${CXXFLAGS});
    export FFLAGS=$(test-flags-F77 ${FFLAGS});
    export FCFLAGS=$(test-flags-FC ${FCFLAGS});
    export LDFLAGS=$(test-flags-CCLD ${LDFLAGS})
}



I'm encountering the same error even after making the change. Additionally, the display is still showing "7" instead of "8". Could you advise if there's something specific I should check? Please correct me if my approach seems incorrect.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Wed Nov 22, 2023 3:15 pm    Post subject: Reply with quote

That file shows the state of the ebuild as of when it bailed out. If you restart the merge afterward, you normally wipe out the modified environment and rerun the build, which would recreate the environment that failed the first time. Do you need PHP support? Disabling it entirely might be the simplest path forward.
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Wed Nov 22, 2023 3:57 pm    Post subject: Reply with quote

I'm sorry Hu, I didn't quite catch the meaning of your comments. Could you please simplify them for me?
Back to top
View user's profile Send private message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 20

PostPosted: Fri Nov 24, 2023 9:22 am    Post subject: Reply with quote

Yes, you're right. Even after making changes to the environment file, the error persists due to it resetting the environment and i try to add those modifications in ebuild file but not getting expected result. Can you help me out how to disable that?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Fri Nov 24, 2023 4:15 pm    Post subject: Reply with quote

I cannot see how to simplify my comments, no. I suggested that your current approach cannot work, and that you should consider disabling PHP support, since the failure occurs while processing PHP-related features. I also asked above why you are using a live ebuild of abandoned sources. You never answered that.

The only way to disable rewriting the environment would be to bypass the cleanup logic, but I am doubtful that you would get what you want even if you managed that. Instead, you need to have the environment generated correctly at the beginning, rather than trying to edit it later. No, I cannot tell you how to do that. That would be specific to how Portage / PHP / this package interact. I am not familiar enough with that interaction to offer advice beyond "Do not use PHP." Have you determined that PHP is mandatory for your use case? If not, please try disabling use of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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