Custombuild breaking on Ubuntu 22

klasje

Verified User
Joined
Jan 5, 2008
Messages
55
Just so everyone is aware, custombuild is breaking on Ubuntu 22,
no need to try installing it yet on version 22, stay with 20 for now.

Error:
root@server-1:/usr/local/directadmin/custombuild# /usr/local/directadmin/custombuild/build plugin
############################################################################################################################################################################################################ 100.0%
/usr/bin/id: 'cb_plugin': no such user
CustomBuild plugin is now installed!
/usr/local/directadmin/plugins/custombuild/admin/build.c: In function 'main':
/usr/local/directadmin/plugins/custombuild/admin/build.c:231:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long int'} [-Wformat=]
231 | printf("%d.%d.log used for the child process\n", t, f);
| ~^ ~
| | |
| int time_t {aka long int}
| %ld
/usr/local/directadmin/plugins/custombuild/admin/build.c:243:90: warning: format '%d' expects argument of type 'int', but argument 4 has type 'time_t' {aka 'long int'} [-Wformat=]
243 | snprintf(log, log_max, "/usr/local/directadmin/plugins/custombuild/logs/%d.%d.log", t, getpid());
| ~^ ~
| | |
| int time_t {aka long int}
| %ld
 
Building PHP fails as well:
/usr/local/directadmin/custombuild/php-7.4.30/ext/openssl/openssl.c:5960:41: warning: passing argument 4 of 'RSA_public_decrypt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
5960 | EVP_PKEY_get0_RSA(pkey),
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/directadmin/custombuild/php-7.4.30/ext/openssl/openssl.c:46:
/usr/include/openssl/rsa.h:289:29: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'const struct rsa_st *'
289 | RSA *rsa, int padding);
| ~~~~~^~~
make: *** [Makefile:768: ext/openssl/openssl.lo] Error 1
So just follow the advice and stay away from Ubuntu 22 for now ;-)
 
Ok, tx for the update. I read July in another topic, glad to know I better wait even longer.
 
Ok, tx for the update. I read July in another topic, glad to know I better wait even longer.
In July must come first patches for Ubuntu 22, so it become more stable, but DA will support it little later.
 
php8 works fine, but exim not, it's to fast to switch to Ubuntu 22, wait until October.
4.96 should be fine, it's released already, just not yet set as default in CustomBuild as we'd like to give it some testing. I hope it becomes available in CB this week.
 
4.96 should be fine, it's released already, just not yet set as default in CustomBuild as we'd like to give it some testing. I hope it becomes available in CB this week.
so Ubuntu 22 now officially supported?
 
It didn't work on monday, just 1 day before your post.
I couldn't install custombuild properly, nor php.
 
It didn't work on monday, just 1 day before your post.
I couldn't install custombuild properly, nor php.
Compatibility was done on Tuesday. Old PHP versions are not supported. I’d suggest using defaults.
 
Back
Top