build / update exim show error

Seems custom libxml2 liked with custom libiconv replaced system libxml2 library. This gives us hints on how to untangle this mess. Custom libxml2 needs to be removed first.

This is Greek to me!!

I'm happy to have been able to help.
 
Yes this helped a lot! I was installing custom libraries trying to recreate a system similar to what you might have. Installing any library on its own does not achieve the desired effect. Even installing multiple libraries does not help because they need to be installed in precise order to create this nasty web.

Critical part was installing custom libxml2 only AFTER custom libiconv was installed to make it link against it.
 
Glad to see you're working on these issues so quickly @fln (y) Over the past few years a lot of libraries were installed with CustomBuild and suddenly support for it was dropped without any proper cleanup and now these issues came up with recent DA releases.
With this change doing rm -f /usr/local/include/{libcharset.h,localcharset.h,iconv.h} should allow building both exim and PHP successfully.
Can you also add libspf2 for Exim to that list? If it weren’t for this post from @ccto a lot of people are still running vulnerable versions because CB at some point installed it and didn’t remove it completely.

Isn't this a good new maintenance task for Admin Tools -> Maintenance? A check to verify if the system has any libraries that CB installed in the past? And instructions on how to clear them?
 
Yes we are working on that. Fixing a single system would be trivial, but we need to have a bullet-proof solution for a wide range of systems with varying amount of custom libraries. We need to be extra careful to not perform any destructive operations automatically (like removing libraries without ensuring all usage places of library are updated or removed).

I mean it is ok if admin removes the files himself like following suggestions in my previous messages, he is aware of the action he did and it is easy to restore it (be it backup, move instead or remove, or just download and install custom lib again). But we can not do this in CustomBuild automatically, because it could leave the system broken and admin without any clue who when or why did this.

The plan right now is to build the dependency graph on how those libraries could have interacted between one another and start removing them one by one or in batches. It would be implemented as a recommended software removal from CustomBuild visible with da build list_removals, or via CB GUI. This would give system admins an option to choose the time of when to perform the removal (not being removed automatically when building some new software or upgrading). Also if removal triggers any problems it would be much easier to report, because it would be clear what caused it.
 
Maybe also doublecheck if you might want to change something about removal in the script.
In /usr/local/lib and in /usr/local/include I got a lot of imagemick 7 in there.

In /usr/local/lib/ there is a directory called ioncube on my system (freshly installed Alma 9 server), which contains ioncube_loader_lin_8.1.so and ioncube_loader_lin_8.2.so which would also be removed then.
Those are nowhere to be found anywhere else on the system. So they might be put there by Softaculous or DA ioncube install. I presume these are needed for ioncube to work, right?

I haven't checked the complete script, just had a quick look.
Ioncube and Imagemagick stuff is placed there normally by DA. Since I rebuild everything after removing these libraries, they are recreated, which means things are fine once "da build all d" is finished. Since we saw huge differences between systems when it came to the contents of /usr/local/include and /usr/local/lib, I chose that approach to be sure nothing is linked against old (and insecure) libraries. I would recommend to @fln to consider a similar approach for DA itself, as it's really a security risk in my opinion that so many systems are linked against so many old libraries. To help I've included some contents of /usr/local/include and /usr/local/lib from our older servers below:

Code:
root@web12:/usr/local/include# ls -l
total 644
-rw-r--r-- 1 root staff   1861 Aug  2  2021 clamav-types.h
-rw-r--r-- 1 root staff   2062 Aug  2  2021 clamav-version.h
-rw-r--r-- 1 root staff  58833 Aug  2  2021 clamav.h
drwxr-sr-x 3 root staff   4096 Nov 23  2020 freetype2
-rw-r--r-- 1 root staff   9249 Aug  4  2020 iconv.h
-rw-r--r-- 1 root staff   1757 Aug  4  2020 jconfig.h
-rw-r--r-- 1 root staff  14588 Aug  4  2020 jerror.h
-rw-r--r-- 1 root staff  14925 Aug  4  2020 jmorecfg.h
-rw-r--r-- 1 root staff  49408 Aug  4  2020 jpeglib.h
-rw-r--r-- 1 root staff   1513 Aug  4  2020 libcharset.h
drwxr-sr-x 2 root staff   4096 Nov 23  2020 libexslt
-rw-r--r-- 1 root staff  10708 Aug  2  2021 libfreshclam.h
drwxr-sr-x 2 root staff   4096 Jun 28  2017 libpng
drwxr-sr-x 2 root staff   4096 Jun 12  2019 libpng16
drwxr-sr-x 2 root staff   4096 Jun 12  2019 libsodium
drwxr-sr-x 3 root staff   4096 Jun 28  2017 libxml2
drwxr-sr-x 2 root staff   4096 Nov 23  2020 libxslt
-rw-r--r-- 1 root staff   6059 Aug  4  2020 localcharset.h
-rw-r--r-- 1 root staff  11722 Jun 28  2017 ltdl.h
-rw-r--r-- 1 root staff     82 Jun 28  2017 mcrypt.h
-rw-r--r-- 1 root staff    223 Jun 28  2017 mhash.h
drwxr-sr-x 2 root staff   4096 Jun 28  2017 mutils
drwxr-sr-x 2 root staff   4096 May  6  2022 nghttp2
-rw-r--r-- 1 root staff  31718 Feb  5  2021 pcre.h
-rw-r--r-- 1 root staff  47120 Aug  4  2020 pcre2.h
-rw-r--r-- 1 root staff   6677 Aug  4  2020 pcre2posix.h
-rw-r--r-- 1 root staff   6600 Feb  5  2021 pcre_scanner.h
-rw-r--r-- 1 root staff   6312 Feb  5  2021 pcre_stringpiece.h
-rw-r--r-- 1 root staff  26529 Feb  5  2021 pcrecpp.h
-rw-r--r-- 1 root staff   6783 Feb  5  2021 pcrecpparg.h
-rw-r--r-- 1 root staff   5452 Feb  5  2021 pcreposix.h
drwxr-sr-x 8 root staff   4096 Jun 28  2017 php
lrwxrwxrwx 1 root staff     14 Jun 12  2019 png.h -> libpng16/png.h
lrwxrwxrwx 1 root staff     18 Jun 12  2019 pngconf.h -> libpng16/pngconf.h
lrwxrwxrwx 1 root staff     21 Jun 12  2019 pnglibconf.h -> libpng16/pnglibconf.h
drwxr-sr-x 2 root staff   4096 Aug  4  2020 sodium
-rw-r--r-- 1 root staff   2529 Aug  4  2020 sodium.h
drwxr-sr-x 2 root staff   4096 May  6  2022 spf2
-rw-r--r-- 1 root staff   3926 Jun 28  2017 srs_alt.h
drwxr-sr-x 2 root staff   4096 Aug  4  2020 webp
-rw-r--r-- 1 root staff  11503 Jan  6  2021 zbuff.h
-rw-r--r-- 1 root staff  25631 May  6  2022 zdict.h
-rw-r--r-- 1 root staff  25128 Feb  3  2020 zip.h
-rw-r--r-- 1 root staff   1139 Aug  4  2020 zipconf.h
-rw-r--r-- 1 root staff 148639 May  6  2022 zstd.h
-rw-r--r-- 1 root staff   3817 May  6  2022 zstd_errors.h
root@web12:/usr/local/include# cd ../lib
root@web12:/usr/local/lib# ls -l
total 118868
-rwxr-xr-x 1 root staff 1471541 Oct 11 09:45 ZendGuardLoader5.6.so
-rw-r--r-- 1 root staff     222 Jun 12  2019 charset.alias
drwxr-sr-x 3 root staff    4096 Jun 28  2017 cmake
drwxr-xr-x 2 root root     4096 Oct 11 09:45 ioncube
-rw-r--r-- 1 root staff   26088 Aug  4  2020 libcharset.a
-rwxr-xr-x 1 root staff     937 Aug  4  2020 libcharset.la
lrwxrwxrwx 1 root staff      19 Aug  4  2020 libcharset.so -> libcharset.so.1.0.0
lrwxrwxrwx 1 root staff      19 Aug  4  2020 libcharset.so.1 -> libcharset.so.1.0.0
-rwxr-xr-x 1 root staff   17904 Aug  4  2020 libcharset.so.1.0.0
-rwxr-xr-x 1 root staff    1189 Aug  2  2021 libclamav.la
lrwxrwxrwx 1 root staff      18 Aug  2  2021 libclamav.so -> libclamav.so.9.0.5
lrwxrwxrwx 1 root staff      18 Aug  2  2021 libclamav.so.9 -> libclamav.so.9.0.5
-rwxr-xr-x 1 root staff 9543704 Aug  2  2021 libclamav.so.9.0.5
-rwxr-xr-x 1 root staff    1053 Aug  2  2021 libclammspack.la
lrwxrwxrwx 1 root staff      22 Aug  2  2021 libclammspack.so -> libclammspack.so.0.1.0
lrwxrwxrwx 1 root staff      22 Aug  2  2021 libclammspack.so.0 -> libclammspack.so.0.1.0
-rwxr-xr-x 1 root staff  396384 Aug  2  2021 libclammspack.so.0.1.0
-rwxr-xr-x 1 root staff    1047 Aug  2  2021 libclamunrar.la
lrwxrwxrwx 1 root staff      21 Aug  2  2021 libclamunrar.so -> libclamunrar.so.9.0.5
lrwxrwxrwx 1 root staff      21 Aug  2  2021 libclamunrar.so.9 -> libclamunrar.so.9.0.5
-rwxr-xr-x 1 root staff 1954888 Aug  2  2021 libclamunrar.so.9.0.5
-rwxr-xr-x 1 root staff    1115 Aug  2  2021 libclamunrar_iface.la
lrwxrwxrwx 1 root staff      27 Aug  2  2021 libclamunrar_iface.so -> libclamunrar_iface.so.9.0.5
lrwxrwxrwx 1 root staff      27 Aug  2  2021 libclamunrar_iface.so.9 -> libclamunrar_iface.so.9.0.5
-rwxr-xr-x 1 root staff   51416 Aug  2  2021 libclamunrar_iface.so.9.0.5
lrwxrwxrwx 1 root staff      16 May  6  2022 libcurl.so -> libcurl.so.4.8.0
-rw-r--r-- 1 root staff  635250 Nov 23  2020 libexslt.a
-rwxr-xr-x 1 root staff    1045 Nov 23  2020 libexslt.la
lrwxrwxrwx 1 root staff      18 Nov 23  2020 libexslt.so -> libexslt.so.0.8.20
lrwxrwxrwx 1 root staff      18 Nov 23  2020 libexslt.so.0 -> libexslt.so.0.8.20
-rwxr-xr-x 1 root staff  341592 Jun 28  2017 libexslt.so.0.8.17
-rwxr-xr-x 1 root staff  345888 Nov 23  2020 libexslt.so.0.8.20
-rw-r--r-- 1 root staff 6743832 Nov 23  2020 libfreetype.a
-rwxr-xr-x 1 root staff    1027 Nov 23  2020 libfreetype.la
lrwxrwxrwx 1 root staff      21 Nov 23  2020 libfreetype.so -> libfreetype.so.6.17.4
lrwxrwxrwx 1 root staff      21 Nov 23  2020 libfreetype.so.6 -> libfreetype.so.6.17.4
-rwxr-xr-x 1 root staff 2932920 Jun 28  2017 libfreetype.so.6.13.0
-rwxr-xr-x 1 root staff 3166512 Jun 12  2019 libfreetype.so.6.17.0
-rwxr-xr-x 1 root staff 3167936 Jul 16  2019 libfreetype.so.6.17.1
-rwxr-xr-x 1 root staff 3236880 Oct  1  2020 libfreetype.so.6.17.2
-rwxr-xr-x 1 root staff 3249128 Nov 23  2020 libfreetype.so.6.17.4
-rwxr-xr-x 1 root staff    1302 Aug  2  2021 libfreshclam.la
lrwxrwxrwx 1 root staff      21 Aug  2  2021 libfreshclam.so -> libfreshclam.so.2.0.1
lrwxrwxrwx 1 root staff      21 Aug  2  2021 libfreshclam.so.2 -> libfreshclam.so.2.0.1
-rwxr-xr-x 1 root staff  597920 Aug 27  2020 libfreshclam.so.2.0.0
-rwxr-xr-x 1 root staff  747088 Aug  2  2021 libfreshclam.so.2.0.1
-rwxr-xr-x 1 root staff     913 Aug  4  2020 libiconv.la
lrwxrwxrwx 1 root staff      17 Aug  4  2020 libiconv.so -> libiconv.so.2.6.1
lrwxrwxrwx 1 root staff      17 Aug  4  2020 libiconv.so.2 -> libiconv.so.2.6.1
-rw-r--r-- 1 root staff 1598512 Jun 28  2017 libiconv.so.2.5.1
-rwxr-xr-x 1 root staff 1613472 Jun 12  2019 libiconv.so.2.6.0
-rwxr-xr-x 1 root staff 1600400 Aug  4  2020 libiconv.so.2.6.1
-rw-r--r-- 1 root staff 2236532 Aug  4  2020 libjpeg.a
-rwxr-xr-x 1 root staff     917 Aug  4  2020 libjpeg.la
lrwxrwxrwx 1 root staff      16 Aug  4  2020 libjpeg.so -> libjpeg.so.9.4.0
lrwxrwxrwx 1 root staff      16 Aug  4  2020 libjpeg.so.9 -> libjpeg.so.9.4.0
-rwxr-xr-x 1 root staff 1207448 Jun 12  2019 libjpeg.so.9.3.0
-rwxr-xr-x 1 root staff 1212872 Aug  4  2020 libjpeg.so.9.4.0
-rw-r--r-- 1 root staff  125516 Jun 28  2017 libltdl.a
-rwxr-xr-x 1 root staff     745 Jun 28  2017 libltdl.la
drwxr-sr-x 2 root staff    4096 Jun 28  2017 libmcrypt
-rwxr-xr-x 1 root staff     795 Jun 28  2017 libmcrypt.la
lrwxrwxrwx 1 root staff      18 Jun 28  2017 libmcrypt.so -> libmcrypt.so.4.4.8
lrwxrwxrwx 1 root staff      18 Jun 28  2017 libmcrypt.so.4 -> libmcrypt.so.4.4.8
-rwxr-xr-x 1 root staff  269608 Jun 28  2017 libmcrypt.so.4.4.8
-rw-r--r-- 1 root staff  569056 Jun 28  2017 libmhash.a
-rwxr-xr-x 1 root staff     815 Jun 28  2017 libmhash.la
lrwxrwxrwx 1 root staff      17 Jun 28  2017 libmhash.so -> libmhash.so.2.0.1
lrwxrwxrwx 1 root staff      17 Jun 28  2017 libmhash.so.2 -> libmhash.so.2.0.1
-rwxr-xr-x 1 root staff  383496 Jun 28  2017 libmhash.so.2.0.1
-rw-r--r-- 1 root staff 1389914 May  6  2022 libnghttp2.a
-rwxr-xr-x 1 root staff     959 May  6  2022 libnghttp2.la
lrwxrwxrwx 1 root staff      21 May  6  2022 libnghttp2.so -> libnghttp2.so.14.21.1
lrwxrwxrwx 1 root staff      21 May  6  2022 libnghttp2.so.14 -> libnghttp2.so.14.21.1
-rwxr-xr-x 1 root staff  633440 Aug  4  2020 libnghttp2.so.14.20.0
-rwxr-xr-x 1 root staff  678840 Feb  5  2021 libnghttp2.so.14.20.1
-rwxr-xr-x 1 root staff  809224 May  6  2022 libnghttp2.so.14.21.1
-rw-r--r-- 1 root staff  722292 Feb  5  2021 libpcre.a
-rwxr-xr-x 1 root staff     927 Feb  5  2021 libpcre.la
lrwxrwxrwx 1 root staff      17 Feb  5  2021 libpcre.so -> libpcre.so.1.2.12
lrwxrwxrwx 1 root staff      16 Jun 28  2017 libpcre.so.0 -> libpcre.so.0.0.1
-rwxr-xr-x 1 root staff  309456 Jun 28  2017 libpcre.so.0.0.1
lrwxrwxrwx 1 root staff      17 Feb  5  2021 libpcre.so.1 -> libpcre.so.1.2.12
-rwxr-xr-x 1 root staff  564920 Feb  5  2021 libpcre.so.1.2.12
-rw-r--r-- 1 root staff  798232 Aug  4  2020 libpcre2-8.a
-rwxr-xr-x 1 root staff     964 Aug  4  2020 libpcre2-8.la
lrwxrwxrwx 1 root staff      20 Aug  4  2020 libpcre2-8.so -> libpcre2-8.so.0.10.0
lrwxrwxrwx 1 root staff      20 Aug  4  2020 libpcre2-8.so.0 -> libpcre2-8.so.0.10.0
-rwxr-xr-x 1 root staff  599464 Aug  4  2020 libpcre2-8.so.0.10.0
-rw-r--r-- 1 root staff    7642 Aug  4  2020 libpcre2-posix.a
-rwxr-xr-x 1 root staff    1018 Aug  4  2020 libpcre2-posix.la
lrwxrwxrwx 1 root staff      23 Aug  4  2020 libpcre2-posix.so -> libpcre2-posix.so.2.0.3
lrwxrwxrwx 1 root staff      23 Aug  4  2020 libpcre2-posix.so.2 -> libpcre2-posix.so.2.0.3
-rwxr-xr-x 1 root staff   11128 Aug  4  2020 libpcre2-posix.so.2.0.3
-rw-r--r-- 1 root staff   50918 Feb  5  2021 libpcrecpp.a
-rwxr-xr-x 1 root staff     972 Feb  5  2021 libpcrecpp.la
lrwxrwxrwx 1 root staff      19 Feb  5  2021 libpcrecpp.so -> libpcrecpp.so.0.0.2
lrwxrwxrwx 1 root staff      19 Feb  5  2021 libpcrecpp.so.0 -> libpcrecpp.so.0.0.2
-rwxr-xr-x 1 root staff   45136 Jun 28  2017 libpcrecpp.so.0.0.0
-rwxr-xr-x 1 root staff   47640 Feb  5  2021 libpcrecpp.so.0.0.2
-rw-r--r-- 1 root staff    6816 Feb  5  2021 libpcreposix.a
-rwxr-xr-x 1 root staff     986 Feb  5  2021 libpcreposix.la
lrwxrwxrwx 1 root staff      21 Feb  5  2021 libpcreposix.so -> libpcreposix.so.0.0.7
lrwxrwxrwx 1 root staff      21 Feb  5  2021 libpcreposix.so.0 -> libpcreposix.so.0.0.7
-rwxr-xr-x 1 root staff   10520 Jun 28  2017 libpcreposix.so.0.0.0
-rwxr-xr-x 1 root staff   10920 Feb  5  2021 libpcreposix.so.0.0.7
lrwxrwxrwx 1 root staff      10 Jun 12  2019 libpng.a -> libpng16.a
lrwxrwxrwx 1 root staff      11 Jun 12  2019 libpng.la -> libpng16.la
lrwxrwxrwx 1 root staff      11 Jun 12  2019 libpng.so -> libpng16.so
-rw-r--r-- 1 root staff 1571226 Jun 12  2019 libpng16.a
-rwxr-xr-x 1 root staff     937 Jun 12  2019 libpng16.la
lrwxrwxrwx 1 root staff      19 Jun 12  2019 libpng16.so -> libpng16.so.16.37.0
lrwxrwxrwx 1 root staff      19 Jun 12  2019 libpng16.so.16 -> libpng16.so.16.37.0
-rwxr-xr-x 1 root staff  823400 Jun 28  2017 libpng16.so.16.29.0
-rwxr-xr-x 1 root staff  831648 Jun 12  2019 libpng16.so.16.37.0
-rw-r--r-- 1 root staff 4042178 Aug  4  2020 libsodium.a
-rwxr-xr-x 1 root staff     943 Aug  4  2020 libsodium.la
lrwxrwxrwx 1 root staff      19 Aug  4  2020 libsodium.so -> libsodium.so.23.3.0
lrwxrwxrwx 1 root staff      19 Aug  4  2020 libsodium.so.23 -> libsodium.so.23.3.0
-rwxr-xr-x 1 root staff 2516112 Jun 12  2019 libsodium.so.23.2.0
-rwxr-xr-x 1 root staff 2568216 Aug  4  2020 libsodium.so.23.3.0
-rw-r--r-- 1 root staff 1032316 May  6  2022 libspf2.a
-rwxr-xr-x 1 root staff     960 May  6  2022 libspf2.la
lrwxrwxrwx 1 root staff      16 May  6  2022 libspf2.so -> libspf2.so.2.1.0
lrwxrwxrwx 1 root staff      16 May  6  2022 libspf2.so.2 -> libspf2.so.2.1.0
-rwxr-xr-x 1 root staff  516080 May  6  2022 libspf2.so.2.1.0
-rw-r--r-- 1 root staff   79086 Jun 28  2017 libsrs_alt.a
-rwxr-xr-x 1 root staff     811 Jun 28  2017 libsrs_alt.la
lrwxrwxrwx 1 root staff      19 Jun 28  2017 libsrs_alt.so -> libsrs_alt.so.1.0.0
lrwxrwxrwx 1 root staff      19 Jun 28  2017 libsrs_alt.so.1 -> libsrs_alt.so.1.0.0
-rwxr-xr-x 1 root staff   53496 Jun 28  2017 libsrs_alt.so.1.0.0
-rw-r--r-- 1 root staff 5495418 Aug  4  2020 libwebp.a
-rwxr-xr-x 1 root staff     944 Aug  4  2020 libwebp.la
lrwxrwxrwx 1 root staff      16 Aug  4  2020 libwebp.so -> libwebp.so.7.1.0
lrwxrwxrwx 1 root staff      16 Aug  4  2020 libwebp.so.7 -> libwebp.so.7.1.0
-rwxr-xr-x 1 root staff 3362552 Jun 12  2019 libwebp.so.7.0.4
-rwxr-xr-x 1 root staff 3358768 Aug  4  2020 libwebp.so.7.1.0
-rw-r--r-- 1 root staff  114690 Aug  4  2020 libwebpdemux.a
-rwxr-xr-x 1 root staff    1005 Aug  4  2020 libwebpdemux.la
lrwxrwxrwx 1 root staff      21 Aug  4  2020 libwebpdemux.so -> libwebpdemux.so.2.0.6
lrwxrwxrwx 1 root staff      21 Aug  4  2020 libwebpdemux.so.2 -> libwebpdemux.so.2.0.6
-rwxr-xr-x 1 root staff   81128 Aug  4  2020 libwebpdemux.so.2.0.6
-rw-r--r-- 1 root staff 9069740 Nov 23  2020 libxml2.a
-rwxr-xr-x 1 root staff     970 Nov 23  2020 libxml2.la
lrwxrwxrwx 1 root staff      17 Nov 23  2020 libxml2.so -> libxml2.so.2.9.10
lrwxrwxrwx 1 root staff      17 Nov 23  2020 libxml2.so.2 -> libxml2.so.2.9.10
-rwxr-xr-x 1 root staff 4769712 Nov 23  2020 libxml2.so.2.9.10
-rwxr-xr-x 1 root staff 4851992 Jun 28  2017 libxml2.so.2.9.4
-rwxr-xr-x 1 root staff 4837776 Jun 12  2019 libxml2.so.2.9.8
-rwxr-xr-x 1 root staff 4829832 Aug  2  2019 libxml2.so.2.9.9
drwxr-sr-x 2 root staff    4096 Jun 28  2017 libxslt-plugins
-rw-r--r-- 1 root staff 1807676 Nov 23  2020 libxslt.a
-rwxr-xr-x 1 root staff    1012 Nov 23  2020 libxslt.la
lrwxrwxrwx 1 root staff      17 Nov 23  2020 libxslt.so -> libxslt.so.1.1.34
lrwxrwxrwx 1 root staff      17 Nov 23  2020 libxslt.so.1 -> libxslt.so.1.1.34
-rwxr-xr-x 1 root staff  956032 Jun 28  2017 libxslt.so.1.1.29
-rwxr-xr-x 1 root staff  954080 Jun 12  2019 libxslt.so.1.1.32
-rwxr-xr-x 1 root staff  958104 Aug  2  2019 libxslt.so.1.1.33
-rwxr-xr-x 1 root staff  963160 Nov 23  2020 libxslt.so.1.1.34
lrwxrwxrwx 1 root staff      11 Aug  4  2020 libzip.so -> libzip.so.5
lrwxrwxrwx 1 root staff      13 Aug  4  2020 libzip.so.5 -> libzip.so.5.1
-rw-r--r-- 1 root staff  146784 Aug  4  2020 libzip.so.5.1
-rw-r--r-- 1 root staff 1157300 May  6  2022 libzstd.a
lrwxrwxrwx 1 root staff      16 May  6  2022 libzstd.so -> libzstd.so.1.5.1
lrwxrwxrwx 1 root staff      16 May  6  2022 libzstd.so.1 -> libzstd.so.1.5.1
-rwxr-xr-x 1 root staff  907216 Jan  6  2021 libzstd.so.1.4.5
-rwxr-xr-x 1 root staff 1012568 May  6  2022 libzstd.so.1.5.1
lrwxrwxrwx 1 root staff      24 Aug  4  2020 php -> /usr/local/php71/lib/php
lrwxrwxrwx 1 root staff      31 Aug  4  2020 php.conf.d -> /usr/local/php74/lib/php.conf.d
lrwxrwxrwx 1 root staff      28 Aug  4  2020 php.ini -> /usr/local/php71/lib/php.ini
drwxr-sr-x 2 root staff    4096 Oct  9 10:59 pkgconfig
-rw-r--r-- 1 root staff 1590184 Jun 12  2019 preloadable_libiconv.so
drwxrwsr-x 4 root staff    4096 Oct 10 10:12 python2.7
drwxrwsr-x 3 root staff    4096 Mar 27  2021 python3.7
drwxr-sr-x 3 root staff    4096 Aug 14 17:46 python3.9
-rw-r--r-- 1 root staff     232 Nov 23  2020 xml2Conf.sh
-rw-r--r-- 1 root staff     251 Nov 23  2020 xsltConf.sh

Code:
root@int:/usr/local/include# ls -l
total 476
drwxr-sr-x 5 root staff   4096 Oct  3 18:13 ImageMagick-7
drwxr-sr-x 3 root staff   4096 Nov 16  2020 freetype2
-rw-r--r-- 1 root staff   9249 Aug 25  2020 iconv.h.bak
-rw-r--r-- 1 root staff   1757 Aug 25  2020 jconfig.h
-rw-r--r-- 1 root staff  14588 Aug 25  2020 jerror.h
-rw-r--r-- 1 root staff  14925 Aug 25  2020 jmorecfg.h
-rw-r--r-- 1 root staff  49408 Aug 25  2020 jpeglib.h
-rw-r--r-- 1 root staff   1513 Aug 25  2020 libcharset.h
drwxr-sr-x 2 root staff   4096 Nov 16  2020 libexslt
drwxr-sr-x 2 root staff   4096 May 29  2018 libpng
drwxr-sr-x 2 root staff   4096 Jul 17  2019 libpng16
drwxr-sr-x 2 root staff   4096 Apr  5  2019 libsodium
drwxr-sr-x 3 root staff   4096 May 29  2018 libxml2
drwxr-sr-x 2 root staff   4096 Nov 16  2020 libxslt
-rw-r--r-- 1 root staff   6059 Aug 25  2020 localcharset.h
-rw-r--r-- 1 root staff  11722 May 29  2018 ltdl.h
-rw-r--r-- 1 root staff     82 May 29  2018 mcrypt.h
-rw-r--r-- 1 root staff    223 May 29  2018 mhash.h
drwxr-sr-x 2 root staff   4096 May 29  2018 mutils
drwxr-sr-x 2 root staff   4096 Aug  8  2022 nghttp2
-rw-r--r-- 1 root staff  31718 Feb  4  2021 pcre.h
-rw-r--r-- 1 root staff   6600 Feb  4  2021 pcre_scanner.h
-rw-r--r-- 1 root staff   6312 Feb  4  2021 pcre_stringpiece.h
-rw-r--r-- 1 root staff  26529 Feb  4  2021 pcrecpp.h
-rw-r--r-- 1 root staff   6783 Feb  4  2021 pcrecpparg.h
-rw-r--r-- 1 root staff   5452 Feb  4  2021 pcreposix.h
lrwxrwxrwx 1 root staff     14 Jul 17  2019 png.h -> libpng16/png.h
lrwxrwxrwx 1 root staff     18 Jul 17  2019 pngconf.h -> libpng16/pngconf.h
lrwxrwxrwx 1 root staff     21 Jul 17  2019 pnglibconf.h -> libpng16/pnglibconf.h
drwxr-sr-x 2 root staff   4096 Aug 25  2020 sodium
-rw-r--r-- 1 root staff   2529 Aug 25  2020 sodium.h
drwxr-sr-x 2 root staff   4096 Dec 20  2021 spf2
-rw-r--r-- 1 root staff   3926 May 29  2018 srs_alt.h
drwxr-sr-x 2 root staff   4096 Aug 25  2020 webp
-rw-r--r-- 1 root staff  11503 Dec 22  2020 zbuff.h
-rw-r--r-- 1 root staff  25631 Jan  3  2022 zdict.h
-rw-r--r-- 1 root staff 148639 Jan  3  2022 zstd.h
-rw-r--r-- 1 root staff   3817 Jan  3  2022 zstd_errors.h
root@int:/usr/local/include# cd ../lib
root@int:/usr/local/lib# ls -l
total 223660
drwxr-sr-x 3 root staff     4096 Aug  3  2022 ImageMagick-7.1.0
drwxr-sr-x 3 root staff     4096 Sep  8 12:33 ImageMagick-7.1.1
-rw-r--r-- 1 root staff      221 May 29  2018 charset.alias
drwxr-sr-x 3 root staff     4096 May 29  2018 cmake
drwxr-xr-x 2 root root      4096 Oct 11 10:41 ioncube
-rw-r--r-- 1 root staff 13542012 Oct  3 18:13 libMagick++-7.Q16HDRI.a
-rwxr-xr-x 1 root staff     1539 Oct  3 18:13 libMagick++-7.Q16HDRI.la
lrwxrwxrwx 1 root staff       30 Oct  3 18:13 libMagick++-7.Q16HDRI.so -> libMagick++-7.Q16HDRI.so.5.0.0
lrwxrwxrwx 1 root staff       30 Oct  3 18:13 libMagick++-7.Q16HDRI.so.5 -> libMagick++-7.Q16HDRI.so.5.0.0
-rwxr-xr-x 1 root staff  5285576 Oct  3 18:13 libMagick++-7.Q16HDRI.so.5.0.0
-rw-r--r-- 1 root staff 41862540 Oct  3 18:13 libMagickCore-7.Q16HDRI.a
-rwxr-xr-x 1 root staff     1480 Oct  3 18:13 libMagickCore-7.Q16HDRI.la
lrwxrwxrwx 1 root staff       33 Oct  3 18:13 libMagickCore-7.Q16HDRI.so -> libMagickCore-7.Q16HDRI.so.10.0.1
lrwxrwxrwx 1 root staff       33 Oct  3 18:13 libMagickCore-7.Q16HDRI.so.10 -> libMagickCore-7.Q16HDRI.so.10.0.1
-rwxr-xr-x 1 root staff 21060152 Nov 28  2022 libMagickCore-7.Q16HDRI.so.10.0.0
-rwxr-xr-x 1 root staff 21253656 Oct  3 18:13 libMagickCore-7.Q16HDRI.so.10.0.1
-rw-r--r-- 1 root staff  8149610 Oct  3 18:13 libMagickWand-7.Q16HDRI.a
-rwxr-xr-x 1 root staff     1529 Oct  3 18:13 libMagickWand-7.Q16HDRI.la
lrwxrwxrwx 1 root staff       33 Oct  3 18:13 libMagickWand-7.Q16HDRI.so -> libMagickWand-7.Q16HDRI.so.10.0.1
lrwxrwxrwx 1 root staff       33 Oct  3 18:13 libMagickWand-7.Q16HDRI.so.10 -> libMagickWand-7.Q16HDRI.so.10.0.1
-rwxr-xr-x 1 root staff  4201056 Nov 28  2022 libMagickWand-7.Q16HDRI.so.10.0.0
-rwxr-xr-x 1 root staff  4220856 Oct  3 18:13 libMagickWand-7.Q16HDRI.so.10.0.1
-rw-r--r-- 1 root staff    26936 Aug 25  2020 libcharset.a
-rwxr-xr-x 1 root staff      937 Aug 25  2020 libcharset.la
lrwxrwxrwx 1 root staff       19 Aug 25  2020 libcharset.so -> libcharset.so.1.0.0
lrwxrwxrwx 1 root staff       19 Aug 25  2020 libcharset.so.1 -> libcharset.so.1.0.0
-rwxr-xr-x 1 root staff    20200 Aug 25  2020 libcharset.so.1.0.0
lrwxrwxrwx 1 root staff       16 Sep 21  2022 libcurl.so -> libcurl.so.4.8.0
-rw-r--r-- 1 root staff   666074 Nov 16  2020 libexslt.a
-rwxr-xr-x 1 root staff     1052 Nov 16  2020 libexslt.la
lrwxrwxrwx 1 root staff       18 Nov 16  2020 libexslt.so -> libexslt.so.0.8.20
lrwxrwxrwx 1 root staff       18 Nov 16  2020 libexslt.so.0 -> libexslt.so.0.8.20
-rwxr-xr-x 1 root staff   353480 Nov 16  2020 libexslt.so.0.8.20
-rw-r--r-- 1 root staff  7202496 Nov 16  2020 libfreetype.a
-rwxr-xr-x 1 root staff     1005 Nov 16  2020 libfreetype.la
lrwxrwxrwx 1 root staff       21 Nov 16  2020 libfreetype.so -> libfreetype.so.6.17.4
lrwxrwxrwx 1 root staff       21 Nov 16  2020 libfreetype.so.6 -> libfreetype.so.6.17.4
-rwxr-xr-x 1 root staff  3270696 May 29  2018 libfreetype.so.6.16.1
-rwxr-xr-x 1 root staff  3333048 Jul 17  2019 libfreetype.so.6.17.1
-rwxr-xr-x 1 root staff  3410088 Oct  1  2020 libfreetype.so.6.17.2
-rwxr-xr-x 1 root staff  3416920 Nov 16  2020 libfreetype.so.6.17.4
-rwxr-xr-x 1 root staff      913 Aug 25  2020 libiconv.la
lrwxrwxrwx 1 root staff       17 Aug 25  2020 libiconv.so -> libiconv.so.2.6.1
lrwxrwxrwx 1 root staff       17 Aug 25  2020 libiconv.so.2 -> libiconv.so.2.6.1
-rwxr-xr-x 1 root staff  1586256 May 29  2018 libiconv.so.2.6.0
-rwxr-xr-x 1 root staff  1572200 Aug 25  2020 libiconv.so.2.6.1
-rw-r--r-- 1 root staff  2298204 Aug 25  2020 libjpeg.a
-rwxr-xr-x 1 root staff      917 Aug 25  2020 libjpeg.la
lrwxrwxrwx 1 root staff       16 Aug 25  2020 libjpeg.so -> libjpeg.so.9.4.0
lrwxrwxrwx 1 root staff       16 Aug 25  2020 libjpeg.so.9 -> libjpeg.so.9.4.0
-rwxr-xr-x 1 root staff  1238400 May 29  2018 libjpeg.so.9.3.0
-rwxr-xr-x 1 root staff  1243208 Aug 25  2020 libjpeg.so.9.4.0
-rw-r--r-- 1 root staff   130460 May 29  2018 libltdl.a
-rwxr-xr-x 1 root staff      745 May 29  2018 libltdl.la
drwxr-sr-x 2 root staff     4096 May 29  2018 libmcrypt
-rwxr-xr-x 1 root staff      795 May 29  2018 libmcrypt.la
lrwxrwxrwx 1 root staff       18 May 29  2018 libmcrypt.so -> libmcrypt.so.4.4.8
lrwxrwxrwx 1 root staff       18 May 29  2018 libmcrypt.so.4 -> libmcrypt.so.4.4.8
-rwxr-xr-x 1 root staff   270664 May 29  2018 libmcrypt.so.4.4.8
-rw-r--r-- 1 root staff   596000 May 29  2018 libmhash.a
-rwxr-xr-x 1 root staff      815 May 29  2018 libmhash.la
lrwxrwxrwx 1 root staff       17 May 29  2018 libmhash.so -> libmhash.so.2.0.1
lrwxrwxrwx 1 root staff       17 May 29  2018 libmhash.so.2 -> libmhash.so.2.0.1
-rwxr-xr-x 1 root staff   407088 May 29  2018 libmhash.so.2.0.1
-rw-r--r-- 1 root staff  1487322 Aug  8  2022 libnghttp2.a
-rwxr-xr-x 1 root staff      958 Aug  8  2022 libnghttp2.la
lrwxrwxrwx 1 root staff       21 Aug  8  2022 libnghttp2.so -> libnghttp2.so.14.22.0
lrwxrwxrwx 1 root staff       21 Aug  8  2022 libnghttp2.so.14 -> libnghttp2.so.14.22.0
-rwxr-xr-x 1 root staff   671104 Jul 30  2018 libnghttp2.so.14.16.2
-rwxr-xr-x 1 root staff   680392 Jul 17  2019 libnghttp2.so.14.17.4
-rwxr-xr-x 1 root staff   684928 Aug 25  2020 libnghttp2.so.14.20.0
-rwxr-xr-x 1 root staff   735832 Feb  4  2021 libnghttp2.so.14.20.1
-rwxr-xr-x 1 root staff   698032 Jan  3  2022 libnghttp2.so.14.21.1
-rwxr-xr-x 1 root staff   698024 May 27  2022 libnghttp2.so.14.21.2
-rwxr-xr-x 1 root staff   870176 Aug  8  2022 libnghttp2.so.14.22.0
-rw-r--r-- 1 root staff   727684 Feb  4  2021 libpcre.a
-rwxr-xr-x 1 root staff      927 Feb  4  2021 libpcre.la
lrwxrwxrwx 1 root staff       17 Feb  4  2021 libpcre.so -> libpcre.so.1.2.12
lrwxrwxrwx 1 root staff       16 May 29  2018 libpcre.so.0 -> libpcre.so.0.0.1
-rwxr-xr-x 1 root staff   463992 May 29  2018 libpcre.so.0.0.1
lrwxrwxrwx 1 root staff       17 Feb  4  2021 libpcre.so.1 -> libpcre.so.1.2.12
-rwxr-xr-x 1 root staff   570560 Feb  4  2021 libpcre.so.1.2.12
-rw-r--r-- 1 root staff    51338 Feb  4  2021 libpcrecpp.a
-rwxr-xr-x 1 root staff      972 Feb  4  2021 libpcrecpp.la
lrwxrwxrwx 1 root staff       19 Feb  4  2021 libpcrecpp.so -> libpcrecpp.so.0.0.2
lrwxrwxrwx 1 root staff       19 Feb  4  2021 libpcrecpp.so.0 -> libpcrecpp.so.0.0.2
-rwxr-xr-x 1 root staff    47488 May 29  2018 libpcrecpp.so.0.0.0
-rwxr-xr-x 1 root staff    51792 Feb  4  2021 libpcrecpp.so.0.0.2
-rw-r--r-- 1 root staff     6784 Feb  4  2021 libpcreposix.a
-rwxr-xr-x 1 root staff      986 Feb  4  2021 libpcreposix.la
lrwxrwxrwx 1 root staff       21 Feb  4  2021 libpcreposix.so -> libpcreposix.so.0.0.7
lrwxrwxrwx 1 root staff       21 Feb  4  2021 libpcreposix.so.0 -> libpcreposix.so.0.0.7
-rwxr-xr-x 1 root staff    12840 May 29  2018 libpcreposix.so.0.0.0
-rwxr-xr-x 1 root staff    12848 Feb  4  2021 libpcreposix.so.0.0.7
lrwxrwxrwx 1 root staff       10 Jul 17  2019 libpng.a -> libpng16.a
lrwxrwxrwx 1 root staff       11 Jul 17  2019 libpng.la -> libpng16.la
lrwxrwxrwx 1 root staff       11 Jul 17  2019 libpng.so -> libpng16.so
-rw-r--r-- 1 root staff  1805970 Jul 17  2019 libpng16.a
-rwxr-xr-x 1 root staff      937 Jul 17  2019 libpng16.la
lrwxrwxrwx 1 root staff       19 Jul 17  2019 libpng16.so -> libpng16.so.16.37.0
lrwxrwxrwx 1 root staff       19 Jul 17  2019 libpng16.so.16 -> libpng16.so.16.37.0
-rwxr-xr-x 1 root staff   916408 May 29  2018 libpng16.so.16.34.0
-rwxr-xr-x 1 root staff   916152 Jul 30  2018 libpng16.so.16.35.0
-rwxr-xr-x 1 root staff   916800 Mar  5  2019 libpng16.so.16.36.0
-rwxr-xr-x 1 root staff   916144 Jul 17  2019 libpng16.so.16.37.0
-rw-r--r-- 1 root staff  3423788 Aug 25  2020 libsodium.a
-rwxr-xr-x 1 root staff      943 Aug 25  2020 libsodium.la
lrwxrwxrwx 1 root staff       19 Aug 25  2020 libsodium.so -> libsodium.so.23.3.0
lrwxrwxrwx 1 root staff       19 Aug 25  2020 libsodium.so.23 -> libsodium.so.23.3.0
-rwxr-xr-x 1 root staff  2101616 Apr  5  2019 libsodium.so.23.2.0
-rwxr-xr-x 1 root staff  2150488 Aug 25  2020 libsodium.so.23.3.0
-rw-r--r-- 1 root staff   912340 Dec 20  2021 libspf2.a
-rwxr-xr-x 1 root staff      960 Dec 20  2021 libspf2.la
lrwxrwxrwx 1 root staff       16 Dec 20  2021 libspf2.so -> libspf2.so.2.1.0
lrwxrwxrwx 1 root staff       16 Dec 20  2021 libspf2.so.2 -> libspf2.so.2.1.0
-rwxr-xr-x 1 root staff   450528 Dec 20  2021 libspf2.so.2.1.0
-rw-r--r-- 1 root staff    84246 May 29  2018 libsrs_alt.a
-rwxr-xr-x 1 root staff      811 May 29  2018 libsrs_alt.la
lrwxrwxrwx 1 root staff       19 May 29  2018 libsrs_alt.so -> libsrs_alt.so.1.0.0
lrwxrwxrwx 1 root staff       19 May 29  2018 libsrs_alt.so.1 -> libsrs_alt.so.1.0.0
-rwxr-xr-x 1 root staff    59928 May 29  2018 libsrs_alt.so.1.0.0
-rw-r--r-- 1 root staff  6059906 Aug 25  2020 libwebp.a
-rwxr-xr-x 1 root staff      944 Aug 25  2020 libwebp.la
lrwxrwxrwx 1 root staff       16 Aug 25  2020 libwebp.so -> libwebp.so.7.1.0
lrwxrwxrwx 1 root staff       16 Aug 25  2020 libwebp.so.7 -> libwebp.so.7.1.0
-rwxr-xr-x 1 root staff  3491552 Jul 17  2019 libwebp.so.7.0.4
-rwxr-xr-x 1 root staff  3488904 Aug 25  2020 libwebp.so.7.1.0
-rw-r--r-- 1 root staff   129850 Aug 25  2020 libwebpdemux.a
-rwxr-xr-x 1 root staff     1005 Aug 25  2020 libwebpdemux.la
lrwxrwxrwx 1 root staff       21 Aug 25  2020 libwebpdemux.so -> libwebpdemux.so.2.0.6
lrwxrwxrwx 1 root staff       21 Aug 25  2020 libwebpdemux.so.2 -> libwebpdemux.so.2.0.6
-rwxr-xr-x 1 root staff    90784 Aug 25  2020 libwebpdemux.so.2.0.6
-rw-r--r-- 1 root staff 10178404 Nov 16  2020 libxml2.a
-rwxr-xr-x 1 root staff      977 Nov 16  2020 libxml2.la
lrwxrwxrwx 1 root staff       17 Nov 16  2020 libxml2.so -> libxml2.so.2.9.10
lrwxrwxrwx 1 root staff       17 Nov 16  2020 libxml2.so.2 -> libxml2.so.2.9.10
-rwxr-xr-x 1 root staff  5373176 Nov 16  2020 libxml2.so.2.9.10
-rwxr-xr-x 1 root staff  5398288 May 29  2018 libxml2.so.2.9.7
-rwxr-xr-x 1 root staff  5440536 Mar  5  2019 libxml2.so.2.9.8
-rwxr-xr-x 1 root staff  5439512 Aug 25  2020 libxml2.so.2.9.9
drwxr-sr-x 2 root staff     4096 May 29  2018 libxslt-plugins
-rw-r--r-- 1 root staff  1950908 Nov 16  2020 libxslt.a
-rwxr-xr-x 1 root staff     1019 Nov 16  2020 libxslt.la
lrwxrwxrwx 1 root staff       17 Nov 16  2020 libxslt.so -> libxslt.so.1.1.34
lrwxrwxrwx 1 root staff       17 Nov 16  2020 libxslt.so.1 -> libxslt.so.1.1.34
-rwxr-xr-x 1 root staff  1072016 Mar  5  2019 libxslt.so.1.1.32
-rwxr-xr-x 1 root staff  1077176 Aug 25  2020 libxslt.so.1.1.33
-rwxr-xr-x 1 root staff  1017512 Nov 16  2020 libxslt.so.1.1.34
-rw-r--r-- 1 root staff  1220260 Jan  3  2022 libzstd.a
lrwxrwxrwx 1 root staff       16 Jan  3  2022 libzstd.so -> libzstd.so.1.5.1
lrwxrwxrwx 1 root staff       16 Jan  3  2022 libzstd.so.1 -> libzstd.so.1.5.1
-rwxr-xr-x 1 root staff   953272 Dec 22  2020 libzstd.so.1.4.5
-rwxr-xr-x 1 root staff  1058368 Jan  3  2022 libzstd.so.1.5.1
drwxr-sr-x 2 root staff     4096 Oct  3 18:13 pkgconfig
-rw-r--r-- 1 root staff  1560344 May 29  2018 preloadable_libiconv.so
drwxrwsr-x 4 root staff     4096 Oct  3 11:20 python2.7
drwxrwsr-x 3 root staff     4096 Aug  3  2022 python3.7
-rw-r--r-- 1 root staff      238 Nov 16  2020 xml2Conf.sh
-rw-r--r-- 1 root staff      258 Nov 16  2020 xsltConf.sh
 
Yes we are working on that. Fixing a single system would be trivial, but we need to have a bullet-proof solution for a wide range of systems with varying amount of custom libraries. We need to be extra careful to not perform any destructive operations automatically (like removing libraries without ensuring all usage places of library are updated or removed).

I mean it is ok if admin removes the files himself like following suggestions in my previous messages, he is aware of the action he did and it is easy to restore it (be it backup, move instead or remove, or just download and install custom lib again). But we can not do this in CustomBuild automatically, because it could leave the system broken and admin without any clue who when or why did this.

The plan right now is to build the dependency graph on how those libraries could have interacted between one another and start removing them one by one or in batches. It would be implemented as a recommended software removal from CustomBuild visible with da build list_removals, or via CB GUI. This would give system admins an option to choose the time of when to perform the removal (not being removed automatically when building some new software or upgrading). Also if removal triggers any problems it would be much easier to report, because it would be clear what caused it.
@fln, is using da build remove_items with DA 1.658 safe? Or will i get a really messed up server?

Code:
Nginx: installed, but not enabled in options.conf
        da build remove_nginx
Pure-FTPd: installed, but not enabled in options.conf
        da build remove_pureftpd
SquirrelMail webmail: installed, but not enabled in options.conf
        da build remove_squirrelmail
old icu in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local icu
old freetype in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local freetype
old libjpeg in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libjpeg
old libltdl in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libltdl
old libmcrypt in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libmcrypt
old libmhash in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libmhash
old libpng in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libpng
old libsodium in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libsodium
old libwebp in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libwebp
old libspf2 in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libspf2
old libsrs_alt in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libsrs_alt
old libnghttp2 in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libnghttp2
old libxslt in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libxslt
old libxml2 in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libxml2
old libzip in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libzip
old libzstd in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libzstd
old libpcre in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libpcre
old libpcre2 in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libpcre2
old libiconv in /usr/local: custom library might mask system libraries, not needed anymore
        da build remove_old_local libiconv

And will it solve the following problem with iconv when libiconv is removed?
Code:
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... no
configure: error: iconv does not support errno
doPhp_build: failed to compile '/usr/local/directadmin/custombuild/cache/php-8.1.27.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.OxVF2x8uq1.php-8.1.27.tar.gz'
 
We've done these removals on 20+ DA installs including some that were set up a long long time ago and therefore had a huge list, but also some others that only had a few items. All of them went smoothly. It's just slightly time-consuming to have to rebuild everything, but beyond that it's fine. Concerning iconv what we do is just for all where iconv and other "old crap" is present:
da build list_removals
da build remove_items
da build remove_old_local libiconv
da build all
(this presumes you don't need to do the curl migration to system curl still, otherwise you should start with that perhaps)
 
Back
Top