PHP and Exim can't update

ZipperZapper

Verified User
Joined
Nov 30, 2015
Messages
142
Both PHP 8.2.11 > 8.2.12 and Exim 4.96.2-12-g29d01ae2a (weird?) > 4.97 updates fail. I tried using the interface and the terminal, both fail.

The PHP update errors out here:

Code:
checking if iconv supports errno... configure: error: iconv does not support errno
no

*** There was an error while trying to configure php. Check the configure file

No custom compiling set for PHP.

Exim errors out here:

Code:
/usr/bin/ld: rfc2047.o: in function `rfc2047_decode2':
rfc2047.c:(.text+0x3e5): undefined reference to `libiconv_open'
/usr/bin/ld: rfc2047.c:(.text+0x4d4): undefined reference to `libiconv'
/usr/bin/ld: rfc2047.c:(.text+0x55e): undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:687: exim] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/tmp/tmp.9K1kv8uSjI.exim-4.97.tar.gz/build-Linux-x86_64'
make: *** [Makefile:37: all] Error 2
doExim: failed to compile '/usr/local/directadmin/custombuild/cache/exim-4.97.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.9K1kv8uSjI.exim-4.97.tar.gz'
failed to compile exim 4.97

System info:
  • Ubuntu 20.04
  • Custombuild version unknown (used to be visible in the top corner?)
  • Directadmin 1.656
 
There are a ton of posts with this same exact error. A quick search reveals that it was caused by some leftover software packages in/usr/local.

Try doing this:
da build list_removals
da build remove_items
da build remove_old_local libiconv
da build all
da build restore_old_local libiconv

This should remove all the old packages in /usr/local, rebuild all your packages and restore the iconv library for those packages that still rely on the shared library.
 
Back
Top