### ImageMagick version

7.1.0

### Operating system

Linux

### Operating system, version and so on

Ubuntu 22.04, docker image

### Description

I am trying to install PerlMagick on Ubuntu 22.04, perl 5.34.0:

```
$ git clone --depth=1 https://github.com/ImageMagick/ImageMagick.git
$ cd ImageMagick
$ ./configure --without-perl
$ make
$ sudo make install
$ cd ..
$ mkdir PerlMagick
$ cd PerlMagick
$ wget https://imagemagick.org/archive/perl/Image-Magick-7.1.1-18.tar.gz
$ tar zxvf Image-Magick-7.1.1-18.tar.gz
$ cd Image-Magick-7.1.1-18
$ perl Makefile.PL INC="-I/usr/local/include/ImageMagick-7" LIBS="-L/usr/local/lib/"
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json

$ make
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
Running Mkbootstrap for Magick ()
chmod 644 "Magick.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Magick.bs blib/arch/auto/Image/Magick/Magick.bs 644
"/usr/bin/perl" "/usr/share/perl/5.34/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.34/ExtUtils/typemap' -typemap '/home/docker-user/Image-Magick-7.1.1/typemap'  Magick.xs > Magick.xsc
mv Magick.xsc Magick.c
x86_64-linux-gnu-gcc -c  -I/usr/local/include/ImageMagick-7 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -O2 -g   -DVERSION=\"7.1.1\" -DXS_VERSION=\"7.1.1\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE"  -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
rm -f blib/arch/auto/Image/Magick/Magick.so
x86_64-linux-gnu-gcc  -L/usr/local/lib -lMagickCore-7.Q16HDRI -shared -L/usr/local/lib -fstack-protector-strong   Magick.o  -o blib/arch/auto/Image/Magick/Magick.so  \
      \
  
chmod 755 blib/arch/auto/Image/Magick/Magick.so
Manifying 1 pod document

$ make test
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Magick.bs blib/arch/auto/Image/Magick/Magick.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/blob.t .......... 1/1 Can't load '/home/docker-user/Image-Magick-7.1.1/blib/arch/auto/Image/Magick/Magick.so' for module Image::Magick: /home/docker-user/Image-Magick-7.1.1/blib/arch/auto/Image/Magick/Magick.so: undefined symbol: DestroyImageInfo at /usr/lib/x86_64-linux-gnu/perl-base/DynaLoader.pm line 187.
 at t/blob.t line 20.
Compilation failed in require at t/blob.t line 20.
BEGIN failed--compilation aborted at t/blob.t line 20.
&Image::Magick::constant not defined. The required ImageMagick libraries are not installed or not installed properly.
END failed--call queue aborted at t/blob.t line 20.
t/blob.t .......... Dubious, test returned 22 (wstat 5632, 0x1600)
Failed 1/1 subtests 
```

### Steps to Reproduce

See description

### Images

_No response_
PerlMagick installation: make test: Magick.so: undefined symbol: DestroyImageInfo
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : PerlMagick installation: make test: Magick.so: undefined symbol: DestroyImageInfo
Issue date:

--- start body ---
### ImageMagick version

7.1.0

### Operating system

Linux

### Operating system, version and so on

Ubuntu 22.04, docker image

### Description

I am trying to install PerlMagick on Ubuntu 22.04, perl 5.34.0:

```
$ git clone --depth=1 https://github.com/ImageMagick/ImageMagick.git
$ cd ImageMagick
$ ./configure --without-perl
$ make
$ sudo make install
$ cd ..
$ mkdir PerlMagick
$ cd PerlMagick
$ wget https://imagemagick.org/archive/perl/Image-Magick-7.1.1-18.tar.gz
$ tar zxvf Image-Magick-7.1.1-18.tar.gz
$ cd Image-Magick-7.1.1-18
$ perl Makefile.PL INC="-I/usr/local/include/ImageMagick-7" LIBS="-L/usr/local/lib/"
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json

$ make
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
Running Mkbootstrap for Magick ()
chmod 644 "Magick.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Magick.bs blib/arch/auto/Image/Magick/Magick.bs 644
"/usr/bin/perl" "/usr/share/perl/5.34/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.34/ExtUtils/typemap' -typemap '/home/docker-user/Image-Magick-7.1.1/typemap'  Magick.xs > Magick.xsc
mv Magick.xsc Magick.c
x86_64-linux-gnu-gcc -c  -I/usr/local/include/ImageMagick-7 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -O2 -g   -DVERSION=\"7.1.1\" -DXS_VERSION=\"7.1.1\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE"  -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
rm -f blib/arch/auto/Image/Magick/Magick.so
x86_64-linux-gnu-gcc  -L/usr/local/lib -lMagickCore-7.Q16HDRI -shared -L/usr/local/lib -fstack-protector-strong   Magick.o  -o blib/arch/auto/Image/Magick/Magick.so  \
      \
  
chmod 755 blib/arch/auto/Image/Magick/Magick.so
Manifying 1 pod document

$ make test
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Magick.bs blib/arch/auto/Image/Magick/Magick.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/blob.t .......... 1/1 Can't load '/home/docker-user/Image-Magick-7.1.1/blib/arch/auto/Image/Magick/Magick.so' for module Image::Magick: /home/docker-user/Image-Magick-7.1.1/blib/arch/auto/Image/Magick/Magick.so: undefined symbol: DestroyImageInfo at /usr/lib/x86_64-linux-gnu/perl-base/DynaLoader.pm line 187.
 at t/blob.t line 20.
Compilation failed in require at t/blob.t line 20.
BEGIN failed--compilation aborted at t/blob.t line 20.
&Image::Magick::constant not defined. The required ImageMagick libraries are not installed or not installed properly.
END failed--call queue aborted at t/blob.t line 20.
t/blob.t .......... Dubious, test returned 22 (wstat 5632, 0x1600)
Failed 1/1 subtests 
```

### Steps to Reproduce

See description

### Images

_No response_
--- end body ---
