Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
38 user(s) are online (23 user(s) are browsing Forums)

Members: 0
Guests: 38

more...
Support us!
Recent OS4 Files
OS4Depot.net





New Rar for AmigaOS 4.1
Not too shy to talk
Joined:
2010/1/22 20:03
From VIGO SPAIN
Posts: 341

Hi, everybody.


The new version of Rar is not compatible with previous versions, is there anyone working on the version for AmigaOS 4.1?

Thanks, and Happy New Year.

Virginio

_________________
AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
   Report Go to top

Re: New Rar for AmigaOS 4.1
Just can't stay away
Joined:
2008/1/6 17:56
From Pennsylvania, USA
Posts: 1253
@RIBDEVIL
Are you referring to the XAD RAR that's included with OS4.x or the one at Aminet (xad_rar)?

_________________
Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

   Report Go to top

Re: New Rar for AmigaOS 4.1
Not too shy to talk
Joined:
2010/1/22 20:03
From VIGO SPAIN
Posts: 341
@xenic

Sorry, I have not explained well.
I mean that the new version (5.50 from 2017) of winrar or rar.exe under the command line, is not compatible with the versions of AmigaOS that currently exist.
And every time more compressed files appear in this format. For example, the Amiga CD32 Alternate Covers CDs can not be decompressed, it does not give an error, but no file appears.

Virginio

_________________
AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
   Report Go to top

Re: New Rar for AmigaOS 4.1
Home away from home
Joined:
2006/11/26 21:45
From A haunted Castle somewhere in the Bavarian Mountains
Posts: 2930
@xenic

He's talking about the command line tool: 3.9.7 on OS4Depot.

and probably this one: 5.50 WinRAR...not sure if this possible to port though (or even open sourced...i don't see a source download on a quick check)

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. John Zoidberg
   Report Go to top

Re: New Rar for AmigaOS 4.1
Quite a regular
Joined:
2009/4/28 3:57
From Adelaide, Australia
Posts: 870
I'll have a look at the latest open source UnRAR and see if it can be easily ported.

   Report Go to top

Re: New Rar for AmigaOS 4.1
Not too shy to talk
Joined:
2010/1/22 20:03
From VIGO SPAIN
Posts: 341
@MickJT

Thanks. Mick

Happy New Year for ALL Amigans and family.

Virginio

_________________
AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
   Report Go to top

Re: New Rar for AmigaOS 4.1
Home away from home
Joined:
2006/12/2 3:55
From Italy, Perugia
Posts: 3001
Latest source should be here: https://github.com/pmachapman/unrar

   Report Go to top

Re: New Rar for AmigaOS 4.1
Quite a regular
Joined:
2009/4/28 3:57
From Adelaide, Australia
Posts: 870
I was going to download it from https://www.rarlab.com/rar_add.htm

Edit: Unfortunately it uses a lot of functions not in our SDK, such as swprintf.


Edited by MickJT on 2017/12/31 8:39:28
   Report Go to top

Re: New Rar for AmigaOS 4.1
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4238
@Mick
I also have a look at this, and there is not much missing. Only those ones:

wint_t putwchar (wchar_t wc);
long int wcstol (const wchar_tstrwchar_t** endptrint base);
wchar_tfgetws (wchar_twsint numFILEstream);
int vfwprintf (FILEstream, const wchar_tformatva_list arg);
int vswprintf (wchar_t wssize_t len, const wchar_t formatva_list arg );
int swprintfwchar_tbufferstd::size_t size, const wchar_tformat, ... );


Also our old newlib port miss sys/statvfs.h with fsblkcnt_t support, which is also as above funcions can be added directly to port. Sources:

/*
 * Copyright (C) 2016 Eistec AB
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/* If building on native we need to use the system libraries instead */
#ifdef CPU_NATIVE
#pragma GCC system_header
/* without the GCC pragma above #include_next will trigger a pedantic error */
#include_next <sys/statvfs.h    >
#else
#ifndef SYS_STATVFS_H
#define SYS_STATVFS_H

#include <sys/types.h> /* for fsblkcnt_t, fsfilcnt_t */
/* newlib support for fsblkcnt_t was only recently added to the newlib git
 * repository, commit f3e587d30a9f65d0c6551ad14095300f6e81672e, 15 apr 2016.
 * Will be included in release 2.5.0, around new year 2016/2017.
 * We provide the below workaround if the used tool chain is too old. */
#ifndef _FSBLKCNT_T_DECLARED        /* for statvfs() */
#include <stdint.h>
/* Default to 32 bit file sizes on newlib platforms */
typedef uint32_t fsblkcnt_t;
typedef uint32_t fsfilcnt_t;
#define _FSBLKCNT_T_DECLARED
#endif
#ifdef __cplusplus
extern "C" {
#endif

struct statvfs {
    
unsigned long f_bsize;   
    
unsigned long f_frsize;  
    
fsblkcnt_t f_blocks;     
    
fsblkcnt_t f_bfree;      
    
fsblkcnt_t f_bavail;     
    
fsfilcnt_t f_files;      
    
fsfilcnt_t f_ffree;      
    
fsfilcnt_t f_favail;     
    
unsigned long f_fsid;    
    
unsigned long f_flag;    
    
unsigned long f_namemax
};

enum {
    
ST_RDONLY 1,        /* Mount read-only.  */
    
ST_NOSUID 2,        /* Ignore suid and sgid bits.  */
};

#ifdef __cplusplus
}
#endif

#endif /* SYS_STATVFS_H */

#endif /* CPU_NATIVE */



Once i define it all, and do little changes in uowners.cpp (replacing lchown on chown), it compile all obects , and want to be linked.

There is my part of makefile as well:

CXX=ppc-amigaos-c++
CXXFLAGS=-O2
DEFINES
=-DBIG_ENDIAN -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_BSD_COMPAT
STRIP
=ppc-amigaos-strip
AR
=ppc-amigaos-ar
LDFLAGS
=-static -lz -lstdc++
DESTDIR=/usr



After sources of above functions will be added to port, and all will be links, then there need to be done usuall amiga specific changes (sources of diffs for which i found in morphos and 68k ports of old versions from the page where you download current sources).

In others words, it can be done more or less easy, imho.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: New Rar for AmigaOS 4.1
Not too shy to talk
Joined:
2010/1/22 20:03
From VIGO SPAIN
Posts: 341
@kas1e

Thanks for the interest.
I hope you have a happy and prosperous year 2018.

Virginio

_________________
AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
   Report Go to top

Re: New Rar for AmigaOS 4.1
Quite a regular
Joined:
2013/10/17 15:21
From Hungary
Posts: 537
The latest RAR5-compatible unrar uses various unicode wide-string functions, but I was once corrected when I said those are not available in any OS4 C libraries.

_________________
I see the jimmies have been rustled.
   Report Go to top

Re: New Rar for AmigaOS 4.1
Just can't stay away
Joined:
2006/12/4 23:15
Posts: 1915
@BSzili

There is wide char support in clib2 for certain, whether sufficient for this purpose I don't know.


_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: New Rar for AmigaOS 4.1
Quite a regular
Joined:
2013/10/17 15:21
From Hungary
Posts: 537
@broadblues
Thanks, I hoped somebody who knows more about this would chime in. If it has wide character support then vfwprintf and the rest should be in the C library as well. Without those you can't do much with wide char strings. These are the relevant headers:
https://github.com/adtools/clib2/blob/ ... r/library/include/wchar.h
https://github.com/adtools/clib2/blob/ ... /library/include/wctype.h

_________________
I see the jimmies have been rustled.
   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project