Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 41774 invoked from network); 3 Sep 2003 12:29:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Sep 2003 12:29:09 -0000 Received: (qmail 88432 invoked by uid 500); 3 Sep 2003 12:28:42 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 88261 invoked by uid 500); 3 Sep 2003 12:28:39 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 88143 invoked from network); 3 Sep 2003 12:28:35 -0000 Received: from unknown (HELO esacom41-int.esrin.esa.int) (192.171.5.19) by daedalus.apache.org with SMTP; 3 Sep 2003 12:28:35 -0000 Received: from esacom66.esrin.esa.int (esacom66.esrin.esa.int [131.176.129.1]) by esacom41-int.esrin.esa.int (8.12.9/8.12.9/ESA-External-v3.2) with ESMTP id h83CSWOb011615 for ; Wed, 3 Sep 2003 14:28:33 +0200 (MET DST) Received: from esrinmail3.esrin.esa.int (esrinmail3.esrin.esa.int [131.176.130.180]) by esacom66.esrin.esa.int (8.12.9/8.12.9/ESA-Internal-v3.2) with SMTP id h83CSTqG022705 for ; Wed, 3 Sep 2003 12:28:32 GMT Received: by esrinmail3.esrin.esa.int(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 41256D96.0049D2B5 ; Wed, 3 Sep 2003 14:26:20 +0100 X-Lotus-FromDomain: ESA From: Stefano.Zanasco@esa.int To: dev@httpd.apache.org Message-ID: <41256D96.0049D0BF.00@esrinmail3.esrin.esa.int> Date: Wed, 3 Sep 2003 14:27:14 +0100 Subject: apache 1.3.27 64bit on Solaris8... Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ...It's up and running. Hi everyone, my apologies in advance if you already know the following issue. It's new to me. I found no useful info about running a full 64 bit instance of Apache (I have 1.3.27) on Solaris 8. Then, I preferred to compile it. I did this by running GCC 3.2 compiler on a 64-bit enabled Solaris8 host, an old ultra-1 workstation. Compiler switches to be defined *before* running ./configure: CFLAGS='-O2 -mcpu=ultrasparc -mtune=ultrasparc -m64 -D_LARGEFILE64_SOURCE' Actually, the necessary options are only -m64 and -D_LARGEFILE64_SOURCE, while the rest is tuning. I changed a few lines in the source code: alloc.c and http_log.c, directory /src/main. Here are the diffs (alloc.c_32 and http_log.c_32 are the original ones): $ diff alloc.c alloc.c_32 1795c1795 < fd = open64(name, flg, mode); --- > fd = open(name, flg, mode); 1887c1887 < desc = open64(name, baseFlag | O_APPEND | O_CREAT, --- > desc = open(name, baseFlag | O_APPEND | O_CREAT, 1895c1895 < fd = fopen64(name, mode); --- > fd = fopen(name, mode); --------------------- $ diff http_log.c http_log.c_32 284c284 < if (replace_stderr && freopen64("/dev/null", "w", stderr) == NULL) { --- > if (replace_stderr && freopen("/dev/null", "w", stderr) == NULL) { 533,534c533,534 < if(!(pid_file = fopen64(fname, "w"))) { < perror("fopen64"); --- > if(!(pid_file = fopen(fname, "w"))) { > perror("fopen"); The above changes are necessary in order to be able to open log files bigger than 2 GBytes (exactly: 2^31 bytes), which was the problem that led me to do this stuff. I'm aware of the fact that this is only *a part* of the work: some other changes could be performed on the "support" programs: logrotate, etc... I hope it helps. Cheers, Stefano Zanasco Serco AIS System Manager ESA - ESRIN Via Galileo Galilei 00044 Frascati (RM) - Italy email: Stefano.Zanascoesa.int