From suresh@frodo.hserus.net  Sat Feb  7 19:58:23 2004
Return-Path: <suresh@frodo.hserus.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1F5B416A5BD
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Feb 2004 19:58:23 -0800 (PST)
Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 16AAA43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Feb 2004 19:58:23 -0800 (PST)
	(envelope-from suresh@frodo.hserus.net)
Received: from suresh by frodo.hserus.net with local (Exim 4.30 #0)
	id 1Apg5O-000Dfg-3h by authid <suresh>
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 08 Feb 2004 09:28:22 +0530
Message-Id: <E1Apg5O-000Dfg-3h@frodo.hserus.net>
Date: Sun, 08 Feb 2004 09:28:22 +0530
From: Suresh Ramasubramanian <suresh@frodo.hserus.net>
Reply-To: Suresh Ramasubramanian <suresh@frodo.hserus.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mod_perl doesnt build with ipv6 enabled apache13-modssl port
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62510
>Category:       ports
>Synopsis:       mod_perl doesnt build with ipv6 enabled apache13-modssl port
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 07 20:00:40 PST 2004
>Closed-Date:    Sat Feb 14 16:23:40 PST 2004
>Last-Modified:  Sat Feb 14 16:23:40 PST 2004
>Originator:     Suresh Ramasubramanian
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
-ENOENT
>Environment:
System: FreeBSD frodo.hserus.net 4.9-STABLE FreeBSD 4.9-STABLE #0: Fri Dec 5 05:29:37 IST 2003 suresh@frodo.hserus.net:/usr/obj/usr/src/sys/FRODO i386

perl58 from ports, apache13-mod_ssl with APACHE_WITH_IPV6 set (and up and
running on an ipv6 interface), mod_perl from ports.
>Description:
This is a resubmission of my earlier PR ports/62473

As I recently recompiled my apache with IPV6 support, I thought I'd rebuild all
the modules that I used.  Started with mod_perl.  making the port bombs because mod_perl does not have ipv6 support in this port.

>How-To-Repeat:
Just compile the apache13-mod_ssl port using the APACHE_WITH_IPV6 flag.
Then cd /usr/ports/www/mod_perl, and do a make there.  This is what you get -

Error message goes -

/usr/bin/perl5.8.2 /usr/local/lib/perl5/5.8.2/ExtUtils/xsubpp -nolinenumbers -typemap /usr/local/lib/perl5/5.8.2/ExtUtils/typemap Connection.xs >Connection.c
cc -DPIC -fPIC -O -pipe -I/usr/local/lib/perl5/5.8.2/mach/CORE -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.2/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include  -DMOD_PERL_VERSION=\"1.28\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.28\" -DMOD_PERL_PREFIX=\"/usr/local/lib/perl5/site_perl/5.8.2/i386-freebsd\" -I/usr/local/include/apache -DMOD_PERL -DHARD_SERVER_LIMIT=512  -DDOCUMENT_LOCATION=\"/usr/local/www/data/\"  -DDEFAULT_PATH=\"/usr/local/bin:/bin:/usr/bin\"  -DACCEPT_FILTER_NAME=\"httpready\" -DFD_SETSIZE=1024 -funsigned-char -DINET6 -Dss_family=__ss_family -Dss_len=__ss_len -DHAVE_SOCKADDR_LEN -DMOD_SSL=208116 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -O -pipe -O -pipe   -c Connection.c && mv Connection.o Connection.lo
Connection.c: In function `XS_Apache__Connection_remote_addr':
Connection.c:123: incompatible types in assignment
Connection.c: In function `XS_Apache__Connection_remote_ip':
Connection.c:159: structure has no member named `sin_addr'
*** Error code 1

Stop in /usr/ports/www/mod_perl/work/mod_perl-1.28/apaci.
*** Error code 1

Stop in /usr/ports/www/mod_perl/work/mod_perl-1.28.
*** Error code 1

Stop in /usr/ports/www/mod_perl.
>Fix:

Similar to the fix described in
http://mail-index.netbsd.org/netbsd-bugs/2001/11/23/0007.html
>Release-Note:
>Audit-Trail:

From: Suresh Ramasubramanian <suresh@hserus.net>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/62510: mod_perl doesnt build with ipv6 enabled apache13-modssl
 port
Date: Tue, 10 Feb 2004 15:43:23 +0530

 I must point out that several other ports have this same issue - where a 
   port gets ipv6 enabled but related ports do not get updated to include 
 ipv6 support.
 
 For example - ports/dns/djbdns/ has ipv6 support, but 
 ports/sysutils/ucspi-tcp (djb's tcpserver, needed to run djbdns) doesn't 
 have v6 support compiled in, though there's a ipv6 patch for ucspi-tcp 
 available from the same source (www.fefe.de / Felix von Leitner) that 
 the v6 patch for djbdns was obtained from.  [OK, that v6 patch for 
 tcpserver uses EPROTO, which would be EPROTOTYPE in Freebsd I guess, as 
 EPROTO is not defined in Freebsd - but otherwise that patch just works]
 
 	srs
 
 FreeBSD-gnats-submit@FreeBSD.org wrote:
 
 >>Category:       ports
 >>Responsible:    freebsd-ports-bugs
 >>Synopsis:       mod_perl doesnt build with ipv6 enabled apache13-modssl port
 >>Arrival-Date:   Sat Feb 07 20:00:40 PST 2004
State-Changed-From-To: open->closed 
State-Changed-By: naddy 
State-Changed-When: Sat Feb 14 16:17:20 PST 2004 
State-Changed-Why:  
The IPv6 patch for Apache 1.3.x is known to break the module API. 
You can have either IPv6 support or third party modules, but not both. 
Sorry. 

To quote from the README of the IPv6 patch: 

CAVEAT: This patchkit may change some of apache module API, to avoid 
IPv4-dependent structure member variable (like use of u_long to hold 
IPv4 address, or whatever).  Therefore, it is almost impossible for the 
IPv6 patch to be used with other module patches, at the same time 
(including mod_ssl, mod_perl and others).  We have no plan to fix it. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=62510 
>Unformatted:
