rebuilding da issue after debian distro upgrade

ruudux

Verified User
Joined
Apr 18, 2024
Messages
7
After a Debian distro upgrade from 10 to 11 I ran in to errors while running a rebuild. From the past, I knew I have to install extra packages. I used this command:
DEBIAN_FRONTEND=noninteractive apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -fy wget gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libwww-perl libaio1 libaio-dev zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev libncurses5 libncurses5-dev libsystemd-dev bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev libcrypt-openssl-rsa-perl libnuma-dev libnuma1 libhtml-parser-perl libhttp-date-perl libnet-dns-perl libnetaddr-ip-perl libsocket6-perl libsys-hostname-long-perl libwww-perl libio-socket-inet6-perl libmail-spf-perl libsys-syslog-perl libdbi-perl libencode-detect-perl libio-socket-ssl-perl libmail-dkim-perl razor libio-socket-ip-perl libnet-patricia-perl traceroute mlocate whois ncftp

When running ./build all d, I get this error:
/usr/bin/ld: /usr/local/lib_http2/lib/libcrypto.a(dso_dlfcn.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:73: ab] Error 1
make[2]: Leaving directory '/usr/local/directadmin/custombuild/httpd-2.4.59/support'
make[1]: Leaving directory '/usr/local/directadmin/custombuild/httpd-2.4.59/support'
make[1]: *** [/usr/local/directadmin/custombuild/httpd-2.4.59/build/rules.mk:75: all-recursive] Error 1
make: *** [/usr/local/directadmin/custombuild/httpd-2.4.59/build/rules.mk:75: all-recursive] Error 1
*** The make has failed. Exiting...

I used commando's like:
./build clean
./build update
./build update_versions
./build remove_items (none left)

In the past this VPS used an openssl installation from source while php-imaps wouldn't work. I am using now (openssl version -a)
OpenSSL 1.1.1w 11 Sep 2023
built on: Wed Sep 13 19:21:33 2023 UTC
platform: debian-amd64
options: bn(64,64) rc4(8x,int) des(int) blowfish(ptr)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -Wa,--noexecstack -g -
O2 -ffile-prefix-map=/build/reproducible-path/openssl-1.1.1w=. -fstack-protector
-strong -Wformat -Werror=format-security -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPE
NSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL
_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCA
K1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256
_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2
OPENSSLDIR: "/usr/lib/ssl"
ENGINESDIR: "/usr/lib/x86_64-linux-gnu/engines-1.1"
Seeding source: os-specific

DirectAdmin is up-to-date: DirectAdmin v.1.662 2b2ab01dea64601bc358a0a129444b190818e5ff

Does anybody have a asolution for me how to fix this?
 
Directory /usr/local/lib_http2 should not exist on modern DirectAdmin servers unless it was installed manually. I do not find any traces of CustomBuild installing it in old CB versions.

It seems like this custom library takes precedence to be used when compiling apache. Removing it would allow the system library to be used. Since it is not in standard lib search path (standard would be without library name /usr/local/lib) it is strange to see it used by apache. It hints you might have pkg-config configured to use it (in /usr/local/lib/pkgconfig). So removing just the lib files might not be enough. Whole system needs to be searched for references to the removed libarary.
 
Do you have a custom configure file for apache? Maybe it needs updating.
Duh ... totaly forgotten this. Thanks for the headsup. While it is old and not needed anymore, I moved the custom folder for the ap2 custom configure file and the rebuild is running as expected. Thanks in advance
 
Back
Top