greenelephant has asked for the wisdom of the Perl Monks concerning the following question:

Hi there everyone I have a Sun server SPARC with Solaris-10-SPARC installed I have Perl-5.8.7 installed to the /usr/local directory I have tried to compile automake-1.15 but I get an error message on my terminals as follows
CDPATH="${ZSH_VERSION+.}:" && "/export/home/Repo/automake-1.15/t/wrap +/aclocal-1.15" called too early to check prototype at /export/home/Repo/automake-1.15 +/bin/aclocal line 525 '@am_AUTOM4TE@: not found gmake: *** [aclocal.m4] Error 1
how do I resolve this? PS I imagine it would help to upload the file in quiestion causing ther error? correct?

Replies are listed 'Best First'.
Re: compiling perl in solaris SPARC
by Fletch (Bishop) on Jun 12, 2019 at 21:18 UTC

    Perl 5.8.7 is from 2005 and automake 1.15 is from 2014. I'm not sure (and my cursory duckduck'ing didn't turn up anything conclusive) but my hunch is that your perl is too ancient for automake's tastes. I actually have a copy of automake 1.15 installed and I looking at line 525 in my copy of aclocal I don't see any perl code which would trigger that prototype warning though so . . . /shrug

    If you can find it and/or compile it yourself you might have more luck with a contemporaneous perl version. RHEL6 was still shipping with 5.10 so that version might be worth a try.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: compiling perl in solaris SPARC
by bliako (Abbot) on Jun 14, 2019 at 08:19 UTC

    To me it sounds like the variable @am_AUTOM4TE@ has not been substituted during the configure stage of installing automake and it's still in these files somewhere bugging them like undigested food. It's like a template variable which is usually exists in *.in files (the template files) which normally is replaced during installation by local system-specific information, e.g. with a call to AC_SUBST([am_AUTOM4TE], ["path-to-autom4te-whatever"]) during configure (of automake).

    Now if that diagnosis is correct then you need to properly install automake again. *OR* a quick hack is to search for all @am_AUTOM4TE@ instances (find /export/home/Repo/automake-1.15 -type f -exec grep -H 'am_AUTOM4TE' \{\} \; and replace them with the full path to autom4te executable (just replace @am_AUTOM4TE@ with the path, leave it quoted if it is quoted).

    or try the configure recipe in this post https://stackoverflow.com/questions/29483667/how-to-tell-automake-to-find-my-version-of-aclocal-when-recompiling-hunspell

    bw, bliako

Re: compiling perl in solaris SPARC
by Anonymous Monk on Jun 14, 2019 at 01:05 UTC

    how do I resolve this?

    Upgrade? yeah, funny I know :p