Upgrading Debian 10 to 12 - apache compile errors

enricovangoor

Verified User
Joined
Oct 30, 2020
Messages
17
Location
Netherlands
Hi all,

I've upgraded a Debian 10 to Debian 12. After the dist-upgrade I wanted to recompile everything against the new libraries. This results in an error while compiling apache2:

/usr/bin/ld: modules/ssl/.libs/libmod_ssl.a(ssl_engine_init.o): in function `ssl_init_server_certs':
ssl_engine_init.c:(.text+0x382e): undefined reference to `ERR_GET_FUNC'
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/local/directadmin/custombuild/httpd-2.4.49/build/program.mk:23: httpd] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/httpd-2.4.49'
make: *** [/usr/local/directadmin/custombuild/httpd-2.4.49/build/rules.mk:75: all-recursive] Error 1
*** The make has failed. Exiting...
I've used the following commands:

da build update
da build remove_items
da build clean
da build all

What can I do to solve this?
 
why apache 2.4.49 - current is 2.4.62
did you update DA to receive fresh versions with working REPOs and urls?
 
why apache 2.4.49 - current is 2.4.62
did you update DA to receive fresh versions with working REPOs and urls?
Didn't notice that one! The right version 2.4.62 is in versions.txt, but when a do a da build update && da build all it fetches version 2.4.49
download_cached: downloading 'https://archive.apache.org/dist/httpd/httpd-2.4.49.tar.gz' to '/usr/local/directadmin/custombuild/cache/httpd-2.4.49.tar.gz'
I have installed the latest version of DA
directadmin current v1.666 9488a1821c049154a2d8fed287db69b25e3b4de8 is already latest
 
Last edited:
Apparently the version 2.4.49 was pinned in the file /usr/local/directadmin/custombuild/custom_versions.txt. After removing the file everything compiled as it should be.
Thanks for the help.
 
Back
Top