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

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 2/16/22 2:54 PM, Franchetti, Giuliano Dr. wrote:
> Hello,
> 
> a2ps-4.14-5 keep not compiling.
> 
> Giuliano

> .
> metaseq.c:388:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types

> /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/secure/_string.h:84:33: note: expanded from macro 'strcpy'
>                  __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
>                                                ^~~~~~~~~~~
> 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 pushed a fix for this.

Hanspeter
-- 
If you woke up from your sleep blood on your hands
+-----------------------------+ Would you wash away the pain
| Hanspeter Niederstrasser    | No one understands
|                             | There must be someone out there who
+-----------------------------+ Can help you breathe again
And would it ever be enough



_______________________________________________
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.