[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf problem building
From: |
Eurico de Sousa |
Subject: |
Re: autoconf problem building |
Date: |
Fri, 19 Apr 2002 14:29:10 -0400 |
OK, I'm now back to autoconf after a 1-1/2 month reprieve from working on
building GNU tools. Last email exchange (27 Feb) asked me to try modifying
General.pm
as make check was failing on many tests. As it turns out, I had a directory on
my path which contained my own mktemp binary. Solaris 8 does not have mktemp (at
least not that I know of). All the calls to mktemp in the autoconf check files
were using mktemp options which my binary didn't accept and thus the reason for
all the fails. I ran make check without this directory on the path and all
tests passed.
Sorry for the wild-goose chase. I guess I'll build open source tools with a
bare bones path from now on.
Eurico
Akim Demaille wrote:
> | 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: autoconf problem building,
Eurico de Sousa <=