NetBSD Problem Report #17914

Received: (qmail 21619 invoked by uid 605); 12 Aug 2002 02:26:00 -0000
Message-Id: <200208120225.g7C2PwE01439@kolvir.arlington.ma.us>
Date: Sun, 11 Aug 2002 22:25:58 -0400 (EDT)
From: jtk@kolvir.arlington.ma.us
Sender: gnats-bugs-owner@netbsd.org
Reply-To: jtk@kolvir.arlington.ma.us
To: gnats-bugs@gnats.netbsd.org
Subject: can't build ap-ssl 2.8.10
X-Send-Pr-Version: 3.95

>Number:         17914
>Category:       pkg
>Synopsis:       can't build ap-ssl 2.8.10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jlam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 12 02:27:00 +0000 2002
>Closed-Date:    Wed Nov 20 07:08:40 +0000 2002
>Last-Modified:  Wed Nov 20 07:08:40 +0000 2002
>Originator:     John Kohl
>Release:        NetBSD 1.6_BETA5
>Organization:
NetBSD Kernel Hackers `R` Us
>Environment:
System: NetBSD kolvir.arlington.ma.us 1.6_BETA5 NetBSD 1.6_BETA5 (KOLVIR-$Revision: 1.47 $) #2: Sat Aug 10 09:36:48 EDT 2002 jtk@kolvir.arlington.ma.us:/usr/u4/sandbox/src/sys/arch/i386/compile/KOLVIR i386
Architecture: i386
Machine: i386

>Description:
The ap-ssl package doesn't build right for me on NetBSD 1.6 BETA5 (i386)
It fails due to some include path problems.
When I hand-edited the Makefile to add the apache source include
directory as the first include directory, it built fine (and runs fine).

>How-To-Repeat:
try building ap-ssl

Here's the errors I get on 1.6_RC1 trying to build it:
===> Building for ap-ssl-2.8.10nb1
cc -c  -I/u5/pkgwrk/www/ap-ssl/work/.buildlink/include/httpd -DNETBSD -DEAPI -DEAPI_MM -I/u5/pkgwrk/www/apache/work/.buildlink/include -O2 -fPIC -DPIC -DSHARED_MODULE -I/u5/pkgwrk/www/ap-ssl/work/.buildlink/include -DMOD_SSL_VERSION=\"2.8.10\" mod_ssl.c && mv mod_ssl.o mod_ssl.lo
In file included from mod_ssl.c:65:
mod_ssl.h:547: parse error before `AP_MM'
mod_ssl.h:547: warning: no semicolon at end of struct or union
mod_ssl.h:567: parse error before `}'
mod_ssl.h:567: warning: data definition has no type or storage class
mod_ssl.c:242: warning: excess elements in struct initializer
mod_ssl.c:242: warning: (near initialization for `ssl_module')
mod_ssl.c:243: warning: excess elements in struct initializer
mod_ssl.c:243: warning: (near initialization for `ssl_module')
mod_ssl.c:244: warning: excess elements in struct initializer
mod_ssl.c:244: warning: (near initialization for `ssl_module')
mod_ssl.c:245: warning: excess elements in struct initializer
mod_ssl.c:245: warning: (near initialization for `ssl_module')
mod_ssl.c:247: warning: excess elements in struct initializer
mod_ssl.c:247: warning: (near initialization for `ssl_module')
*** Error code 1

Stop.
make: stopped in /u5/pkgwrk/www/ap-ssl/work/mod_ssl-2.8.10-1.3.26/pkg.sslmod
*** Error code 1 (ignored)


The include path needs to use the real Apache config headers before the
.buildlink stuff.

-- 
==John Kohl <jtk@kolvir.arlington.ma.us>, <john_kohl@alum.mit.edu>
Home page: <http://john.kohl.home.attbi.com/>

>Fix:
This certainly isn't the right fix, I think, but it points at what is
wrong.

% cat /etc/mk.conf
BSDSRCDIR=/u3/NetBSD-current/src
BSDOBJDIR=/u5/obj
WRKOBJDIR=/u5/pkgwrk
PAPERSIZE=Letter
ACCEPTABLE_LICENSES=no-commercial-use cyrus-imapd-license
ACCEPTABLE_LICENSES+=fee-based-commercial-use
ACCEPTABLE_LICENSES+=shareware
ACCEPTABLE_LICENSES+=adobe-acrobat-license
ACCEPTABLE_LICENSES+=opera-license
USA_RESIDENT=YES
USE_RSAREF2=YES
CRYPTOBASE=crypto-us
KERNOBJDIR=/usr/obj/kernobjs/arch/${MACHINE}/compile
KERNSCRDIR=     ${BSDSRCDIR}/sys
POPTOP_USE_MPPE=yes
MKOBJDIRS=yes
LOCALTIME=US/Eastern
MKISOFS_FLAGS+=-V NetBSD-`sh ${BSDSRCDIR}/sys/conf/osrelease.sh`
LOCALPATCHES=/u4/sandbox/othersrc/localpatches

% diff -c Makefile.~1~ Makefile
*** Makefile.~1~        Sun Aug 11 20:08:50 2002
--- Makefile    Sun Aug 11 20:13:32 2002
***************
*** 3,9 ****
  INCDIR=/u5/pkgwrk/www/ap-ssl/work/.buildlink/include/httpd
  OSDIR=$(INCDIR)
  CC=cc
! CFLAGS=-I$(INCDIR) -DNETBSD -DEAPI -DEAPI_MM -I/u5/pkgwrk/www/apache/work/.buildlink/include -O2
  CFLAGS_SHLIB=-fPIC -DPIC -DSHARED_MODULE
  LD_SHLIB=ld
  LDFLAGS=
--- 3,9 ----
  INCDIR=/u5/pkgwrk/www/ap-ssl/work/.buildlink/include/httpd
  OSDIR=$(INCDIR)
  CC=cc
! CFLAGS=-I/u5/pkgwrk/www/apache/work/apache_1.3.26/src/include -I$(INCDIR) -DNETBSD -DEAPI -DEAPI_MM  -I/u5/pkgwrk/www/apache/work/.buildlink/include -O2
  CFLAGS_SHLIB=-fPIC -DPIC -DSHARED_MODULE
  LD_SHLIB=ld
  LDFLAGS=

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jlam 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Mon Sep 9 11:13:27 PDT 2002 
Responsible-Changed-Why:  
jlam is the MAINTAINER. 
State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Mon Sep 9 11:29:08 PDT 2002 
State-Changed-Why:  
Could you please try building ap-ssl from a current pkgsrc?  I believe the 
error surrounding AP_MM was fixed sometime last month as part of another 
bug report.  Thanks! 

From: Johnny Lam <jlam@jgrind.org>
To: jtk@kolvir.arlington.ma.us
Cc: gnats-bugs@gnats.netbsd.org
Subject: pkg/17914: can't build ap-ssl 2.8.10
Date: Fri, 13 Sep 2002 16:39:35 -0700

 John,

 	Sorry, but I seem to have deleted your previous reply to my query
 on this PR.  Could you please resend it?  I tried building it from a recent
 pkgsrc, and with the buildlink2 changes from 25 Aug, the package seems to
 be building fine.

 	BTW, please cc: your reply to gnats-bugs@gnats.netbsd.org.

 	Thanks,

 	-- Johnny Lam <jlam@jgrind.org>

From: John Kohl <jtk@kolvir.arlington.ma.us>
To: jlam@jgrind.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/17914: can't build ap-ssl 2.8.10
Date: Fri, 13 Sep 2002 20:49:17 -0400 (EDT)

 I put a copy directly in the PR this morning...
 still having problems just as I did previously.
 Can you send me a transcript your build log for ap-ssl that works?

 -- 
 ==John Kohl <jtk@kolvir.arlington.ma.us>, <john_kohl@alum.mit.edu>
 Home page: <http://john.kohl.home.attbi.com/>
State-Changed-From-To: open->closed 
State-Changed-By: jlam 
State-Changed-When: Tue Nov 19 23:08:21 PST 2002 
State-Changed-Why:  
This problem was resolved in private e-mail by updating to latest pkgsrc. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.