Re: Fink lha install error

Hanspeter Niederstrasser <[email protected]> Wed, 11 Oct 2023 21:47:48 -0500
Newsgroups gmane.os.apple.fink.beginners
Organization Snaggled Works
Message-ID <[email protected]>
On 10/11/23 10:15 AM, a_sk--- via Fink-beginners wrote:
> Hi all
> 
> Fink install of lha was unsuccessful.
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -DEUC -DSUPPORT_LH7 -I/opt/sw3/include  -g -O2 -MT append.o -MD -MP -MF ".deps/append.Tpo" -c -o append.o append.c; \
> 	then mv -f ".deps/append.Tpo" ".deps/append.Po"; else rm -f ".deps/append.Tpo"; exit 1; fi
> In file included from append.c:9:
> In file included from ./lha.h:70:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/varargs.h:11:4: error: "Please use <stdarg.h> instead of <varargs.h>"
>    #error "Please use <stdarg.h> instead of <varargs.h>"
>     ^
> append.c:46:5: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
>      memcpy(hdr_method, "-lh -", 5);
>      ^
> append.c:46:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
> 2 errors generated.

I just pushed an update to lha to fixes this.

Hanspeter

-- 
"The great tragedy of science is the slaying of a beautiful hypothesis
by an ugly fact."
   --Thomas Henry Huxley



_______________________________________________
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