You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1998/04/20 22:45:35 UTC
1.3b6: Porting changes for HPUX 11.0 (fwd)
acked.
---------- Forwarded message ----------
Date: Mon, 20 Apr 1998 16:11:16 -0400 (EDT)
From: "Jeff A. Earickson" <ja...@colby.edu>
To: apache-bugs@apache.org
Subject: 1.3b6: Porting changes for HPUX 11.0
Hi,
The following contextual diffs are the porting changes I had to do to
src/Configure and src/include/conf.h to get the 1.3b6 code to compile and
load for HPUX 11.0. These work for both HP's ANSI C compiler (cc) and
gcc 2.8.1.
Note that HPUX 11 supports POSIX threads, and that I've added the tweaks
to conf.h for this. If the POSIX thread/mutex stuff is uncommented in conf.h,
the code will actually compile and load properly. God knows if the mutexes
actually work or not, since I haven't gotten that far in my testing. (I notice
that the pthreads thing for Solaris was backed out since 1.3b5.)
Please roll these changes into your next release. Keep up the good
work and thanks.
*** Configure.orig Mon Apr 20 14:49:07 1998
--- Configure Mon Apr 20 15:25:50 1998
***************
*** 338,343 ****
--- 338,349 ----
OS='HI-UX'
CFLAGS="$CFLAGS -DHIUX"
;;
+ *-hp-hpux11.*)
+ OS='HP-UX 11'
+ CFLAGS="$CFLAGS -DHPUX11"
+ LIBS="$LIBS -lm -lpthread"
+ DEF_WANTHSREGEX=yes
+ ;;
*-hp-hpux10.*)
OS='HP-UX 10'
CFLAGS="$CFLAGS -DHPUX10"
***************
*** 881,886 ****
--- 887,900 ----
LDFLAGS_SHLIB="-b"
LDFLAGS_SHLIB_EXPORT="-Wl,-E -Wl,-B,deferred"
;;
+ *-hp-hpux11.*)
+ case $CC in
+ */gcc|gcc ) CFLAGS_SHLIB="-fpic" ;;
+ */cc|cc ) CFLAGS_SHLIB="+z" ;;
+ esac
+ LDFLAGS_SHLIB="-b"
+ LDFLAGS_SHLIB_EXPORT="-Wl,-E -Wl,-B,deferred"
+ ;;
*)
## ok, no known explict support for shared objects
## on this platform, but we give not up immediately.
***************
*** 989,995 ****
;;
esac
;;
! 'HP-UX'|'HP-UX 10')
case "$CC" in
*/cc|cc )
CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
--- 1003,1009 ----
;;
esac
;;
! 'HP-UX'|'HP-UX 10'|'HP-UX 11')
case "$CC" in
*/cc|cc )
CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
*** include/conf.h.orig Mon Apr 20 15:32:15 1998
--- include/conf.h Mon Apr 20 15:35:07 1998
***************
*** 205,210 ****
--- 205,231 ----
typedef int rlim_t;
#endif
+ #elif defined(HPUX11)
+ #ifndef _HPUX_SOURCE
+ #define _HPUX_SOURCE
+ #endif
+ #define HAVE_SHMGET
+ #define USE_SHMGET_SCOREBOARD
+ #undef HAVE_GMTOFF
+ #define HAVE_RESOURCE
+ #define HAVE_CRYPT_H
+ #undef HAVE_SYS_SELECT_H
+ #define HAVE_SYS_RESOURCE_H
+ #define USE_FCNTL_SERIALIZED_ACCEPT
+ /* feeling brave? want to try using POSIX mutexes? */
+ /* #define HAVE_MMAP */
+ /* #define USE_MMAP_SCOREBOARD */
+ /* #define USE_MMAP_FILES */
+ /* #define USE_PTHREAD_SERIALIZED_ACCEPT */
+ #define NO_KILLPG
+ #undef NO_SETSID
+ #define HAVE_SYSLOG
+
#elif defined(AIX)
#undef HAVE_GMTOFF
#undef NO_KILLPG
** Jeff A. Earickson, Ph.D PHONE: 207-872-3659
** Senior UNIX Sysadmin, Information Technology EMAIL: jaearick@colby.edu
** Colby College, 4214 Mayflower Hill, FAX: 207-872-3555
** Waterville ME, 04901-8842
----------------------------------------------------------------------------
How come all animals that you really wouldn't want to eat all taste like
chicken? What does that tell you about actually eating chicken?
----------------------------------------------------------------------------