Subject: pkg/17914: can't build ap-ssl 2.8.10
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jtk@kolvir.arlington.ma.us>
List: netbsd-bugs
Date: 08/11/2002 22:25:58
>Number:         17914
>Category:       pkg
>Synopsis:       can't build ap-ssl 2.8.10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 11 19:27:00 PDT 2002
>Closed-Date:
>Last-Modified:
>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
>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:
>Unformatted: