Re: Failed: phase compiling: a2ps-4.14-4 failed

Daniel Macks <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
Fixed in revision -5.

dan

On 2/15/22, 4:35 PM, "Franchetti, Giuliano Dr." <[email protected]> wrote:

    Dear all, 

    a2ps fails to compile. 
    Below is the end of the log with the error. 

    Cheers 

    	Giuliano



    .
    .
    .
                       ^~~~~~~~~~~
     gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/sw/include -g -O2 -MT ppd.lo -MD -MP -MF .deps/ppd.Tpo -c ppd.c -o ppd.o
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I.  -I/opt/sw/include  -g -O2  -MT madir.lo -MD -MP -MF ".deps/madir.Tpo" -c -o madir.lo madir.c; \
            then mv -f ".deps/madir.Tpo" ".deps/madir.Plo"; else rm -f ".deps/madir.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/sw/include -g -O2 -MT stream.lo -MD -MP -MF .deps/stream.Tpo -c stream.c -o stream.o
    if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I.  -I/opt/sw/include  -g -O2  -MT filalign.lo -MD -MP -MF ".deps/filalign.Tpo" -c -o filalign.lo filalign.c; \
            then mv -f ".deps/filalign.Tpo" ".deps/filalign.Plo"; else rm -f ".deps/filalign.Tpo"; exit 1; fi
     gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/sw/include -g -O2 -MT fjobs.lo -MD -MP -MF .deps/fjobs.Tpo -c fjobs.c -o fjobs.o
    fonts.c:2002:18: error: implicit declaration of function 'rpl_malloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            return (void *) malloc( size );
                            ^
    ../config.h:416:16: note: expanded from macro 'malloc'
    #define malloc rpl_malloc
                   ^
    fonts.c:2002:9: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
            return (void *) malloc( size );
                   ^
    fonts.c:2014:18: error: implicit declaration of function 'rpl_realloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            return (void *) realloc( (char *) ptr, size );
                            ^
    ../config.h:428:17: note: expanded from macro 'realloc'
    #define realloc rpl_realloc
                    ^
    fonts.c:2014:9: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
            return (void *) realloc( (char *) ptr, size );
                   ^
    2 warnings and 2 errors generated.
     gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/sw/include -g -O2 -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c -o common.o
    make[3]: *** [fonts.lo] Error 1
    make[3]: *** Waiting for unfinished jobs....
     gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/sw/include -g -O2 -MT madir.lo -MD -MP -MF .deps/madir.Tpo -c madir.c -o madir.o
     gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/sw/share/locale\" -DSYSCONFFILE=\"/opt/sw/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/sw/include -g -O2 -MT filalign.lo -MD -MP -MF .deps/filalign.Tpo -c filalign.c -o filalign.o
    6 warnings generated.
    make[2]: *** [all] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    ### execution of /usr/bin/make failed, exit code 2
    ### execution of /tmp/fink.3zYax failed, exit code 2
    Removing runtime build-lock...
    Removing build-lock package...
    /opt/sw/bin/dpkg-lockwait -r fink-buildlock-a2ps-4.14-4
    (Reading database ... 267003 files and directories currently installed.)
    Removing fink-buildlock-a2ps-4.14-4 ...
    Failed: phase compiling: a2ps-4.14-4 failed

    Before reporting any errors, please run "fink selfupdate" and try again.
    Also try using "fink configure" to set your maximum build jobs to 1 and
    attempt to build the package again.
    If you continue to have issues, please check to see if the FAQ on Fink's 
    website solves the problem.  If not, ask on one (not both, please) of
    these mailing lists:

            The Fink Users List <[email protected]>
            The Fink Beginners List <[email protected]>,

    with a carbon copy to the maintainer:

            W. G. Scott <[email protected]>

    Note that this is preferable to emailing just the maintainer directly,
    since most fink package maintainers do not have access to all possible
    hardware and software configurations.

    Please try to include the complete error message in your report.  This
    generally consists of a compiler line starting with e.g. "gcc" or "g++"
    followed by the actual error output from the compiler.

    Also include the following system information:
    Package manager version: 0.45.5
    Distribution version: selfupdate-rsync Tue Feb 15 13:59:53 2022, 10.15, x86_64
    Trees: local/main stable/main
    Xcode.app: 12.3
    Xcode command-line tools: 12.4.0.0.1.1610135815
    Max. Fink build jobs:  12



    _______________________________________________
    Fink-users mailing list
    [email protected]
    List archive:
    https://sourceforge.net/p/fink/mailman/fink-users/
    Subscription management:
    https://lists.sourceforge.net/lists/listinfo/fink-users





_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.