bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoconf problem building


From: Akim Demaille
Subject: Re: autoconf problem building
Date: 27 Feb 2002 10:19:19 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

| I rebuilt autoconf-2.52g under Solaris 8 (rather than 2.6) and with Perl 
5.005_03 (rather than 5.6.1) and still get failures on make check.
| See attached files.
| 
| I've also attached General.pm, which I see in the testsuite.log file as the 
constant problem on line 316. This is the mktmpdir ($SIGNATURE)
| section and line 316 in sub mktmpdir is:
| 
|   if (!$tmp || ! -d $tmp)
| 
| I'm not a Perl expert. Does it look like the problem is with the autoconf 
package or something at my end? If at my end, what can I try next?
| 
| ## ------------------------------ ##
| ## GNU Autoconf 2.52g test suite. ##
| ## ------------------------------ ##
| 3. tools.at:122: testing autoconf --trace: user macros...
| tools.at:167: autoconf -t TRACE1 -t TRACE2
| 0a1
| > Unsuccessful stat on filename containing newline at 
/apps/asd/unix/gnu/autoconf/2.52g/autoconf-2.52g.sol8.perl.5.005_03/lib/Autom4te/General.pm
 line 316.
| 3. tools.at:122: FAILED near `tools.at:167'

Thanks for the report.  Could you please try the following:

        cd tests/
        ./testsuite -d -x -v 3
        cd testsuite.dir/003
        autoconf -d -v -t TRACE1 -t TRACE2

and, what would really help is that you change lib/Autoconf/General.pm
from:

| # mktmpdir ($SIGNATURE)
| # ---------------------
| # Create a temporary directory which name is based on $SIGNATURE.
| sub mktmpdir ($)
| {
|   my ($signature) = @_;
|   my $TMPDIR = $ENV{'TMPDIR'} || '/tmp';
| 
|   # If mktemp supports dirs, use it.
|   $tmp = `(umask 077 &&
|            mktemp -d -q "$TMPDIR/${signature}XXXXXX") 2>/dev/null`;
|   chomp $tmp;
| 
|   if (!$tmp || ! -d $tmp)
|     {
|       $tmp = "$TMPDIR/$signature" . int (rand 10000) . ".$$";
|       mkdir $tmp, 0700
|       or croak "$me: cannot create $tmp: $!\n";
|     }
| 
|   print STDERR "$me:$$: working in $tmp\n"
|     if $debug;
| }

to

| # mktmpdir ($SIGNATURE)
| # ---------------------
| # Create a temporary directory which name is based on $SIGNATURE.
| sub mktmpdir ($)
| {
|   my ($signature) = @_;
|   my $TMPDIR = $ENV{'TMPDIR'} || '/tmp';
| 
|   # If mktemp supports dirs, use it.
|   $tmp = `(umask 077 &&
|            mktemp -d -q "$TMPDIR/${signature}XXXXXX") 2>/dev/null`;
|   chomp $tmp;
|   print STDERR "$me: tmp = {$tmp}\n"; ##### <===========================
| 
|   if (!$tmp || ! -d $tmp)
|     {
|       $tmp = "$TMPDIR/$signature" . int (rand 10000) . ".$$";
|       mkdir $tmp, 0700
|       or croak "$me: cannot create $tmp: $!\n";
|     }
| 
|   print STDERR "$me:$$: working in $tmp\n"
|     if $debug;
| }

and rerun the last step

        autoconf -d -v -t TRACE1 -t TRACE2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]