Bug 65542 - Apache httpd 2.4.48 compilation fails on Solaris 10 X86 - Linker Problem
Summary: Apache httpd 2.4.48 compilation fails on Solaris 10 X86 - Linker Problem
Status: RESOLVED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.4.48
Hardware: Sun Solaris
: P2 regression (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-01 06:39 UTC by ran.mozes
Modified: 2021-09-01 08:24 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ran.mozes 2021-09-01 06:39:00 UTC
I am experiencing errors while trying to compile apache-2.4.48 on a Solaris 10 X86 machine. I had no issues using the same machine to compile 2.4.46 before. 

The error I get is:

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_methods               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

My OpenSSL compilation was successful and I exported the LD_LIBRARY_PATH to point to the correct location. 

my compilation flages are:

export CFLAGS=-m32
export LD_LIBRARY_PATH=$APACHEDIR/lib

./configure --prefix=$APACHEDIR --disable-proxy_express --disable-proxy_balancer --enable-deflate=static --enable-cgi=static --enable-dir=static --enable-ssl=static --enable-pcre=static --enable-unixd=static --enable-
alias=static --enable-setenvif=static --enable-log-config=static --enable-deflate=static --enable-filter=static --enable-socache-dbm=static --enable-mime=static --enable-authz-core=static --enable-authz-host=static --
enable-proxy=static --enable-proxy-http=static --enable-rewrite=static --enable-headers=static --enable-cache=static --enable-cache-disk=static --enable-dav=static --enable-autoindex=static --enable-reqtimeout=static
--enable-mime_magic=static --with-mpm=prefork --with-ssl=$APACHEDIR/ --with-module=sigvalidate:apache_upgrade_2.4.48/mod_sigvalidate.c --with-included-apr --with-pcre=$APACHEDIR --with-zlib=$APACHEDIR

Build is done using: apr-1.7.0 and apr-util-1.6.1
Comment 1 ran.mozes 2021-09-01 06:48:27 UTC
all the other pre-compiled components were built as 32 bit (to rule out a 32/64 bit incompatibility) 

file $APACHEDIR/lib/*.so

$APACHEDIR/lib/libapr-1.so:        ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available

$APACHEDIR/lib/libaprutil-1.so:    ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available

$APACHEDIR/lib/libclntsh.so:       ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU], dynamically linked, not stripped
$APACHEDIR/lib/libcrypto.so:       ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped
$APACHEDIR/lib/libcurl.so: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available
$APACHEDIR/lib/libnnz11.so:        ELF 32-bit LSB dynamic lib 80386 Version 1 [SSE2 SSE CMOV FPU], dynamically linked, not stripped
$APACHEDIR/libociei.so:        ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU], dynamically linked, not stripped
$APACHEDIR/lib/libocijdbc11.so:    ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped
$APACHEDIR/lib/libpcre.so: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped
$APACHEDIR/lib/libpcreposix.so:    ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped
$APACHEDIR/lib/librpm-4.1.so:      ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, stripped
$APACHEDIR/lib/librpmdb-4.1.so:    ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, stripped
$APACHEDIR/lib/librpmio-4.1.so:    ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, stripped
$APACHEDIR/lib/libssl.so:  ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available
$APACHEDIR/lib/libxml2.so: ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU], dynamically linked, not stripped
$APACHEDIR/lib/libz.so:    ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available
Comment 2 ran.mozes 2021-09-01 08:24:36 UTC
I was able to compile on another Sol 10 x86 machine. It was probably some env issue. Please ignore this bug. closing. I do see an issue on sol 10 sparc 

tmp/rmozes/apache_upgrade_2.4.48/httpd-2.4.48/srclib/apr-util/include -I/var/tmp/rmozes/apache_upgrade_2.4.48/httpd-2.4.48/srclib/apr-util/include/private -I/usr/include/pgsql  -I/var/tmp/rmozes/apache_upgrade_2.4.48/httpd-2.4.48/srclib/apr/include  -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35: expat.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `xml/apr_xml.lo'
Current working directory /var/tmp/rmozes/apache_upgrade_2.4.48/httpd-2.4.48/srclib/apr-util
*** Error code 1

I wonder if this dependency on expat is a new thing.