From nobody@FreeBSD.org  Tue Jul  8 12:31:58 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9F5F71065678
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Jul 2008 12:31:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 8CEAB8FC29
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Jul 2008 12:31:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m68CVvfO056196
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 8 Jul 2008 12:31:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m68CVv4c056195;
	Tue, 8 Jul 2008 12:31:57 GMT
	(envelope-from nobody)
Message-Id: <200807081231.m68CVv4c056195@www.freebsd.org>
Date: Tue, 8 Jul 2008 12:31:57 GMT
From: Kyryll A Mirnenko <mirya@zoc.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/apr APR_UTIL_WITH_LDAP=yes building is broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         125400
>Category:       ports
>Synopsis:       devel/apr APR_UTIL_WITH_LDAP=yes building is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 08 12:40:01 UTC 2008
>Closed-Date:    Tue Jul 29 05:01:04 UTC 2008
>Last-Modified:  Tue Jul 29 05:01:04 UTC 2008
>Originator:     Kyryll A Mirnenko
>Release:        RELENG_7_0
>Organization:
>Environment:
FreeBSD miryanote 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #68: Thu Jun 19 14:22:15 EEST 2008     mirya@miryanote:/usr/src/sys/i386/compile/MY-LITE  i386
>Description:
Having openldap-sasl-client-2.3.42 installed 

devel/apr APR_UTIL_WITH_LDAP=yes (after 1.3.2 upgrade)

fails to build:

/bin/sh /usr/ports/devel/apr/work/apr-1.3.2/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H    -I/usr/ports/devel/apr/work/apr-util-1.3.2/include -I/usr/ports/devel/apr/work/apr-util-1.3.2/include/private -I/usr/local/include  -I/usr/ports/devel/apr/work/apr-1.3.2/include  -I/usr/local/include -I/usr/local/include/db46  -o ldap/apr_ldap_rebind.lo -c ldap/apr_ldap_rebind.c && touch ldap/apr_ldap_rebind.lo
ldap/apr_ldap_rebind.c: In function 'apr_ldap_rebind_set_callback':
ldap/apr_ldap_rebind.c:305: warning: passing argument 2 of 'ldap_set_rebind_proc' from incompatible pointer type
ldap/apr_ldap_rebind.c:305: error: too few arguments to function 'ldap_set_rebind_proc'
gmake[1]: *** [ldap/apr_ldap_rebind.lo] &#1055;&#1086;&#1084;&#1080;&#1083;&#1082;&#1072; 1
gmake[1]: &#1047;&#1072;&#1083;&#1080;&#1096;&#1072;&#1102; &#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075; "/usr/ports/devel/apr/work/apr-util-1.3.2"
gmake: *** [all-recursive] &#1055;&#1086;&#1084;&#1080;&#1083;&#1082;&#1072; 1
*** Error code 2

>How-To-Repeat:
cd /usr/ports/devel/apr
make APR_UTIL_WITH_LDAP=yes
..
..
/bin/sh /usr/ports/devel/apr/work/apr-1.3.2/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H    -I/usr/ports/devel/apr/work/apr-util-1.3.2/include -I/usr/ports/devel/apr/work/apr-util-1.3.2/include/private -I/usr/local/include  -I/usr/ports/devel/apr/work/apr-1.3.2/include  -I/usr/local/include -I/usr/local/include/db46  -o ldap/apr_ldap_rebind.lo -c ldap/apr_ldap_rebind.c && touch ldap/apr_ldap_rebind.lo
ldap/apr_ldap_rebind.c: In function 'apr_ldap_rebind_set_callback':
ldap/apr_ldap_rebind.c:305: warning: passing argument 2 of 'ldap_set_rebind_proc' from incompatible pointer type
ldap/apr_ldap_rebind.c:305: error: too few arguments to function 'ldap_set_rebind_proc'
gmake[1]: *** [ldap/apr_ldap_rebind.lo] &#1055;&#1086;&#1084;&#1080;&#1083;&#1082;&#1072; 1
gmake[1]: &#1047;&#1072;&#1083;&#1080;&#1096;&#1072;&#1102; &#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075; "/usr/ports/devel/apr/work/apr-util-1.3.2"
gmake: *** [all-recursive] &#1055;&#1086;&#1084;&#1080;&#1083;&#1082;&#1072; 1
*** Error code 2

>Fix:
devel/apr without LDAP support builds fine

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->rodrigc 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jul 8 12:40:11 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125400 

From: "Philip M. Gollucci" <pgollucci@ridecharge.com>
To: dev@apr.apache.org
Cc: mirya@zoc.com.ua, rodrigc@freebsd.org
Subject: RE: ports/125400: devel/apr APR_UTIL_WITH_LDAP=yes building is broken
Date: Tue, 8 Jul 2008 13:53:45 -0400

 --------------000207020104040806010307
 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hi All,
 
 as you can see the recent update of devel/apr from 1.2.12 to 1.3.2 
 breaks apr-util when building with LDAP on FreeBSD. The log is from a 
 FreeBSD tinderbox, but can reproduced with the normal build steps.
 
 The attached patch fixes it both in and out of tinderbox.
 This particular diff is against branches/1.3.x but build/apu-conf.m4
 is identical on trunk so it should apply there too.
 
 I'll submit a FreeBSD PR to fix the port so it doesn't have to wait for 
 1.3.3 next.
 
 -- 
 ------------------------------------------------------------------------
 Philip M. Gollucci (philip@ridecharge.com)
 o:703.549.2050x206
 Senior System Admin - Riderway, Inc.
 http://riderway.com / http://ridecharge.com
 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
 
 Work like you don't need the money,
 love like you'll never get hurt,
 and dance like nobody's watching.
 
 
 --------------000207020104040806010307
 Content-Type: text/plain; name="build.log"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline; filename="build.log"
 
 cd /work/a/ports/devel/apr/work/apr-util-1.3.2;  /usr/bin/env PYTHON=3D"/=
 usr/local/bin/python2.5" SHELL=3D/bin/sh CONFIG_SHELL=3D/bin/sh MAKE=3Dgm=
 ake ACLOCAL=3D/usr/local/bin/aclocal-1.9 AUTOMAKE=3D/usr/local/bin/automa=
 ke-1.9 AUTOMAKE_VERSION=3D19 AUTOCONF=3D/usr/local/bin/autoconf-2.61 AUTO=
 HEADER=3D/usr/local/bin/autoheader-2.61 AUTOIFNAMES=3D/usr/local/bin/ifna=
 mes-2.61 AUTOM4TE=3D/usr/local/bin/autom4te-2.61 AUTORECONF=3D/usr/local/=
 bin/autoreconf-2.61 AUTOSCAN=3D/usr/local/bin/autoscan-2.61 AUTOUPDATE=3D=
 /usr/local/bin/autoupdate-2.61 AUTOCONF_VERSION=3D261 LIBTOOL=3D/usr/loca=
 l/bin/libtool LIBTOOLIZE=3D/usr/local/bin/libtoolize LIBTOOL_M4=3D/usr/lo=
 cal/share/aclocal/libtool.m4 lt_cv_sys_max_cmd_len=3D262144 /bin/sh  ./co=
 nfigure --enable-threads --prefix=3D/usr/local ${_LATE_CONFIGURE_ARGS} am=
 d64-portbld-freebsd8.0 --with-apr=3D../apr-1.3.2  --with-expat=3D/usr/loc=
 al  --with-iconv=3D/usr/local --without-gdbm --with-ldap-include=3D/usr/l=
 ocal/include  --with-ldap-lib=3D/usr/local/lib --with-ldap=3Dldap
 
 [....]
 
 checking for ldap support...
   setting APRUTIL_INCLUDES to "-I/usr/local/include"
   setting APRUTIL_LDFLAGS to "-L/usr/local/lib"
 checking for ldap_init in -lldap... yes
 checking for ldapssl_client_init in -lldap... no
 checking for ldapssl_client_deinit in -lldap... no
 checking for ldapssl_add_trusted_cert in -lldap... no
 checking for ldap_start_tls_s in -lldap... yes
 checking for ldap_sslinit in -lldap... no
 checking for ldapssl_init in -lldap... no
 checking for ldapssl_install_routines in -lldap... no
 checking for ber_init in -llber... yes
 checking lber.h usability... yes
 checking lber.h presence... yes
 checking for lber.h... yes
 checking for ldap.h... yes
 checking ldap_ssl.h usability... no
 checking ldap_ssl.h presence... no
 checking for ldap_ssl.h... no
 checking for LDAP toolkit... OpenLDAP
 checking style of ldap_set_rebind_proc routine... two
 
 [....]
 
 /bin/sh /work/a/ports/devel/apr/work/apr-1.3.2/libtool --silent --mode=3D=
 compile gcc -g -O2   -DHAVE_CONFIG_H    -I/work/a/ports/devel/apr/work/ap=
 r-util-1.3.2/include -I/work/a/ports/devel/apr/work/apr-util-1.3.2/includ=
 e/private  -I/work/a/ports/devel/apr/work/apr-1.3.2/include  -I/usr/local=
 /include  -o ldap/apr_ldap_rebind.lo -c ldap/apr_ldap_rebind.c && touch l=
 dap/apr_ldap_rebind.lo
 ldap/apr_ldap_rebind.c: In function 'apr_ldap_rebind_set_callback':
 ldap/apr_ldap_rebind.c:305: warning: passing argument 2 of 'ldap_set_rebi=
 nd_proc' from incompatible pointer type
 ldap/apr_ldap_rebind.c:305: error: too few arguments to function 'ldap_se=
 t_rebind_proc'
 gmake[1]: *** [ldap/apr_ldap_rebind.lo] Error 1
 gmake[1]: Leaving directory `/work/a/ports/devel/apr/work/apr-util-1.3.2'=
 
 gmake: *** [all-recursive] Error 1
 *** Error code 2
 
 
 --------------000207020104040806010307
 Content-Type: text/plain; name="apu-conf.m4.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline; filename="apu-conf.m4.diff"
 
 Index: build/apu-conf.m4
 ===================================================================
 --- build/apu-conf.m4	(revision 674869)
 +++ build/apu-conf.m4	(working copy)
 @@ -357,6 +357,12 @@
    ])
  
  if test "$apu_has_ldap_openldap" = "1"; then
 +    CPPFLAGS=$save_cppflags
 +    LDFLAGS=$save_ldflags
 +    LIBS=$save_libs
 +
 +    CPPFLAGS="$CPPFLAGS $APRUTIL_INCLUDES"
 +    LDFLAGS="$LDFLAGS $APRUTIL_LDFLAGS"
      AC_CACHE_CHECK([style of ldap_set_rebind_proc routine], ac_cv_ldap_set_rebind_proc_style,
      APR_TRY_COMPILE_NO_WARNING([
      #ifdef HAVE_LBER_H
 @@ -374,6 +380,10 @@
      if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then
          AC_DEFINE(LDAP_SET_REBIND_PROC_THREE, 1, [Define if ldap_set_rebind_proc takes three arguments])
      fi
 +
 +    CPPFLAGS=$save_cppflags
 +    LDFLAGS=$save_ldflags
 +    LIBS=$save_libs
  fi
  
  AC_SUBST(ldap_h)
 
 --------------000207020104040806010307--

From: "Philip M. Gollucci" <pgollucci@p6m7g8.com>
To: dev@apr.apache.org
Cc: mirya@zoc.com.ua, rodrigc@freebsd.org
Subject: Re: ports/125400: devel/apr APR_UTIL_WITH_LDAP=yes building is broken
Date: Tue, 8 Jul 2008 13:55:03 -0400

 --------------000703030103030208050203
 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Resending from an address that will make it through to lists.
 
 Philip M. Gollucci wrote:
 > Hi All,
 > 
 > as you can see the recent update of devel/apr from 1.2.12 to 1.3.2 
 > breaks apr-util when building with LDAP on FreeBSD. The log is from a 
 > FreeBSD tinderbox, but can reproduced with the normal build steps.
 > 
 > The attached patch fixes it both in and out of tinderbox.
 > This particular diff is against branches/1.3.x but build/apu-conf.m4
 > is identical on trunk so it should apply there too.
 > 
 > I'll submit a FreeBSD PR to fix the port so it doesn't have to wait for 
 > 1.3.3 next.
 > 
 
 
 --------------000703030103030208050203
 Content-Type: text/plain; name="apu-conf.m4.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline; filename="apu-conf.m4.diff"
 
 Index: build/apu-conf.m4
 ===================================================================
 --- build/apu-conf.m4	(revision 674869)
 +++ build/apu-conf.m4	(working copy)
 @@ -357,6 +357,12 @@
    ])
  
  if test "$apu_has_ldap_openldap" = "1"; then
 +    CPPFLAGS=$save_cppflags
 +    LDFLAGS=$save_ldflags
 +    LIBS=$save_libs
 +
 +    CPPFLAGS="$CPPFLAGS $APRUTIL_INCLUDES"
 +    LDFLAGS="$LDFLAGS $APRUTIL_LDFLAGS"
      AC_CACHE_CHECK([style of ldap_set_rebind_proc routine], ac_cv_ldap_set_rebind_proc_style,
      APR_TRY_COMPILE_NO_WARNING([
      #ifdef HAVE_LBER_H
 @@ -374,6 +380,10 @@
      if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then
          AC_DEFINE(LDAP_SET_REBIND_PROC_THREE, 1, [Define if ldap_set_rebind_proc takes three arguments])
      fi
 +
 +    CPPFLAGS=$save_cppflags
 +    LDFLAGS=$save_ldflags
 +    LIBS=$save_libs
  fi
  
  AC_SUBST(ldap_h)
 
 --------------000703030103030208050203
 Content-Type: text/plain; name="build.log"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline; filename="build.log"
 
 cd /work/a/ports/devel/apr/work/apr-util-1.3.2;  /usr/bin/env PYTHON=3D"/=
 usr/local/bin/python2.5" SHELL=3D/bin/sh CONFIG_SHELL=3D/bin/sh MAKE=3Dgm=
 ake ACLOCAL=3D/usr/local/bin/aclocal-1.9 AUTOMAKE=3D/usr/local/bin/automa=
 ke-1.9 AUTOMAKE_VERSION=3D19 AUTOCONF=3D/usr/local/bin/autoconf-2.61 AUTO=
 HEADER=3D/usr/local/bin/autoheader-2.61 AUTOIFNAMES=3D/usr/local/bin/ifna=
 mes-2.61 AUTOM4TE=3D/usr/local/bin/autom4te-2.61 AUTORECONF=3D/usr/local/=
 bin/autoreconf-2.61 AUTOSCAN=3D/usr/local/bin/autoscan-2.61 AUTOUPDATE=3D=
 /usr/local/bin/autoupdate-2.61 AUTOCONF_VERSION=3D261 LIBTOOL=3D/usr/loca=
 l/bin/libtool LIBTOOLIZE=3D/usr/local/bin/libtoolize LIBTOOL_M4=3D/usr/lo=
 cal/share/aclocal/libtool.m4 lt_cv_sys_max_cmd_len=3D262144 /bin/sh  ./co=
 nfigure --enable-threads --prefix=3D/usr/local ${_LATE_CONFIGURE_ARGS} am=
 d64-portbld-freebsd8.0 --with-apr=3D../apr-1.3.2  --with-expat=3D/usr/loc=
 al  --with-iconv=3D/usr/local --without-gdbm --with-ldap-include=3D/usr/l=
 ocal/include  --with-ldap-lib=3D/usr/local/lib --with-ldap=3Dldap
 
 [....]
 
 checking for ldap support...
   setting APRUTIL_INCLUDES to "-I/usr/local/include"
   setting APRUTIL_LDFLAGS to "-L/usr/local/lib"
 checking for ldap_init in -lldap... yes
 checking for ldapssl_client_init in -lldap... no
 checking for ldapssl_client_deinit in -lldap... no
 checking for ldapssl_add_trusted_cert in -lldap... no
 checking for ldap_start_tls_s in -lldap... yes
 checking for ldap_sslinit in -lldap... no
 checking for ldapssl_init in -lldap... no
 checking for ldapssl_install_routines in -lldap... no
 checking for ber_init in -llber... yes
 checking lber.h usability... yes
 checking lber.h presence... yes
 checking for lber.h... yes
 checking for ldap.h... yes
 checking ldap_ssl.h usability... no
 checking ldap_ssl.h presence... no
 checking for ldap_ssl.h... no
 checking for LDAP toolkit... OpenLDAP
 checking style of ldap_set_rebind_proc routine... two
 
 [....]
 
 /bin/sh /work/a/ports/devel/apr/work/apr-1.3.2/libtool --silent --mode=3D=
 compile gcc -g -O2   -DHAVE_CONFIG_H    -I/work/a/ports/devel/apr/work/ap=
 r-util-1.3.2/include -I/work/a/ports/devel/apr/work/apr-util-1.3.2/includ=
 e/private  -I/work/a/ports/devel/apr/work/apr-1.3.2/include  -I/usr/local=
 /include  -o ldap/apr_ldap_rebind.lo -c ldap/apr_ldap_rebind.c && touch l=
 dap/apr_ldap_rebind.lo
 ldap/apr_ldap_rebind.c: In function 'apr_ldap_rebind_set_callback':
 ldap/apr_ldap_rebind.c:305: warning: passing argument 2 of 'ldap_set_rebi=
 nd_proc' from incompatible pointer type
 ldap/apr_ldap_rebind.c:305: error: too few arguments to function 'ldap_se=
 t_rebind_proc'
 gmake[1]: *** [ldap/apr_ldap_rebind.lo] Error 1
 gmake[1]: Leaving directory `/work/a/ports/devel/apr/work/apr-util-1.3.2'=
 
 gmake: *** [all-recursive] Error 1
 *** Error code 2
 
 
 --------------000703030103030208050203--
Responsible-Changed-From-To: rodrigc->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Tue Jul 29 04:59:54 UTC 2008 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125400 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Tue Jul 29 05:01:02 UTC 2008 
State-Changed-Why:  
Superceeded by ports/125411 

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