From nobody@FreeBSD.org  Sat Aug  8 05:33:52 2009
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 B31FD106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  8 Aug 2009 05:33:52 +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 A25ED8FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  8 Aug 2009 05:33:52 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n785Xqk9061432
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 8 Aug 2009 05:33:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n785Xpaw061431;
	Sat, 8 Aug 2009 05:33:51 GMT
	(envelope-from nobody)
Message-Id: <200908080533.n785Xpaw061431@www.freebsd.org>
Date: Sat, 8 Aug 2009 05:33:51 GMT
From: Ben Morrow <ben@morrow.me.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/apr: fails to build with libtool-2.2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         137558
>Category:       ports
>Synopsis:       devel/apr: fails to build with libtool-2.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 08 05:40:01 UTC 2009
>Closed-Date:    Thu Sep 10 18:06:06 UTC 2009
>Last-Modified:  Thu Sep 10 18:06:06 UTC 2009
>Originator:     Ben Morrow
>Release:        7.1-RELEASE-p6
>Organization:
>Environment:
uname -a: FreeBSD osiris.mauzo.dyndns.org 7.1-RELEASE-p6 FreeBSD 7.1-RELEASE-p6 #3: Wed Jun 10 18:16:05 BST 2009     root@osiris.mauzo.dyndns.org:/usr/obj/usr/src/sys/OSIRIS  i386

libtool-2.2.6a is installed.
>Description:
Attempting to build devel/apr after installing libtool22 fails. First
buildconf says

    ===>  Configuring for apr-gdbm-db44-1.3.8.1.3.9
    cd /var/spool/portbuild/usr/ports/devel/apr/work/apr-1.3.8 ;  /usr/bin/e
    nv CC="cc" CFLAGS="-O2 -fno-strict-aliasing -pipe -march=pentium4" TMPDI
    R="/tmp" TMPDIR="/tmp" PYTHON="/usr/local/bin/python2.6" SHELL=/bin/sh C
    ONFIG_SHELL=/bin/sh ACLOCAL=/usr/local/bin/aclocal-1.9 AUTOMAKE=/usr/loc
    al/bin/automake-1.9 AUTOMAKE_VERSION=19 AUTOCONF=/usr/local/bin/autoconf
    -2.62 AUTOHEADER=/usr/local/bin/autoheader-2.62 AUTOIFNAMES=/usr/local/b
    in/ifnames-2.62 AUTOM4TE=/usr/local/bin/autom4te-2.62 AUTORECONF=/usr/lo
    cal/bin/autoreconf-2.62 AUTOSCAN=/usr/local/bin/autoscan-2.62 AUTOUPDATE
    =/usr/local/bin/autoupdate-2.62 AUTOCONF_VERSION=262 LIBTOOL=/usr/local/
    bin/libtool LIBTOOLIZE=/usr/local/bin/libtoolize LIBTOOL_M4=/usr/local/s
    hare/aclocal/libtool.m4 lt_cv_sys_max_cmd_len=262144 /bin/sh ./buildconf
    buildconf: checking installation...
    buildconf: python version 2.6.2 (ok)
    buildconf: autoconf version 2.62 (ok)
    buildconf: libtool version 2.2.6 (ok)
    Copying libtool helper files ...
    buildconf: Using libtool.m4 at /usr/local/share/aclocal/libtool.m4.
    ./buildconf: cannot create build/libtool.m4: Permission denied
    Creating include/arch/unix/apr_private.h.in ...
    configure.in:190: warning: LTOBSOLETE_VERSION is m4_require'd but not m4
    _defun'd
    build/libtool.m4:67: LT_INIT is expanded from...
    build/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
    configure.in:190: the top level
    Creating configure ...
    configure.in:190: warning: LTOBSOLETE_VERSION is m4_require'd but not m4
    _defun'd
    build/libtool.m4:67: LT_INIT is expanded from...
    build/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
    configure.in:190: the top level
    Generating 'make' outputs ...

then later configure says

    checking whether system uses EBCDIC... no
    performing libtool configuration...
    LTOBSOLETE_VERSION: not found
    checking for a sed that does not truncate output... /usr/bin/sed

and

    config.status: creating include/arch/unix/apr_private.h
    config.status: executing libtool commands
    rm: libtoolT: No such file or directory
    config.status: executing default commands

and finally the build fails when it gets to

    cd /var/spool/portbuild/usr/ports/devel/apr/work/apr-1.3.8; /usr/bin/env
     TMPDIR="/tmp" TMPDIR="/tmp" SHELL=/bin/sh NO_LINT=YES ACLOCAL=/usr/loca
    l/bin/aclocal-1.9 AUTOMAKE=/usr/local/bin/automake-1.9 AUTOMAKE_VERSION=
    19 AUTOCONF=/usr/local/bin/autoconf-2.62 AUTOHEADER=/usr/local/bin/autoh
    eader-2.62 AUTOIFNAMES=/usr/local/bin/ifnames-2.62 AUTOM4TE=/usr/local/b
    in/autom4te-2.62 AUTORECONF=/usr/local/bin/autoreconf-2.62 AUTOSCAN=/usr
    /local/bin/autoscan-2.62 AUTOUPDATE=/usr/local/bin/autoupdate-2.62 AUTOC
    ONF_VERSION=262 LIBTOOL=/usr/local/bin/libtool LIBTOOLIZE=/usr/local/bin
    /libtoolize LIBTOOL_M4=/usr/local/share/aclocal/libtool.m4 PREFIX=/usr/l
    ocal  LOCALBASE=/usr/local X11BASE=/usr/local  MOTIFLIB="-L/usr/local/li
    b -lXm -lXp" LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -fno-strict-aliasing
     -pipe -march=pentium4" CXX="c++" CXXFLAGS="-O2 -fno-strict-aliasing -pi
    pe -march=pentium4"  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install
      -s  -m 555"  BSD_INSTALL_SCRIPT="install   -m 555"  BSD_INSTALL_DATA="
    install   -m 444"  BSD_INSTALL_MAN="install   -m 444" /usr/bin/make
    /bin/sh /libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -
    pipe -march=pentium4 -DHAVE_CONFIG_H    -I./include -I/var/spool/portbui
    ld/usr/ports/devel/apr/work/apr-1.3.8/include/arch/unix -I./include/arch
    /unix -I/var/spool/portbuild/usr/ports/devel/apr/work/apr-1.3.8/include/
    arch/unix -I/var/spool/portbuild/usr/ports/devel/apr/work/apr-1.3.8/incl
    ude  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/ap
    r_getpass.lo
    /libtool: Can't open /libtool: No such file or directory
    *** Error code 2

    Stop in /var/spool/portbuild/usr/ports/devel/apr/work/apr-1.3.8.

It seems from 
http://www.mail-archive.com/debian-apache@lists.debian.org/msg11490.html
that this is a known problem with libtool-2.2; that message includes a
patch that supposedly fixes the problem (at least on Debian).

>How-To-Repeat:
Install devel/libtool22.
Attempt to install devel/apr.
>Fix:
There is a potential patch in 
http://www.mail-archive.com/debian-apache@lists.debian.org/msg11490.html .

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pgollucci 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Aug 8 05:40:13 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@FreeBSD.org, ben@morrow.me.uk
Cc:  
Subject: Re: ports/137558: devel/apr: fails to build with libtool-2.2
Date: Sun, 9 Aug 2009 13:32:36 +0100

 It seems the error message about trying to run /libtool is caused by
 running the build as a normal user; earlier in the process a
 "permission denied" error gets logged but the build isn't aborted.
 Building devel/apr as root works.
 
 -- 
 Bruce Cran

From: Ben Morrow <ben@morrow.me.uk>
To: Bruce Cran <bruce@cran.org.uk>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/137558: devel/apr: fails to build with libtool-2.2
Date: Mon, 10 Aug 2009 01:23:12 +0100

 At  1PM +0100 on  9/08/09 Bruce Cran wrote:
 > It seems the error message about trying to run /libtool is caused by
 > running the build as a normal user; earlier in the process a
 > "permission denied" error gets logged but the build isn't aborted.
 > Building devel/apr as root works.
 
 It makes sense that building as rrot would work. The 'permission denied'
 message refers to (in my case)
 /var/spool/portbuild/usr/ports/devel/apr/work/apr-1.3.8/build/libtool.m4,
 and that file exists with 444 permissions. Presumably this is still a
 bug in apr's use of libtool? Building as root just hides the incorrect
 permissions.
 
 What should I do here? I'm loath to build apr as root, since I've got
 everything set up to build under an unpriviliged user and I don't want
 to break that, but I suppose I could if I have to.
 
 Ben
 

From: "Bjoern A. Zeeb" <bzeeb+freebsd+ports@zabbadoz.net>
To: bug-followup@FreeBSD.org, ben@morrow.me.uk
Cc:  
Subject: Re: ports/137558: devel/apr: fails to build with libtool-2.2
Date: Wed, 9 Sep 2009 08:40:32 +0000 (UTC)

 Hi,
 
 while the patch referenced in the PR most likely fixes more errors/warnings,
 as well, this one seems to at least make apr build again.
 
 
 (only pasted in)
 
 ------------------------------------------------------------------------
 %cat /usr/ports/devel/apr/files/patch-buildconf 
 --- apr-1.3.8/buildconf.orig    2009-02-24 03:37:18.000000000 +0000
 +++ apr-1.3.8/buildconf 2009-09-09 08:15:44.000000000 +0000
 @@ -71,6 +71,8 @@ fi
 
   echo "buildconf: Using libtool.m4 at ${ltfile}."
 
 +chmod u+w build/libtool.m4
 +
   cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4
 
   # libtool.m4 from 1.6 requires ltsugar.m4
 ------------------------------------------------------------------------
 
 -- 
 Bjoern A. Zeeb           What was I talking about and who are you again?
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Thu Sep 10 18:06:04 UTC 2009 
State-Changed-Why:  
local issues been build in well over 50 different tb builds over 100 
times and different options too 

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