I asked this on the freenode IRC channel and was directed to the dev list, but since that's not for support I'll ask here and hope the devs are watching.
I compiled apache-2.4.46 about a year ago and had no problems. Yesterday I went to compile apache-2.4.48 and received some errors. I went back to try and rebuild .46 and got the same errors. I found out that someone updated the server, so a change
has broken the build and I cannot figure out where to go from here.
./configure --prefix=/home/apache1/httpd8090 --with-included-apr --with-pcre=/home/apache1/httpd8090/bin/pcre-config --disable-ssl
and the error I get is
Making all in support
gmake[1]: Entering directory `/home/apache1/source/apache-2.4.48/httpd-2.4.48/support'
gmake[2]: Entering directory `/home/apache1/source/apache-2.4.48/httpd-2.4.48/support'
/home/apache1/source/apache-2.4.48/httpd-2.4.48/srclib/apr/libtool --silent --mode=link gcc -std=gnu99 -g -O2 \
-o ab ab.lo /home/apache1/source/apache-2.4.48/httpd-2.4.48/srclib/apr-util/libaprutil-1.la
-lexpat /home/apache1/source/apache-2.4.48/httpd-2.4.48/srclib/apr/libapr-1.la -luuid -lsendfile -lrt
-lsocket -lnsl -lpthread -lm -lssl -lcrypto -luuid -lsendfile -lrt -lsocket -lnsl -lpthread
Undefined first referenced
symbol in file
TLSv1_2_client_method ab.o
TLSv1_1_client_method ab.o
BIO_set_callback ab.o
EVP_PKEY_id ab.o
BIO_set_callback_arg ab.o
BIO_get_callback_arg ab.o
SSL_CTX_set_info_callback ab.o
ld: fatal: symbol referencing errors. No output written to .libs/ab
collect2: ld returned 1 exit status
gmake[2]: *** [ab] Error 1
Now, I compared the config.status file and it seems that ab_LIBS is now being set with a bunch of libraries that weren't included previously.
781,782c781,782
< S["ab_LIBS"]=""
< S["ab_CFLAGS"]="-I/usr/sfw/include "
---
> S["ab_LIBS"]=" -lssl -lcrypto -luuid -lsendfile -lrt -lsocket -lnsl -lpthread"
> S["ab_CFLAGS"]=" "
I'm sure this is the cause of my issues but I don't know how to stop these from being picked up. I did try to remove the libraries from the build/
config_vars.mk
file but to no avail.
I'm using apr 1.7 and apr-util 1.6.1 fwiw.
Also, fwiw, it seems whoever set this up installed a i386 compiler.
gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
So, any suggestions on where to go from here would be appreciated.
Thanks,
Nigel
--