Bug 45253

Summary: Unable to build httpd 2.2.9 on Solaris/SPARC
Product: Apache httpd-2 Reporter: Axel-Stephane Smorgrav <asmorgrav>
Component: BuildAssignee: Apache HTTPD Bugs Mailing List <bugs>
Severity: normal CC: kennylls
Priority: P2 Keywords: MassUpdate
Version: 2.2.9   
Target Milestone: ---   
Hardware: Sun   
OS: Solaris   

Description Axel-Stephane Smorgrav 2008-06-23 00:58:09 UTC
Building httpd on Solaris aborts with the following error:

/ehc/fs1/home/apache/src/httpd-2.2.9/srclib/apr/libtool --silent --mode=link gcc   -g -O3 -pthreads -mcpu=ultrasparc3 -m32 -R/u01/opt/lib -L/u01/opt/lib -lm -o htpasswd  htpasswd.lo    /ehc/fs1/home/apache/src/httpd-2.2.9/srclib/pcre/libpcre.la /ehc/fs1/home/apache/src/httpd-2.2.9/srclib/apr-util/libaprutil-1.la -lexpat /ehc/fs1/home/apache/src/httpd-2.2.9/srclib/apr/libapr-1.la -luuid -lsendfile -lrt -lsocket -lnsl -lpthread
Undefined                       first referenced
 symbol                             in file
__sync_fetch_and_add_4              /ehc/fs1/home/apache/src/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
__sync_fetch_and_sub_4              /ehc/fs1/home/apache/src/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
ld: fatal: Symbol referencing errors. No output written to .libs/htpasswd

The error occurs on both Solaris 8 and Solaris 10. On both systems builtin atomics are preferred over Solaris atomics
Comment 1 Axel-Stephane Smorgrav 2008-06-24 00:43:16 UTC
The problem may be circumvented by including "-D USE_ATOMICS_GENERIC" in the CFLAGS prior to running the configure script.

On Solaris 10, one may force the use of Solaris atomics by setting HAVE_ATOMIC_BUILTINS to 0 in srclib/apr/include/arch/unix/apr_private.h
Comment 2 Nick Kew 2009-05-24 17:37:13 UTC
*** Bug 45415 has been marked as a duplicate of this bug. ***
Comment 3 Axel-Stephane Smorgrav 2009-05-26 09:58:05 UTC
This bug also affects Apache 2.2.11. I believe it was introduced with the new version of APR.
Comment 4 William A. Rowe Jr. 2018-11-07 21:08:47 UTC
Please help us to refine our list of open and current defects; this is a mass update of old and inactive Bugzilla reports which reflect user error, already resolved defects, and still-existing defects in httpd.

As repeatedly announced, the Apache HTTP Server Project has discontinued all development and patch review of the 2.2.x series of releases. The final release 2.2.34 was published in July 2017, and no further evaluation of bug reports or security risks will be considered or published for 2.2.x releases. All reports older than 2.4.x have been updated to status RESOLVED/LATER; no further action is expected unless the report still applies to a current version of httpd.

If your report represented a question or confusion about how to use an httpd feature, an unexpected server behavior, problems building or installing httpd, or working with an external component (a third party module, browser etc.) we ask you to start by bringing your question to the User Support and Discussion mailing list, see [https://httpd.apache.org/lists.html#http-users] for details. Include a link to this Bugzilla report for completeness with your question.

If your report was clearly a defect in httpd or a feature request, we ask that you retest using a modern httpd release (2.4.33 or later) released in the past year. If it can be reproduced, please reopen this bug and change the Version field above to the httpd version you have reconfirmed with.

Your help in identifying defects or enhancements still applicable to the current httpd server software release is greatly appreciated.