Solved apache installation error

Hi,
Apache should install via another package. I mean when I run the command to install iRedmail package, it starts to install it's dependencies.
The installation process stops and give me an error:
Code:
orts/www/apache24/work/httpd-2.4.26/modules/arch/unix -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/dav/main -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/generators -I/usr/ports/www/apache24/work/httpd-2.4.26/modules/mappers  -prefer-non-pic -static -c ab.c && touch ab.lo
ab.c:2518:5: warning: implicit declaration of function 'SSL_CTX_set_max_proto_version' is invalid in C99 [-Wimplicit-function-declaration]
    SSL_CTX_set_max_proto_version(ssl_ctx, max_prot);
    ^
ab.c:2519:5: warning: implicit declaration of function 'SSL_CTX_set_min_proto_version' is invalid in C99 [-Wimplicit-function-declaration]
    SSL_CTX_set_min_proto_version(ssl_ctx, min_prot);
    ^
2 warnings generated.
/usr/local/share/apr/build-1/libtool --silent --mode=link cc    -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -L/usr/local/lib -lssl -lcrypto -lcrypt -lpthread     -L/usr/local/lib/db5 -L/usr/lib  -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector -o ab  ab.lo      -L/usr/local/lib -R/usr/local/lib -laprutil-1 -ldb-5.3 -lexpat -L/usr/local/lib -R/usr/local/lib -lapr-1 -lcrypt -lpthread -lm
ab.o: In function `main':
ab.c:(.text+0xbd9): undefined reference to `SSL_CTX_set_max_proto_version'
ab.c:(.text+0xbea): undefined reference to `SSL_CTX_set_min_proto_version'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/www/apache24/work/httpd-2.4.26/support
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/apache24/work/httpd-2.4.26/support
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/apache24/work/httpd-2.4.26
*** Error code 1

Stop.
make: stopped in /usr/ports/www/apache24
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.

I searched a lot but I can't solve the problem :(
 
What happens if you go to /usr/ports/www/apache24 yourself then issue: # make clean build?

Sometimes glitches can happen which result in a port not building while you're in the process of building others as well. Doesn't happen often but I also encountered these situations myself. Then I try to build the port 'manually' and that usually resolves the problem.
 
Either build Apache with OpenSSL instead of LibreSSL or turn off SSL support.
 
Either build Apache with OpenSSL instead of LibreSSL or turn off SSL support.
I build apache with OpenSSL but it occures many conflicts.

Copy this patch https://bz-attachments.freebsd.org/attachment.cgi?id=183888 in file. Name it patch-libressl and move it in the www/apache24 port in the files directory

before you post this solution I installed iRedmail on another virtualbox. In iRedmail manual the ports should be updated but I didn't update ports and the installation completed without any error.

Thanks all for your help.
 
Back
Top