Issue 943 - macosx
Summary: macosx
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-31 01:38 UTC by jon@latchkey.com
Modified: 2014-08-01 21:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kurt Zeilenga 2000-12-30 17:47:29 UTC
moved from Incoming to Build
Comment 1 jon@latchkey.com 2000-12-31 01:38:23 UTC
Full_Name: Jon
Version: cvs latest
OS: macosx darwin public beta 2
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (157.22.245.2)


Bug reports should be filed using our issues tracking system.
http://www.openldap.org/its/

At 07:35 PM 12/29/00 -0800, you wrote:
>uname -a
>Darwin takahe 1.2 Darwin Kernel Version 1.2: Sat Sep 16 15:09:23 PDT 2000;
>root:xnu/xnu-103.1.obj~1/RELEASE_PPC  Power Macintosh powerpc
>
>sorry for the line wrapping in the CVS diff below, but i think you get the
>point...the issue is that for some reason, configure creates a config.status
>that looks like this:
>
>s%@ACLOCAL@%/usr/local/src/ldap/ldap/build
>/usr/local/src/ldap/ldap/build/missing aclocal%g
>s%@AUTOCONF@%autoconf%g
>s%@AUTOMAKE@%/usr/local/src/ldap/ldap/build
>/usr/local/src/ldap/ldap/build/missing automake%g
>s%@AUTOHEADER@%autoheader%g
>s%@MAKEINFO@%/usr/local/src/ldap/ldap/build
>/usr/local/src/ldap/ldap/build/missing makeinfo%g
>s%@install_sh@%/usr/local/src/ldap/ldap/build
>/usr/local/src/ldap/ldap/build/install.sh%g
>
>As you can see, the sed lines are line wrapped (that is not intentional,
>there is an extra newline in there). Thus, the configure process fails at
>the end during the substitutions because sed doesn't know how to deal with
>the extra newline. Weird thing is that plenty of other ./configure scripts
>work fine on MacOSX.
>
>By removing the checks for the tools above, configure is able to finish and
>everything seems to compile and run just fine.
>
>-jon
>
>Index: configure
>===================================================================
>RCS file: /repo/OpenLDAP/pkg/ldap/configure,v
>retrieving revision 1.353
>diff -r1.353 configure
>1032,1043d1031
>< echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
>< echo "configure:1034: checking for working aclocal" >&5
>< # Run test in a subshell; some versions of sh will print an error if
>< # an executable is not found, even if stderr is redirected.
>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>< if (aclocal --version) < /dev/null > /dev/null 2>&1; then
><    ACLOCAL=aclocal
><    echo "$ac_t""found" 1>&6
>< else
><    ACLOCAL="$missing_dir/missing aclocal"
><    echo "$ac_t""missing" 1>&6
>< fi
>1058,1070d1045
>< echo $ac_n "checking for working automake""... $ac_c" 1>&6
>< echo "configure:1060: checking for working automake" >&5
>< # Run test in a subshell; some versions of sh will print an error if
>< # an executable is not found, even if stderr is redirected.
>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>< if (automake --version) < /dev/null > /dev/null 2>&1; then
><    AUTOMAKE=automake
><    echo "$ac_t""found" 1>&6
>< else
><    AUTOMAKE="$missing_dir/missing automake"
><    echo "$ac_t""missing" 1>&6
>< fi
>< 
>1084,1098c1059
>< echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
>< echo "configure:1086: checking for working makeinfo" >&5
>< # Run test in a subshell; some versions of sh will print an error if
>< # an executable is not found, even if stderr is redirected.
>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>< if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
><    MAKEINFO=makeinfo
><    echo "$ac_t""found" 1>&6
>< else
><    MAKEINFO="$missing_dir/missing makeinfo"
><    echo "$ac_t""missing" 1>&6
>< fi
>< 
>< install_sh="$missing_dir/install-sh"
>< test -f "$install_sh" || install_sh="$missing_dir/install.sh"
>---
>> install_sh="/usr/local/src/ldap/ldap/build/install-sh"
>16450,16451c16411
>< sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
><  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
>---
>> sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; s/@@/%@/;
>s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF


Comment 2 Kurt Zeilenga 2000-12-31 02:01:55 UTC
The problem appears to be in the evaluation of:

  ac_aux_dir=build
  missing_dir=`cd $ac_aux_dir && pwd`

missing_dir is getting set to:
        "/path/to/build\n/path/to/build"

likely because both cd and pwd are echoing the directory.

Note that HEAD branch does contain code to disable cd
echo'in of the path due to CDPATH... but this is could
failing (or cd could be echoing for other reasons).


At 01:38 AM 12/31/00 +0000, jon@latchkey.com wrote:
>Full_Name: Jon
>Version: cvs latest
>OS: macosx darwin public beta 2
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (157.22.245.2)
>
>
>Bug reports should be filed using our issues tracking system.
>http://www.openldap.org/its/
>
>At 07:35 PM 12/29/00 -0800, you wrote:
>>uname -a
>>Darwin takahe 1.2 Darwin Kernel Version 1.2: Sat Sep 16 15:09:23 PDT 2000;
>>root:xnu/xnu-103.1.obj~1/RELEASE_PPC  Power Macintosh powerpc
>>
>>sorry for the line wrapping in the CVS diff below, but i think you get the
>>point...the issue is that for some reason, configure creates a config.status
>>that looks like this:
>>
>>s%@ACLOCAL@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/missing aclocal%g
>>s%@AUTOCONF@%autoconf%g
>>s%@AUTOMAKE@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/missing automake%g
>>s%@AUTOHEADER@%autoheader%g
>>s%@MAKEINFO@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/missing makeinfo%g
>>s%@install_sh@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/install.sh%g
>>
>>As you can see, the sed lines are line wrapped (that is not intentional,
>>there is an extra newline in there). Thus, the configure process fails at
>>the end during the substitutions because sed doesn't know how to deal with
>>the extra newline. Weird thing is that plenty of other ./configure scripts
>>work fine on MacOSX.
>>
>>By removing the checks for the tools above, configure is able to finish and
>>everything seems to compile and run just fine.
>>
>>-jon
>>
>>Index: configure
>>===================================================================
>>RCS file: /repo/OpenLDAP/pkg/ldap/configure,v
>>retrieving revision 1.353
>>diff -r1.353 configure
>>1032,1043d1031
>>< echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
>>< echo "configure:1034: checking for working aclocal" >&5
>>< # Run test in a subshell; some versions of sh will print an error if
>>< # an executable is not found, even if stderr is redirected.
>>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>>< if (aclocal --version) < /dev/null > /dev/null 2>&1; then
>><    ACLOCAL=aclocal
>><    echo "$ac_t""found" 1>&6
>>< else
>><    ACLOCAL="$missing_dir/missing aclocal"
>><    echo "$ac_t""missing" 1>&6
>>< fi
>>1058,1070d1045
>>< echo $ac_n "checking for working automake""... $ac_c" 1>&6
>>< echo "configure:1060: checking for working automake" >&5
>>< # Run test in a subshell; some versions of sh will print an error if
>>< # an executable is not found, even if stderr is redirected.
>>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>>< if (automake --version) < /dev/null > /dev/null 2>&1; then
>><    AUTOMAKE=automake
>><    echo "$ac_t""found" 1>&6
>>< else
>><    AUTOMAKE="$missing_dir/missing automake"
>><    echo "$ac_t""missing" 1>&6
>>< fi
>>< 
>>1084,1098c1059
>>< echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
>>< echo "configure:1086: checking for working makeinfo" >&5
>>< # Run test in a subshell; some versions of sh will print an error if
>>< # an executable is not found, even if stderr is redirected.
>>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>>< if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
>><    MAKEINFO=makeinfo
>><    echo "$ac_t""found" 1>&6
>>< else
>><    MAKEINFO="$missing_dir/missing makeinfo"
>><    echo "$ac_t""missing" 1>&6
>>< fi
>>< 
>>< install_sh="$missing_dir/install-sh"
>>< test -f "$install_sh" || install_sh="$missing_dir/install.sh"
>>---
>>> install_sh="/usr/local/src/ldap/ldap/build/install-sh"
>>16450,16451c16411
>>< sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
>><  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
>>---
>>> sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; s/@@/%@/;
>>s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF

Comment 3 Kurt Zeilenga 2001-01-03 19:59:30 UTC
you might try the latest cvs (HEAD) sources...  I committed
a patch which should resolve this problem.

At 01:38 AM 12/31/00 +0000, you wrote:
>Full_Name: Jon
>Version: cvs latest
>OS: macosx darwin public beta 2
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (157.22.245.2)
>
>
>Bug reports should be filed using our issues tracking system.
>http://www.openldap.org/its/
>
>At 07:35 PM 12/29/00 -0800, you wrote:
>>uname -a
>>Darwin takahe 1.2 Darwin Kernel Version 1.2: Sat Sep 16 15:09:23 PDT 2000;
>>root:xnu/xnu-103.1.obj~1/RELEASE_PPC  Power Macintosh powerpc
>>
>>sorry for the line wrapping in the CVS diff below, but i think you get the
>>point...the issue is that for some reason, configure creates a config.status
>>that looks like this:
>>
>>s%@ACLOCAL@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/missing aclocal%g
>>s%@AUTOCONF@%autoconf%g
>>s%@AUTOMAKE@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/missing automake%g
>>s%@AUTOHEADER@%autoheader%g
>>s%@MAKEINFO@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/missing makeinfo%g
>>s%@install_sh@%/usr/local/src/ldap/ldap/build
>>/usr/local/src/ldap/ldap/build/install.sh%g
>>
>>As you can see, the sed lines are line wrapped (that is not intentional,
>>there is an extra newline in there). Thus, the configure process fails at
>>the end during the substitutions because sed doesn't know how to deal with
>>the extra newline. Weird thing is that plenty of other ./configure scripts
>>work fine on MacOSX.
>>
>>By removing the checks for the tools above, configure is able to finish and
>>everything seems to compile and run just fine.
>>
>>-jon
>>
>>Index: configure
>>===================================================================
>>RCS file: /repo/OpenLDAP/pkg/ldap/configure,v
>>retrieving revision 1.353
>>diff -r1.353 configure
>>1032,1043d1031
>>< echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
>>< echo "configure:1034: checking for working aclocal" >&5
>>< # Run test in a subshell; some versions of sh will print an error if
>>< # an executable is not found, even if stderr is redirected.
>>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>>< if (aclocal --version) < /dev/null > /dev/null 2>&1; then
>><    ACLOCAL=aclocal
>><    echo "$ac_t""found" 1>&6
>>< else
>><    ACLOCAL="$missing_dir/missing aclocal"
>><    echo "$ac_t""missing" 1>&6
>>< fi
>>1058,1070d1045
>>< echo $ac_n "checking for working automake""... $ac_c" 1>&6
>>< echo "configure:1060: checking for working automake" >&5
>>< # Run test in a subshell; some versions of sh will print an error if
>>< # an executable is not found, even if stderr is redirected.
>>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>>< if (automake --version) < /dev/null > /dev/null 2>&1; then
>><    AUTOMAKE=automake
>><    echo "$ac_t""found" 1>&6
>>< else
>><    AUTOMAKE="$missing_dir/missing automake"
>><    echo "$ac_t""missing" 1>&6
>>< fi
>>< 
>>1084,1098c1059
>>< echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
>>< echo "configure:1086: checking for working makeinfo" >&5
>>< # Run test in a subshell; some versions of sh will print an error if
>>< # an executable is not found, even if stderr is redirected.
>>< # Redirect stdin to placate older versions of autoconf.  Sigh.
>>< if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
>><    MAKEINFO=makeinfo
>><    echo "$ac_t""found" 1>&6
>>< else
>><    MAKEINFO="$missing_dir/missing makeinfo"
>><    echo "$ac_t""missing" 1>&6
>>< fi
>>< 
>>< install_sh="$missing_dir/install-sh"
>>< test -f "$install_sh" || install_sh="$missing_dir/install.sh"
>>---
>>> install_sh="/usr/local/src/ldap/ldap/build/install-sh"
>>16450,16451c16411
>>< sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
>><  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
>>---
>>> sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; s/@@/%@/;
>>s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF

Comment 4 jon@latchkey.com 2001-01-03 20:20:24 UTC
For my own education, can you please send me the patch (or a url to the
cvsweb version?)?

(I maintain the autoconf stuff for Apache JServ and am curious what the
problem is.)

thx.

-jon

on 1/3/2001 11:59 AM, "Kurt D. Zeilenga" <Kurt@OpenLDAP.org> wrote:

> you might try the latest cvs (HEAD) sources...  I committed
> a patch which should resolve this problem.
> 
> At 01:38 AM 12/31/00 +0000, you wrote:
>> Full_Name: Jon
>> Version: cvs latest
>> OS: macosx darwin public beta 2
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (157.22.245.2)
>> 
>> 
>> Bug reports should be filed using our issues tracking system.
>> http://www.openldap.org/its/
>> 
>> At 07:35 PM 12/29/00 -0800, you wrote:
>>> uname -a
>>> Darwin takahe 1.2 Darwin Kernel Version 1.2: Sat Sep 16 15:09:23 PDT 2000;
>>> root:xnu/xnu-103.1.obj~1/RELEASE_PPC  Power Macintosh powerpc
>>> 
>>> sorry for the line wrapping in the CVS diff below, but i think you get the
>>> point...the issue is that for some reason, configure creates a config.status
>>> that looks like this:
>>> 
>>> s%@ACLOCAL@%/usr/local/src/ldap/ldap/build
>>> /usr/local/src/ldap/ldap/build/missing aclocal%g
>>> s%@AUTOCONF@%autoconf%g
>>> s%@AUTOMAKE@%/usr/local/src/ldap/ldap/build
>>> /usr/local/src/ldap/ldap/build/missing automake%g
>>> s%@AUTOHEADER@%autoheader%g
>>> s%@MAKEINFO@%/usr/local/src/ldap/ldap/build
>>> /usr/local/src/ldap/ldap/build/missing makeinfo%g
>>> s%@install_sh@%/usr/local/src/ldap/ldap/build
>>> /usr/local/src/ldap/ldap/build/install.sh%g
>>> 
>>> As you can see, the sed lines are line wrapped (that is not intentional,
>>> there is an extra newline in there). Thus, the configure process fails at
>>> the end during the substitutions because sed doesn't know how to deal with
>>> the extra newline. Weird thing is that plenty of other ./configure scripts
>>> work fine on MacOSX.
>>> 
>>> By removing the checks for the tools above, configure is able to finish and
>>> everything seems to compile and run just fine.
>>> 
>>> -jon
>>> 
>>> Index: configure
>>> ===================================================================
>>> RCS file: /repo/OpenLDAP/pkg/ldap/configure,v
>>> retrieving revision 1.353
>>> diff -r1.353 configure
>>> 1032,1043d1031
>>> < echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
>>> < echo "configure:1034: checking for working aclocal" >&5
>>> < # Run test in a subshell; some versions of sh will print an error if
>>> < # an executable is not found, even if stderr is redirected.
>>> < # Redirect stdin to placate older versions of autoconf.  Sigh.
>>> < if (aclocal --version) < /dev/null > /dev/null 2>&1; then
>>> <    ACLOCAL=aclocal
>>> <    echo "$ac_t""found" 1>&6
>>> < else
>>> <    ACLOCAL="$missing_dir/missing aclocal"
>>> <    echo "$ac_t""missing" 1>&6
>>> < fi
>>> 1058,1070d1045
>>> < echo $ac_n "checking for working automake""... $ac_c" 1>&6
>>> < echo "configure:1060: checking for working automake" >&5
>>> < # Run test in a subshell; some versions of sh will print an error if
>>> < # an executable is not found, even if stderr is redirected.
>>> < # Redirect stdin to placate older versions of autoconf.  Sigh.
>>> < if (automake --version) < /dev/null > /dev/null 2>&1; then
>>> <    AUTOMAKE=automake
>>> <    echo "$ac_t""found" 1>&6
>>> < else
>>> <    AUTOMAKE="$missing_dir/missing automake"
>>> <    echo "$ac_t""missing" 1>&6
>>> < fi
>>> < 
>>> 1084,1098c1059
>>> < echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
>>> < echo "configure:1086: checking for working makeinfo" >&5
>>> < # Run test in a subshell; some versions of sh will print an error if
>>> < # an executable is not found, even if stderr is redirected.
>>> < # Redirect stdin to placate older versions of autoconf.  Sigh.
>>> < if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
>>> <    MAKEINFO=makeinfo
>>> <    echo "$ac_t""found" 1>&6
>>> < else
>>> <    MAKEINFO="$missing_dir/missing makeinfo"
>>> <    echo "$ac_t""missing" 1>&6
>>> < fi
>>> < 
>>> < install_sh="$missing_dir/install-sh"
>>> < test -f "$install_sh" || install_sh="$missing_dir/install.sh"
>>> ---
>>>> install_sh="/usr/local/src/ldap/ldap/build/install-sh"
>>> 16450,16451c16411
>>> < sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
>>> <  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
>>> ---
>>>> sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; s/@@/%@/;
>>> s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
> 

-- 
Honk if you love peace and quiet.


Comment 5 Kurt Zeilenga 2001-01-03 20:31:18 UTC
At 08:20 PM 1/3/01 +0000, jon@latchkey.com wrote:
>For my own education, can you please send me the patch (or a url to the
>cvsweb version?)?

http://www.openldap.org/devel/cvsweb.cgi/configure.in.diff?r1=1.340&r2=1.342

Kurt

Comment 6 jon@latchkey.com 2001-01-03 21:24:29 UTC
on 1/3/2001 12:31 PM, "Kurt D. Zeilenga" <Kurt@OpenLDAP.org> wrote:

> At 08:20 PM 1/3/01 +0000, jon@latchkey.com wrote:
>> For my own education, can you please send me the patch (or a url to the
>> cvsweb version?)?
> 
> http://www.openldap.org/devel/cvsweb.cgi/configure.in.diff?r1=1.340&r2=1.342
> 
> Kurt
> 

ok, that fixes the problem.

thanks!

-jon

Comment 7 Kurt Zeilenga 2001-01-16 12:17:36 UTC
changed notes
changed state Open to Release
Comment 8 Kurt Zeilenga 2001-04-28 16:29:48 UTC
changed state Release to Closed
Comment 9 Kurt Zeilenga 2002-06-18 19:06:10 UTC
moved from Build to Archive.Archive
Comment 10 Kurt Zeilenga 2002-06-18 19:11:00 UTC
moved from Build to Archive.Archive
Comment 11 Kurt Zeilenga 2002-06-18 19:11:53 UTC
moved from Build to Archive.Archive
Comment 12 Kurt Zeilenga 2002-06-18 19:13:22 UTC
moved from Build to Archive.Archive
Comment 13 Kurt Zeilenga 2002-06-18 19:14:26 UTC
moved from Build to Archive.Archive
Comment 14 Kurt Zeilenga 2002-06-18 20:21:21 UTC
moved from Build to Archive.Build
Comment 15 Kurt Zeilenga 2002-06-18 20:21:54 UTC
moved from Archive.Build to Archive.Archive.Build
Comment 16 OpenLDAP project 2014-08-01 21:05:09 UTC
fixed