httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9247] - Apache 2 fails to build on Solaris 64bit Compiler
Date Tue, 11 Jun 2002 12:17:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9247>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9247

Apache 2 fails to build on Solaris 64bit Compiler





------- Additional Comments From pier@betaversion.org  2002-06-11 12:17 -------
This patch is _UGLY_ but fixes the problem and allows building using a 
64 bits compiler, when CFLAGS contain either "-m64" (GCC) or "-xarch=
v9" (Sun CC).

$ cvs diff -u3 configure.in 
Index: configure.in
=========================================================
==========
RCS file: /home/cvspublic/apr/configure.in,v
retrieving revision 1.452
diff -u -3 -r1.452 configure.in
--- configure.in        10 Jun 2002 18:51:13 -0000      1.452
+++ configure.in        11 Jun 2002 12:08:16 -0000
@@ -380,15 +380,27 @@
                   apr_atomic_sparc_compile=apr_atomic_sparc_no_support.lo
                   ;;
                 *)
+                  AC_MSG_CHECKING([APR atomics architecture for Solaris])
+                  _TMP_ARC="v8plus"
+                  for _TMP_VAL in $CFLAGS ; do
+                    if test "$_TMP_VAL" = "-m64" ; then
+                      _TMP_ARC="v9"
+                    elif test "$_TMP_VAL" = "-xarch=v9" ; then
+                      _TMP_ARC="v9"
+                    fi
+                  done
+                  AC_MSG_RESULT([Sparc-$_TMP_ARC])
                   if test -n "$is_gnu_as"; then
-                    ASFLAGS="-xarch=v8plus -K PIC"
+                    ASFLAGS="-xarch=$_TMP_ARC -K PIC"
                     ASCPPFLAGS="-traditional-cpp -D_ASM -D__STDC__=0"
                     ASCPP="gcc -E"
                   else 
-                    ASFLAGS="-K pic -P -D_ASM -D__STDC__=0 -xarch=v8plus"
+                    ASFLAGS="-K pic -P -D_ASM -D__STDC__=0 -xarch=
$_TMP_ARC"
                     ASCPPFLAGS=""
                     ASCPP="cat"
                   fi
+                  unset _TMP_VAL
+                  unset _TMP_ARC
                   ;;
                 esac
             else

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message