Re: [E] [users@httpd] [External] : [users@httpd] Problems compiling under Solaris 10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>:

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@xxxxxxxxxx> wrote:
fyi, I have opened a bug. In case someone is interested or experiencing the same please feel free to add to it:


Am 31.08.2021 um 17:08 schrieb Ran Mozes <RAN.MOZES@xxxxxxxxxx>:

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@xxxxxxxxx>:

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@xxxxxxxxxx> 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 -lexpat apache_upgrade_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
Any solution found?
Thanks,
Ran
Am 23.07.2021 um 11:11 schrieb Reed, Nigel <nreed@xxxxxxxxxxx.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 -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
--

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

O 4692813111

400 International Pkwy
Richardson, TX 75081







[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux