From nobody@FreeBSD.org  Sat May  5 07:37:16 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id E263837B424
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 May 2001 07:37:15 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f45EbFV43995;
	Sat, 5 May 2001 07:37:15 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200105051437.f45EbFV43995@freefall.freebsd.org>
Date: Sat, 5 May 2001 07:37:15 -0700 (PDT)
From: kar_alerts@mglorysb.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: qpopper-4.0.1 - make fails
X-Send-Pr-Version: www-1.0

>Number:         27093
>Category:       ports
>Synopsis:       qpopper-4.0.1 - make fails
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 05 07:40:00 PDT 2001
>Closed-Date:    Fri May 25 05:45:20 PDT 2001
>Last-Modified:  Fri May 25 05:48:25 PDT 2001
>Originator:     K Karthik
>Release:        4.3-STABLE
>Organization:
MGSB
>Environment:
FreeBSD svr.mgsb.domain 4.3-STABLE FreeBSD 4.3-STABLE #0: Tue May  1 22:59:35 GM
T 2001     kar@svr.mgsb.domain:/usr/src/sys/compile/SVR  i386        
>Description:
When I type "make" from /usr/ports/mail/qpopper, the command fails with the error code 1. Here are the messages I get,


*** - message start - ***

cc -c -I.. -I.. -I.  -I../mmangle -I../common -I/usr/include  -O -pipe  -idiraft
er /usr/local/include -freg-struct-return -DHAVE_CONFIG_H  -DSETPROCTITLE  -DFREEBSD -DUNIX popauth.c -o popauth.o
popauth.c: In function `check_db_err':
popauth.c:356: `DBM' undeclared (first use in this function)
popauth.c:356: (Each undeclared identifier is reported only once
popauth.c:356: for each function it appears in.)
popauth.c:356: syntax error before `)'
popauth.c: In function `main':
popauth.c:659: `DBM' undeclared (first use in this function)
popauth.c:659: `db' undeclared (first use in this function)
popauth.c:660: syntax error before `char'
popauth.c:693: `mode' undeclared (first use in this function)
popauth.c:879: `auth_dir' undeclared (first use in this function)
popauth.c:921: incompatible types in assignment
popauth.c:1034: `f' undeclared (first use in this function)
popauth.c:1056: incompatible types in assignment
popauth.c:1097: incompatible types in assignment
popauth.c:1097: incompatible types in assignment
popauth.c:1106: incompatible types in assignment
popauth.c:1183: incompatible types in assignment
popauth.c:1428: `DBM_REPLACE' undeclared (first use in this function)
*** Error code 1      

Stop in /usr/ports/mail/qpopper/work/qpopper4.0.1/popper.
*** Error code 1

Stop in /usr/ports/mail/qpopper/work/qpopper4.0.1.
*** Error code 1

Stop in /usr/ports/mail/qpopper.
*** Error code 1

Stop in /usr/ports/mail/qpopper.
*** Error code 1

Stop in /usr/ports/mail/qpopper.  


*** - message end - ***

>How-To-Repeat:
cd /usr/ports/mail/qpopper
make

>Fix:
don't know
>Release-Note:
>Audit-Trail:

From: "Mario Sergio Fujikawa Ferreira" <lioux@uol.com.br>
To: kar_alerts@mglorysb.com
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: ports/27093: qpopper-4.0.1 - make fails
Date: Sat, 5 May 2001 12:48:55 -0300

 Humm, there seems to have something odd with your CFLAGS. Could you try
 cleaning your CFLAGS? I mean, please comment all CFLAGS entries inside your
 /etc/make.conf. Let me know what happens.
 
 I am suspecting that the gdbm port is conflicting. This might be due
 to a -I/usr/local/include inside your CFLAGS.
 
 Also, please make sure you have the absolute latest version
 of the qpopper port.
 
 $ rm -Rf /usr/ports/mail/qpopper
 $ cvsup again
 
 -- 
 Mario S F Ferreira - UnB - Brazil - "I guess this is a signature."
 lioux at ( freebsd dot org | linf dot unb dot br )
 flames to beloved devnull@someotherworldbeloworabove.org
 feature, n: a documented bug | bug, n: an undocumented feature

From: Usuario Universo Online <lioux@uol.com.br>
To: Hajimu UMEMOTO <ume@mahoroba.org>
Cc: freebsd-ports@FreeBSD.ORG
Subject: Re: ports/27093: qpopper-4.0.1 - make fails
Date: Sat, 5 May 2001 14:38:50 -0300

 --vtzGhvizbBRQ85DL
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Sun, May 06, 2001 at 01:38:54AM +0900, Hajimu UMEMOTO wrote:
 > >>>>> On Sat, 5 May 2001 13:25:52 -0300
 > >>>>> "Mario Sergio Fujikawa Ferreira" <lioux@uol.com.br> said:
 > 
 > > I met same problem here.  If gdbm is installed, configure find it out
 > > and set `#define HAVE_GDBM_H 1' into config.h.  It causes the problem.
 > > I did delete HAVE_GDBM_H line from config.h after `make configure' for
 > > workaround.
 >  
 > lioux> 	Could you try the following patch?
 > 
 > Unfortunately, I tried it, then it didn't help.  It works not for
 > `HAVE_GDBM_H' but for `GDBM'.  In configure.in, gdbm.h is absolutely
 > checked out by:
 > 
 >   AC_CHECK_HEADER( gdbm.h, GDBM_H="yes"; AC_DEFINE(HAVE_GDBM_H), GDBM_H="no" )
 > 
 > reagadless of --disable-gdbm option.
 
 	My mistake. Try this patch. I removed the option from
 configure.in and then used autoconf.
 	- Removed files: files/patch-configure
 	- Added files: files/patch-configure.in
 
 -- 
 Mario S F Ferreira - UnB - Brazil - "I guess this is a signature."
 lioux at ( freebsd dot org | linf dot unb dot br )
 flames to beloved devnull@someotherworldbeloworabove.org
 feature, n: a documented bug | bug, n: an undocumented feature
 
 --vtzGhvizbBRQ85DL
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch-qpopper
 
 diff -ruN /usr/ports/mail/qpopper/Makefile ./Makefile
 --- /usr/ports/mail/qpopper/Makefile	Sat Apr 28 04:48:42 2001
 +++ ./Makefile	Sat May  5 14:36:20 2001
 @@ -22,12 +22,13 @@
  
  MAINTAINER=	lioux@FreeBSD.org
  
 +USE_AUTOCONF=	yes
  GNU_CONFIGURE=	yes
  CONFIGURE_ENV=	LIBS="-lmd -lutil" \
  		OS_DEFS="-DSETPROCTITLE ${OS_DEFS}"
  CONFIGURE_ARGS=	--enable-apop=${PREFIX}/etc/qpopper/pop.auth \
  		--enable-nonauth-file=/etc/ftpusers \
 -		--with-apopuid=pop \
 +		--with-apopuid=pop --without-gdbm \
  		--enable-keep-temp-drop
  
  MAN8=		qpopauth.8 qpopper.8
 @@ -59,6 +60,9 @@
  post-patch:
  	@${RM} -f ${WRKSRC}/popper/md5.h
  	@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/man/*
 +
 +pre-configure:
 +	@(cd ${WRKSRC}; ${CHMOD} u+w configure*)
  
  do-install:
  	${INSTALL_PROGRAM} ${WRKSRC}/popper/popauth ${PREFIX}/bin/qpopauth
 diff -ruN /usr/ports/mail/qpopper/files/patch-configure ./files/patch-configure
 --- /usr/ports/mail/qpopper/files/patch-configure	Tue Apr 17 11:12:11 2001
 +++ ./files/patch-configure	Wed Dec 31 21:00:00 1969
 @@ -1,14 +0,0 @@
 -
 -$FreeBSD: ports/mail/qpopper/files/patch-configure,v 1.2 2001/04/17 14:12:33 sobomax Exp $
 -
 ---- configure.orig	Wed Apr  4 03:28:30 2001
 -+++ configure	Fri Apr 13 19:20:14 2001
 -@@ -2559,7 +2559,7 @@
 - EOF
 - 
 -     SSL_DIR_INC="-I${openssl}/include"
 --    SSL_LIBS="-L${openssl}/lib -lssl -lcrypto"
 -+    SSL_LIBS="-L${openssl}/lib -lssl -lcrypto ${RSAGLUE}"
 - fi
 - 
 - 
 diff -ruN /usr/ports/mail/qpopper/files/patch-configure.in ./files/patch-configure.in
 --- /usr/ports/mail/qpopper/files/patch-configure.in	Wed Dec 31 21:00:00 1969
 +++ ./files/patch-configure.in	Sat May  5 14:33:55 2001
 @@ -0,0 +1,19 @@
 +--- configure.in.orig	Sat May  5 14:32:51 2001
 ++++ configure.in	Sat May  5 14:33:32 2001
 +@@ -838,7 +838,7 @@
 +     AC_DEFINE_UNQUOTED(QPOP_OPENSSL, "$openssl")
 +     AC_DEFINE(QPOP_SSL)
 +     SSL_DIR_INC="-I${openssl}/include"
 +-    SSL_LIBS="-L${openssl}/lib -lssl -lcrypto"
 ++    SSL_LIBS="-L${openssl}/lib -lssl -lcrypto ${RSAGLUE}"
 + fi
 + 
 + 
 +@@ -1257,7 +1257,6 @@
 + )
 + 
 + AC_CHECK_HEADER( ndbm.h, NDBM_H="yes"; AC_DEFINE(HAVE_NDBM_H), NDBM_H="no" )
 +-AC_CHECK_HEADER( gdbm.h, GDBM_H="yes"; AC_DEFINE(HAVE_GDBM_H), GDBM_H="no" )
 + AC_CHECK_HEADER(  dbm.h,  DBM_H="yes"; AC_DEFINE(HAVE_DBM_H),   DBM_H="no" )
 + 
 + 
 diff -ruN /usr/ports/mail/qpopper/patch-configure ./patch-configure
 --- /usr/ports/mail/qpopper/patch-configure	Wed Dec 31 21:00:00 1969
 +++ ./patch-configure	Tue Apr 17 11:12:11 2001
 @@ -0,0 +1,14 @@
 +
 +$FreeBSD: ports/mail/qpopper/files/patch-configure,v 1.2 2001/04/17 14:12:33 sobomax Exp $
 +
 +--- configure.orig	Wed Apr  4 03:28:30 2001
 ++++ configure	Fri Apr 13 19:20:14 2001
 +@@ -2559,7 +2559,7 @@
 + EOF
 + 
 +     SSL_DIR_INC="-I${openssl}/include"
 +-    SSL_LIBS="-L${openssl}/lib -lssl -lcrypto"
 ++    SSL_LIBS="-L${openssl}/lib -lssl -lcrypto ${RSAGLUE}"
 + fi
 + 
 + 
 
 --vtzGhvizbBRQ85DL--
Responsible-Changed-From-To: freebsd-ports->lioux 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Thu May 17 11:18:41 PDT 2001 
Responsible-Changed-Why:  
over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27093 
State-Changed-From-To: open->closed 
State-Changed-By: lioux 
State-Changed-When: Fri May 25 05:45:20 PDT 2001 
State-Changed-Why:  
Problem seems to be fixed in version 4.0.2 of the port. 
Besides, feedback time out from originator. 
Thanks for the report! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27093 
>Unformatted:
