You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Michael Ottati <Mi...@compaq.com> on 1999/07/31 08:49:19 UTC

general/4804: Changes necessary to get Apache 1.3.6 to port to Tandem

>Number:         4804
>Category:       general
>Synopsis:       Changes necessary to get Apache 1.3.6 to port to Tandem
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Fri Jul 30 23:50:00 PDT 1999
>Last-Modified:
>Originator:     Michael.Ottati@compaq.com
>Organization:
apache
>Release:        1.3.6
>Environment:
Tandem Computers, Non Stop Kernel Operating System G06, Release G06.00

/h/ottati: uname -a
NONSTOP_KERNEL myst G06 00 NSR-G
>Description:
This is not a problem, just what is necessary to get a port done on this platform. If someone wants to contact me directly about this, I will take responsibility for creating binarys for a binary distribution.

I would also be more than hapy to resubmit these changes based upon the 1.3.7 tarball which was just released. I just need someone to guide me throught the process because from what I see on new-httpd list, the anarchy level is way to high for me to grok on my own.

Give me a mentor, and I will give you a new platform.

I will also be hapy to produce a binary release for 1.3.6 and above.
>How-To-Repeat:

>Fix:
I sent this message to new-httpd a few days ago. I would just like to get a response from an individual that can access CVS (or get my own access) and get the following in. Obviously, it should be passed by the group, I am not asking that the changes not be vetted.
----------------------------------------------------
Dear Apache:

	Attached to the end of this message are the changes necessary to get the Apache 1.3.6 distribution to compile build and execute on a Tandem Computers machine.

	I have done minor testing with this port. It comes up and server pages, beyond that I don't know much about it's behavior. It would be nice to get these into the source tree however I am a newbee to your procedures and I am as yet unclear as to how things are done. 

	First off I don't understand how you derive a CVS version number on files that are shipped in the 1.3.6 tar file. The files I looked at, I did not see anything obvious that I could key off of. I use a different source control package in my day job that is not CVS so although I am quite familiar with CM, I am not familiar with this use of CVS as a  CM tool.

	If the attached info and diff file is not sufficient for the needs of the Apache project to get these changes in, I would be happy to redo them however many times it takes me to get it right. Although I am at the moment ignorant of much of the process, I am educable given enough time.

	In the diff listing below, the directory /h/minoo/apache_1.3.6 represents the changed directory.

	Please let me know if there is anything I can do or further information that you will require to accept these minor changes. One last point of information, the Tandem compilers automatically include a define __TANDEM which therefore does not need to be defined in the src/Configure script.

Michael Ottati
Compaq Computer Corporation

E-mail:		Michael.Ottati@Compaq.com
office:		(1) 408-285-3373
telecommute:	(1) 925-417-7389   <--Today

--------------------------------------------------------------------------------------

Only in /h/minoo/apache_1.3.6: Makefile
Only in /h/minoo/apache_1.3.6: config.status
Only in /h/minoo/apache_1.3.6: config_oss
Only in /h/minoo/apache_1.3.6: install
Only in /h/minoo/apache_1.3.6: x
Only in /h/minoo/apache_1.3.6/src: .apaci.build.ok
Only in /h/minoo/apache_1.3.6/src: Configuration.apaci
diff -rc apache_1.3.6/src/Configure /h/minoo/apache_1.3.6/src/Configure
*** apache_1.3.6/src/Configure Thu Jul 27 22:58:08 2000
--- /h/minoo/apache_1.3.6/src/Configure Sun Jul 23 01:30:49 2000
***************
*** 731,736 ****
--- 731,741 ----
  	CC='cc'
  	RANLIB='true'
  	;;
+     *-tandem-oss)
+ 	OS='Tandem OSS'
+ 	CFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -g"
+ 	CC='c89'
+ 	;;
      *) # default: Catch systems we don't know about
  	OS='Unknown and unsupported OS'
      	echo Sorry, but we cannot grok \"$PLAT\"
Only in /h/minoo/apache_1.3.6/src: Makefile
Only in /h/minoo/apache_1.3.6/src: Makefile.config
Only in /h/minoo/apache_1.3.6/src: apaci
Only in /h/minoo/apache_1.3.6/src: buildmark.o
Only in /h/minoo/apache_1.3.6/src: httpd
Only in /h/minoo/apache_1.3.6/src: modules.c
Only in /h/minoo/apache_1.3.6/src: modules.o
Only in /h/minoo/apache_1.3.6/src/ap: Makefile
Only in /h/minoo/apache_1.3.6/src/ap: ap_cpystrn.o
Only in /h/minoo/apache_1.3.6/src/ap: ap_execve.o
Only in /h/minoo/apache_1.3.6/src/ap: ap_fnmatch.o
Only in /h/minoo/apache_1.3.6/src/ap: ap_md5c.o
Only in /h/minoo/apache_1.3.6/src/ap: ap_signal.o
Only in /h/minoo/apache_1.3.6/src/ap: ap_slack.o
Only in /h/minoo/apache_1.3.6/src/ap: ap_snprintf.o
Only in /h/minoo/apache_1.3.6/src/ap: libap.a
diff -rc apache_1.3.6/src/helpers/GuessOS /h/minoo/apache_1.3.6/src/helpers/GuessOS
*** apache_1.3.6/src/helpers/GuessOS Thu Jul 27 22:58:10 2000
--- /h/minoo/apache_1.3.6/src/helpers/GuessOS Sun Jul 23 01:13:01 2000
***************
*** 144,149 ****
--- 144,153 ----
  	echo "${MACHINE}-dec-osf"; exit 0
  	;;
  
+ 	NONSTOP_KERNEL:*:*:*)
+ 	echo "${MACHINE}-tandem-oss"; exit 0; 
+ 	;;
+ 
      QNX:*)
  	if [ "$VERSION" -gt 422 ]; then
  	    echo "${MACHINE}-qssl-qnx32"
diff -rc apache_1.3.6/src/include/ap_config.h /h/minoo/apache_1.3.6/src/include/ap_config.h
*** apache_1.3.6/src/include/ap_config.h Thu Jul 27 22:58:13 2000
--- /h/minoo/apache_1.3.6/src/include/ap_config.h Sun Jul 23 02:09:50 2000
***************
*** 874,879 ****
--- 874,885 ----
  #undef  offsetof
  #define offsetof(s_type,field) ((size_t)&(((s_type*)0)->field))
  
+ #elif defined(__TANDEM)
+ #define NO_WRITEV
+ #define NO_KILLPG
+ #define NEED_INITGROUPS
+ #define NO_SLACK
+ 
  #else
  /* Unknown system - Edit these to match */
  #ifdef BSD
***************
*** 957,964 ****
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  #include "ap_ctype.h"
! #if !defined(MPE) && !defined(WIN32) && !defined(TPF)
  #include <sys/file.h>
  #endif
  #ifndef WIN32
--- 963,973 ----
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
+ #ifdef __TANDEM
+ #include <strings.h>
+ #endif
  #include "ap_ctype.h"
! #if !defined(MPE) && !defined(WIN32) && !defined(TPF) && !defined(__TANDEM)
  #include <sys/file.h>
  #endif
  #ifndef WIN32
Only in /h/minoo/apache_1.3.6/src/include: ap_config_auto.h
diff -rc apache_1.3.6/src/include/hsregex.h /h/minoo/apache_1.3.6/src/include/hsregex.h
*** apache_1.3.6/src/include/hsregex.h Thu Jul 27 22:58:14 2000
--- /h/minoo/apache_1.3.6/src/include/hsregex.h Sun Jul 23 01:28:31 2000
***************
*** 15,27 ****
  #define API_EXPORT(type)    type
  #endif
  #endif
- 
  #if defined(RHAPSODY)
  #define ap_private_extern __private_extern__
  #else
  #define ap_private_extern
  #endif
- 
  typedef off_t regoff_t;
  typedef struct {
  	int re_magic;
--- 15,25 ----
Only in /h/minoo/apache_1.3.6/src/main: Makefile
Only in /h/minoo/apache_1.3.6/src/main: alloc.o
Only in /h/minoo/apache_1.3.6/src/main: buff.o
Only in /h/minoo/apache_1.3.6/src/main: gen_test_char
Only in /h/minoo/apache_1.3.6/src/main: gen_test_char.o
Only in /h/minoo/apache_1.3.6/src/main: gen_uri_delims
Only in /h/minoo/apache_1.3.6/src/main: gen_uri_delims.o
Only in /h/minoo/apache_1.3.6/src/main: http_config.o
Only in /h/minoo/apache_1.3.6/src/main: http_core.o
Only in /h/minoo/apache_1.3.6/src/main: http_log.o
Only in /h/minoo/apache_1.3.6/src/main: http_main.o
Only in /h/minoo/apache_1.3.6/src/main: http_protocol.o
Only in /h/minoo/apache_1.3.6/src/main: http_request.o
Only in /h/minoo/apache_1.3.6/src/main: http_vhost.o
Only in /h/minoo/apache_1.3.6/src/main: libmain.a
Only in /h/minoo/apache_1.3.6/src/main: rfc1413.o
Only in /h/minoo/apache_1.3.6/src/main: test_char.h
Only in /h/minoo/apache_1.3.6/src/main: uri_delims.h
diff -rc apache_1.3.6/src/main/util.c /h/minoo/apache_1.3.6/src/main/util.c
*** apache_1.3.6/src/main/util.c Thu Jul 27 22:58:20 2000
--- /h/minoo/apache_1.3.6/src/main/util.c Sun Jul 23 01:13:11 2000
***************
*** 1708,1714 ****
  #ifdef NEED_INITGROUPS
  int initgroups(const char *name, gid_t basegid)
  {
! #if defined(QNX) || defined(MPE) || defined(BEOS) || defined(_OSD_POSIX) || defined(TPF)
  /* QNX, MPE and BeOS do not appear to support supplementary groups. */
      return 0;
  #else /* ndef QNX */
--- 1708,1714 ----
  #ifdef NEED_INITGROUPS
  int initgroups(const char *name, gid_t basegid)
  {
! #if defined(QNX) || defined(MPE) || defined(BEOS) || defined(_OSD_POSIX) || defined(TPF) || defined(__TANDEM)
  /* QNX, MPE and BeOS do not appear to support supplementary groups. */
      return 0;
  #else /* ndef QNX */
Only in /h/minoo/apache_1.3.6/src/main: util.o
Only in /h/minoo/apache_1.3.6/src/main: util_date.o
Only in /h/minoo/apache_1.3.6/src/main: util_md5.o
Only in /h/minoo/apache_1.3.6/src/main: util_script.o
Only in /h/minoo/apache_1.3.6/src/main: util_uri.o
Only in /h/minoo/apache_1.3.6/src/modules: Makefile
Only in /h/minoo/apache_1.3.6/src/modules/proxy: Makefile
diff -rc apache_1.3.6/src/modules/proxy/proxy_cache.c /h/minoo/apache_1.3.6/src/modules/proxy/proxy_cache.c
*** apache_1.3.6/src/modules/proxy/proxy_cache.c Thu Jul 27 22:58:23 2000
--- /h/minoo/apache_1.3.6/src/modules/proxy/proxy_cache.c Tue Jul 25 09:45:18 2000
***************
*** 69,74 ****
--- 69,78 ----
  #endif /* WIN32 */
  #include "multithread.h"
  #include "ap_md5.h"
+ #ifdef __TANDEM
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #endif
  
  DEF_Explain
  
***************
*** 1106,1111 ****
--- 1110,1117 ----
  	    *p = '\0';
  #ifdef WIN32
  	    if (mkdir(c->filename) < 0 && errno != EEXIST)
+ #elif defined(__TANDEM)
+ 	    if (mkdir(c->filename, S_IRWXU | S_IRWXG | S_IRWXO) < 0 && errno != EEXIST)
  #else
  	    if (mkdir(c->filename, S_IREAD | S_IWRITE | S_IEXEC) < 0 && errno != EEXIST)
  #endif /* WIN32 */
Only in /h/minoo/apache_1.3.6/src/modules/standard: Makefile
Only in /h/minoo/apache_1.3.6/src/modules/standard: libstandard.a
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_access.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_actions.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_alias.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_asis.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_auth.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_autoindex.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_cgi.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_dir.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_env.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_imap.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_include.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_log_config.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_mime.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_negotiation.o
diff -rc apache_1.3.6/src/modules/standard/mod_rewrite.h /h/minoo/apache_1.3.6/src/modules/standard/mod_rewrite.h
*** apache_1.3.6/src/modules/standard/mod_rewrite.h Thu Jul 27 22:58:29 2000
--- /h/minoo/apache_1.3.6/src/modules/standard/mod_rewrite.h Tue Jul 25 09:32:07 2000
***************
*** 149,155 ****
  #endif
  #if !defined(USE_FCNTL) && !defined(USE_FLOCK)
  #define USE_FLOCK 1
! #if !defined(MPE) && !defined(WIN32)
  #include <sys/file.h>
  #endif
  #ifndef LOCK_UN
--- 149,155 ----
  #endif
  #if !defined(USE_FCNTL) && !defined(USE_FLOCK)
  #define USE_FLOCK 1
! #if !defined(MPE) && !defined(WIN32) && !defined(__TANDEM)
  #include <sys/file.h>
  #endif
  #ifndef LOCK_UN
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_setenvif.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_status.o
Only in /h/minoo/apache_1.3.6/src/modules/standard: mod_userdir.o
Only in /h/minoo/apache_1.3.6/src/os/unix: Makefile
Only in /h/minoo/apache_1.3.6/src/os/unix: libos.a
Only in /h/minoo/apache_1.3.6/src/os/unix: os-inline.o
Only in /h/minoo/apache_1.3.6/src/os/unix: os.o
Only in /h/minoo/apache_1.3.6/src/regex: Makefile
Only in /h/minoo/apache_1.3.6/src/regex: libregex.a
Only in /h/minoo/apache_1.3.6/src/regex: regcomp.o
Only in /h/minoo/apache_1.3.6/src/regex: regerror.o
Only in /h/minoo/apache_1.3.6/src/regex: regexec.o
Only in /h/minoo/apache_1.3.6/src/regex: regfree.o
Only in /h/minoo/apache_1.3.6/src/support: Makefile
Only in /h/minoo/apache_1.3.6/src/support: ab
Only in /h/minoo/apache_1.3.6/src/support: ab.o
Only in /h/minoo/apache_1.3.6/src/support: apxs
Only in /h/minoo/apache_1.3.6/src/support: htdigest
diff -rc apache_1.3.6/src/support/htdigest.c /h/minoo/apache_1.3.6/src/support/htdigest.c
*** apache_1.3.6/src/support/htdigest.c Thu Jul 27 22:58:46 2000
--- /h/minoo/apache_1.3.6/src/support/htdigest.c Sun Jul 23 01:13:39 2000
***************
*** 12,18 ****
  
  #include "ap_config.h"
  #include <sys/types.h>
! #if defined(MPE) || defined(QNX)
  #include <signal.h>
  #else
  #include <sys/signal.h>
--- 12,18 ----
  
  #include "ap_config.h"
  #include <sys/types.h>
! #if defined(MPE) || defined(QNX) || defined(__TANDEM)
  #include <signal.h>
  #else
  #include <sys/signal.h>
Only in /h/minoo/apache_1.3.6/src/support: htdigest.o
Only in /h/minoo/apache_1.3.6/src/support: htpasswd
Only in /h/minoo/apache_1.3.6/src/support: htpasswd.o
Only in /h/minoo/apache_1.3.6/src/support: logresolve
Only in /h/minoo/apache_1.3.6/src/support: logresolve.o
Only in /h/minoo/apache_1.3.6/src/support: rotatelogs
Only in /h/minoo/apache_1.3.6/src/support: rotatelogs.o
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]