Re: phase compiling: netpbm11-shlibs-10.89.03-1 failed

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Organization Snaggled Works
Message-ID <[email protected]>
On 10/12/20 4:03 PM, Heinz Nabielek via Fink-beginners wrote:
>> phase compiling: netpbm11-shlibs-10.89.03-1 failed
> 
> Change to macOS 10.15.7 (19H2) was not problem for my fink installation. But installing xplanet keeps failing. This time with
> 
> --> phase compiling: netpbm11-shlibs-10.89.03-1 failed
> 
> Any help in sight?
> Heinz
> 
> 
> 
> Package manager version: 0.45.99.git
> Distribution version: selfupdate-rsync Mon Oct 12 17:26:29 2020, 10.15, x86_64
> Trees: local/main stable/main
> Xcode.app: 12.0.1
> No recognized Xcode CLI installed
> netpbm11-shlibs-10.89.03-1 is set to build with only one job.
> 
> ......
> nstring.c:633:21: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
>                      snprintf(f, ARRAY_SIZE(f), "%%%u.%uf",
>                      ^
> nstring.c:633:21: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
> nstring.c:801:30: error: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Werror,-Wimplicit-function-declaration]
>      const char * const dup = strdup(arg);
>                               ^
> nstring.c:801:30: note: include the header <string.h> or explicitly provide a declaration for 'strdup'
> nstring.c:819:10: error: implicit declaration of function 'vasprintf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>      rc = vasprintf((char **)&result, fmt, varargs);
>           ^
> nstring.c:819:10: note: did you mean 'vsprintf'?
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:192:6: note: 'vsprintf' declared here
> int      vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0) __swift_unavailable("Use vsnprintf instead.");
>           ^
> 3 errors generated.
> make[1]: *** [nstring.o] Error 1
> make[1]: Leaving directory `/opt/sw.build/netpbm11-shlibs-10.89.03-1/netpbm-10.89.03/lib/util'
> make: *** [lib/util/all] Error 2
> make: Leaving directory `/opt/sw.build/netpbm11-shlibs-10.89.03-1/netpbm-10.89.03'

I've pushed a workaround that lets netpbm11 build until a full fix is found.

Hanspeter



_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
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.