Subject: pkg/18070: enable large file support in www/apache to satisfy www/ap-perl
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 08/26/2002 11:27:15
>Number:         18070
>Category:       pkg
>Synopsis:       enable large file support in www/apache to satisfy www/ap-perl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 25 18:27:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        NetBSD 1.6F
>Organization:
>Environment:
System: NetBSD mofo 1.6F NetBSD 1.6F (MOFO) #1: Tue Aug 20 12:21:00 EST 2002 grant@mofo:/raid0/netbsd/current/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
>Description:
While building www/ap-perl, the following warning is generated:

************* WARNING *************

  Your Perl is uselargefiles enabled, but Apache is not, suggestions:
    *) Rebuild mod_perl with Makefile.PL PERL_USELARGEFILES=0
    *) Rebuild Apache with CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
    *) Rebuild Perl with Configure -Uuselargefiles
    *) Let mod_perl build Apache (USE_DSO=1 instead of USE_APXS=1)

************* WARNING *************

This can be eliminated by adding the suggested flags to the Apache build.

>How-To-Repeat:
cd /usr/pkgsrc/www/ap-perl; make configure

>Fix:
The following patch fixes this, but it would be preferable to determine
whether large file support should be enabled.

Tested on -current/i386 and Solaris 7.

Index: www/apache/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/apache/Makefile,v
retrieving revision 1.104
diff -u -r1.104 Makefile
--- www/apache/Makefile	2002/08/25 18:40:16	1.104
+++ www/apache/Makefile	2002/08/26 01:23:32
@@ -102,6 +102,10 @@
 APACHE_CUSTOM_CFLAGS+=	-O6 -fomit-frame-pointer -fexpensive-optimizations
 .endif
 
+# Explicitly turn on large file support
+APACHE_CUSTOM_CFLAGS+=	-D_LARGEFILE_SOURCE
+APACHE_CUSTOM_CFLAGS+=	-D_FILE_OFFSET_BITS=64
+
 # On NetBSD ELF platforms, we need to link libgcc.a whole-archive so that
 # certain symbols from the C++ implementation (__get_eh_context, etc.)
 # referenced by DSOs written in C++ will resolve correctly.
>Release-Note:
>Audit-Trail:
>Unformatted: