Mailing List Archive

Re: [E] [users@httpd] [External] : [users@httpd] Problems compiling under Solaris 10
Thanks for the update. I was also able to compile it on another Solaris10 x86 machine so it must have been some issue with the environment.
In my case I needed to compile it with a specific openssl version located in a predefined path. On Solaris10 Sparc btw I had compilation issues. Some compilation
„libtool“ commands where failing and I had to manually change -R and -L flags to point to the openssl path. It looks like the parameters were not transferred
correctly through the build process. At the end I got it working :)

Am 01.09.2021 um 17:12 schrieb Reed, Nigel <nreed@verizon.com<mailto:nreed@verizon.com>>:

I think I finally got it to compile. Here are my notes. We have an older system that hasn't been updated for a while so I had to make it think that openssl was ok. It seems to be running ok.

: open configure
: search for: if OPENSSL_VERSION_NUMBER
: Replace the < with >
: Repeat. It should appear 3 times.

# CC=gcc ab_CFLAGS="-I/usr/sfw/include" ./configure --prefix=/home/apache1/httpd8090 --with-included-apr --with-pcre=/home/apache1/httpd8090/bin/pcre-config --disable-ssl
# gmake
# gmake install
# cd /home/apache1



On Wed, Sep 1, 2021 at 2:32 AM Ran Mozes <ran.mozes@oracle.com<mailto:ran.mozes@oracle.com>> wrote:
fyi, I have opened a bug. In case someone is interested or experiencing the same please feel free to add to it:
https://bz.apache.org/bugzilla/show_bug.cgi?id=65542<https://urldefense.proofpoint.com/v2/url?u=https-3A__bz.apache.org_bugzilla_show-5Fbug.cgi-3Fid-3D65542&d=DwMGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=N8OdTy9_Fvlb1tDaqVNjOdsWj941NG3Nx_gxKCju7k8&m=Kgf8pUYeKV4SmU--kCRJcbyuGCfnY7yYTiUha5mr1Ug&s=zitoD_fiFsUkXIn6vQwqspQduuocwYdZlcAEAX7FVM4&e=>


Am 31.08.2021 um 17:08 schrieb Ran Mozes <RAN.MOZES@ORACLE.COM<mailto:RAN.MOZES@ORACLE.COM>>:

Thanks. Unfortunately it didn’t work for me. I still get the same errors.
Is there a another way of disabling AB (an option to "./configure“)?. I haven’t found such so far.


Am 30.08.2021 um 16:30 schrieb Dino Ciuffetti <dino@tuxweb.it<mailto:dino@tuxweb.it>>:

If you don't need ab (Apache Benchmark):

cd support ; touch ab ; cd .. ; make

This way you will skip the ab compilation.


30 agosto 2021 13:47, "Ran Mozes" <ran.mozes@oracle.com<mailto:ran.mozes@oracle.com?to=%22Ran%20Mozes%22%20%3Cran.mozes@oracle.com%3E>> wrote:

Hi Nigel, all,
I am experiencing the exact same errors while trying to compile apache-2.4.48 on a Solaris 10 X86 machine.
bash-3.2$ libtool --silent --mode=link gcc -std=gnu99 -g -O2 -o ab ab.lo -lz apache_upgrade_2.4.48/httpd-2.4.48/srclib/apr-util/libaprutil-1.la<https://urldefense.com/v3/__http://libaprutil-1.la__;!!ACWV5N9M2RV99hQ!dcaz3DMZqAdKSyMpzOe7SjImcqtAUQ6dBaOQgnC_aMSDy15m1OqpKhM9DM6bSv0$> -lexpat apache_upgrade_2.4.48/httpd-2.4.48/srclib/apr/libapr-1.la<https://urldefense.com/v3/__http://libapr-1.la__;!!ACWV5N9M2RV99hQ!dcaz3DMZqAdKSyMpzOe7SjImcqtAUQ6dBaOQgnC_aMSDy15m1OqpKhM9pCOdnvU$> -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
Any solution found?
Thanks,
Ran
Am 23.07.2021 um 11:11 schrieb Reed, Nigel <nreed@verizon.com.INVALID<mailto:nreed@verizon.com.INVALID>>:
Hi all,
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.
These are my configure options:
./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<https://urldefense.com/v3/__http://libaprutil-1.la__;!!ACWV5N9M2RV99hQ!Ye_3j9Kud5mtsXFZRruAcicPH20qEwm2hHNRT5gAMCLSH0GABktWk3s-bIa2fM8%24> -lexpat /home/apache1/source/apache-2.4.48/httpd-2.4.48/srclib/apr/libapr-1.la<https://urldefense.com/v3/__http://libapr-1.la__;!!ACWV5N9M2RV99hQ!Ye_3j9Kud5mtsXFZRruAcicPH20qEwm2hHNRT5gAMCLSH0GABktWk3s-Zd3WfSs%24> -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<https://urldefense.com/v3/__http://config_vars.mk__;!!ACWV5N9M2RV99hQ!Ye_3j9Kud5mtsXFZRruAcicPH20qEwm2hHNRT5gAMCLSH0GABktWk3s-u6T75SE%24> 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
--
[http://ss7.vzw.com/is/image/VerizonWireless/vz-logo-email]
[http://ss7.vzw.com/is/image/VerizonWireless/vz-sig-facebook?%24defaultscale%24]<https://urldefense.com/v3/__http://www.facebook.com/verizon__;!!ACWV5N9M2RV99hQ!Ye_3j9Kud5mtsXFZRruAcicPH20qEwm2hHNRT5gAMCLSH0GABktWk3s-0bl8zfQ%24> [http://ss7.vzw.com/is/image/VerizonWireless/vz-sig-twitter?%24defaultscale%24] <https://urldefense.com/v3/__http://twitter.com/verizon__;!!ACWV5N9M2RV99hQ!Ye_3j9Kud5mtsXFZRruAcicPH20qEwm2hHNRT5gAMCLSH0GABktWk3s-7I2_-Y4%24> [http://ss7.vzw.com/is/image/VerizonWireless/vz-sig-linkedin?%24defaultscale%24] <https://urldefense.com/v3/__http://www.linkedin.com/company/verizon__;!!ACWV5N9M2RV99hQ!Ye_3j9Kud5mtsXFZRruAcicPH20qEwm2hHNRT5gAMCLSH0GABktWk3s-_WfIK14%24> [http://ss7.vzw.com/is/image/VerizonWireless/vz-sig-instagram?%24defaultscale%24] <https://urldefense.com/v3/__http://www.instagram.com/verizon__;!!ACWV5N9M2RV99hQ!Ye_3j9Kud5mtsXFZRruAcicPH20qEwm2hHNRT5gAMCLSH0GABktWk3s-QL6Gljo%24>

Nigel Reed
Principal Engineer - Lifecycle A&E - ISD
Global Service Assurance
Verizon Business Group

O 4692813111

400 International Pkwy
Richardson, TX 75081