LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Autoconf/Autoreconf report a strange error, and terminate. (https://www.linuxquestions.org/questions/programming-9/autoconf-autoreconf-report-a-strange-error-and-terminate-4175698549/)

dptzippy 07-31-2021 01:44 PM

Autoconf/Autoreconf report a strange error, and terminate.
 
Hey there! I have been experiencing a strange issue with my system. I built my OS with the Linux From Scratch book (a while ago), but I have since moved far away from the base system. I recently noticed that many (if not most) programs fail to be configured, with the following output appearing:

<code>
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
/usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD
/usr/share/aclocal/libxosd.m4:9: run info Automake 'Extending aclocal'
/usr/share/aclocal/libxosd.m4:9: or see https://www.gnu.org/software/automak...ending-aclocal
Undefined subroutine &main::move called at /usr/bin/autom4te line 486.
aclocal: error: /usr/bin/autom4te failed with exit status: 1
autoreconf: error: aclocal failed with exit status: 1
</code>

I hope that I embedded my log correctly. As for the actual line in the autom4te script, this is what is supposedly causing issues:

<code>
# Everything went ok: preserve the outputs.
foreach my $file (map { $_ . $req->id } ($tcache, $ocache))
{
move ("${file}t", "$file")
or fatal "cannot rename ${file}t as $file: $!";
}
}
</code>

I use CPANM to install Perl modules, and I am not sure what has happened here, but I noticed that nothing seems to work when I am trying to configure source packages. Does anybody know how to fix this? I am going crazy here.

Thanks!

dptzippy 07-31-2021 01:45 PM

Also, how do I embed code so it doesn't take up all the page? I thought <code> was the correct way, but that does not appear to be working.

NevemTeve 07-31-2021 01:59 PM

It's [code] and [/code]

shruggy 07-31-2021 02:24 PM

The same part of my autom4te script (from autoconf 2.69) looks like this
Code:

  # Everything went ok: preserve the outputs.
  foreach my $file (map { $_ . $req->id } ($tcache, $ocache))
    {
      use File::Copy;
      move ("${file}t", "$file")
        or fatal "cannot rename ${file}t as $file: $!";
    }


dptzippy 07-31-2021 10:19 PM

Quote:

Originally Posted by shruggy (Post 6271272)
The same part of my autom4te script (from autoconf 2.69) looks like this
Code:

  # Everything went ok: preserve the outputs.
  foreach my $file (map { $_ . $req->id } ($tcache, $ocache))
    {
      use File::Copy;
      move ("${file}t", "$file")
        or fatal "cannot rename ${file}t as $file: $!";
    }


Hey, man! I appreciate you reaching out. I tried to replace the section of my script with the code you posted, but the same error is displayed, except the line number is increased by one (one line was added). Could you, perhaps, post the full script?


All times are GMT -5. The time now is 12:58 PM.