Re: Fink lha install error(thanks)

a_sk--- via Fink-beginners <[email protected]> Thu, 12 Oct 2023 17:46:33 +0900
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>
Just for reference, as it is not so common.

$ lha
LHarc    for UNIX  V 1.02  Copyright(C) 1989  Y.Tagawa
LHx      for MSDOS V C2.01 Copyright(C) 1990  H.Yoshizaki
LHx(arc) for OSK   V 2.01  Modified     1990  Momozou
LHa      for UNIX  V 1.00  Copyright(C) 1992  Masaru Oki
LHa      for UNIX  V 1.14  Modified     1995  Nobutaka Watazaki
LHa      for UNIX  V 1.14i Modified     2000  Tsugio Okamoto
LHA-PMA  for UNIX  V 2     PMA added    2000  Maarten ter Huurne
                   Autoconfiscated 2001-2008  Koji Arai
usage: lha [-]<commands>[<options>] [-<options> ...] archive_file [file...]
  commands:  [axelvudmcpt]
  options:   [q[012]vnfto[567]dizg012e[w=<dir>|x=<pattern>]]
  long options: --system-kanji-code={euc,sjis,utf8,cap}
                --archive-kanji-code={euc,sjis,utf8,cap}
                --extract-broken-archive
                --convert-filename-case
                --ignore-mac-files
                --timestamp-archive
                --traditional
                --help
                --version
commands:                           options:
 a   Add(or replace) to archive      q{num} quiet (num:quiet mode)
 x,e EXtract from archive            v  verbose
 l,v List / Verbose List             n  not execute
 u   Update newer files to archive   f  force (over write at extract)
 d   Delete from archive             t  FILES are TEXT file
 m   Move to archive (means 'ad')    o[567] compression method (a/u/c)
 c   re-Construct new archive        d  delete FILES after (a/u/c)
 p   Print to STDOUT from archive    i  ignore directory path (x/e)
 t   Test file CRC in archive        z  files not compress (a/u/c)
                                     g  Generic format (for compatibility)
                                     0/1/2 header level (a/u/c)
                                     e  TEXT code convert from/to EUC
                                     w=<dir> specify extract directory (x/e)
                                     x=<pattern>  eXclude files (a/u/c)

> 2023/10/12 11:47、Hanspeter Niederstrasser <[email protected]> wrote:
> 
> 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