AndriesLouw
Verified User
i have the same on some older servers
--make[1]: Entering directory `/usr/local/directadmin/custombuild/exim-4.92/build-Linux-i386'
>>> version 4.92 #4
>>> version 4.92 #5
gcc -DMACRO_PREDEF macro_predef.c
In file included from exim.h:482,
from macro_predef.c:11:
structs.h:757: error: 'NS_MAXMSG' undeclared here (not in a function)
make[1]: *** [macro_predef.o] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/exim-4.92/build-Linux-i386'
make: *** [all] Error 2
*** The make has failed, would you like to try to make again? (y,n):
---
did anyone resolved this?
Please press Ctrl+Z when getting this message.
Then do:
vim /usr/local/directadmin/custombuild/exim-4.92/build-Linux-x86_64/structs.h
Type:
:set number
Go to line 747, before the typedef struct, press i, and add:
#ifndef NS_MAXMSG
# define NS_MAXMSG 65535
#endif
Press escape, type:
:wq!
Followed by enter, type the following commands:
fg
y
Build should proceed, if there are any additional errors, please download latest openssl-1.0.2s and compile it. This can be done with:
cd /usr/src
wget https://www.openssl.org/source/openssl-1.0.2s.tar.gz
tar -xvzf openssl-1.0.2s.tar.gz
cd openssl-1.0.2s
./config --prefix=/usr no-threads shared
make
make test
make install
Please do the builds of apache, php, exim and dovecot again after updating openssl.