15 August 2006, 21:44 | #1 |
Registered User
Join Date: Aug 2006
Location: England
Posts: 218
|
xdms 1.3.2
Has anyone compiled xdms 1.3.2 for win32/dos cmd?
I've had a look and can't get the makefile to run with mingw32, tried manually creating the object files but it looks like there are a few defines to fix etc. Wondered if anyone had compiled it? http://zakalwe.fi/~shd/foss/xdms/ Q; |
16 August 2006, 01:22 | #2 |
[Satan^God]
|
wow, new "Added an option for salvaging broken DMS images"!
This is exactly what i coded into another dms unpacker to depack broken images beyond the dms-error! See here: http://eab.abime.net/showthread.php?t=24636 I'll try to compile this new (unofficially) xdms version... |
16 August 2006, 05:46 | #3 |
Registered User
Join Date: Jan 2004
Location: Toronto / Canada
Posts: 65
|
Try running "./configure" from bash within Cygwin. That will build Makefile from Makefile.in. If you don't have Cygwin, I can post the output.
One small problem I ran into is that mkstemp doesn't appear to be in MinGW. Deprecated POSIX function perhaps? mkstemps is defined in %MINGW%\lib\libiberty.a, and a quick glance of the GNU mkstemps suggests that mkstemp(p) is equivalent to mkstemps(p,0). So change, lines 288-289 from: strcpy(tname, "/tmp/xdmsXXXXXX"); fd = mkstemp(tname); to: strcpy(tname, "xdmsXXXXXX"); fd = mkstemps(tname,0); (unless you have a writeable /tmp directory). Then modify your Makefile (or makefile.in before running ./configure) in the src directory to link with libiberty.a: xdms: $(OBJS) $(CC) $(LFLAGS) $(OBJS) -liberty -o $@ The resulting binary successfully unpacked a DMS. |
16 August 2006, 10:46 | #4 |
[Satan^God]
|
ah yes, that is exactly the reason why i modified a different dms-unpacker and not the xdms source coz it's not easy portable. I wasn't able to compile it and have no motivation to fix this because there are other dms-unpacker with sourcecode in portable C out there on Aminet...
If someone was able to build a win32 or dos executable please zone it for us. Thanks! |
16 August 2006, 12:17 | #5 | ||
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
Quote:
Next version (hopefully released soon) will have the fix. |
||
16 August 2006, 12:20 | #6 | |
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
|
|
16 August 2006, 16:06 | #7 |
[Satan^God]
|
I used undms 1.3 (12.2.98) from Aminet.
Seems it is based on the xdms source, at least Andre Rodrigues de la Rocha is mentioned for his help. It is portable C, i was able to compile it without any needed modifications using Visual C for Windows. Not as mighty as the xdms original but maybe usefull if you want it portable for other platforms. shd, can you tell us more about "the salvaging broken DMS images" function of your xdms version? How does it work? Does it skip the broken track? Can it handle all kind of dms-errors? etc. It's very good to have this feature since there are a lot of broken dms images out there! |
16 August 2006, 16:32 | #8 | |
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
|
|
16 August 2006, 16:56 | #9 | ||
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
$ uname MINGW32_NT-5.1 failed to compile a version having mkstemps(). Quote:
As far as I know, mkstemps() only depends on #include <unistd.h> and that header file is included from xdms.c. |
||
16 August 2006, 18:20 | #10 | |||
Registered User
Join Date: Jan 2004
Location: Toronto / Canada
Posts: 65
|
Quote:
Quote:
Quote:
|
|||
16 August 2006, 18:34 | #11 | ||
Registered User
Join Date: Jan 2004
Location: Toronto / Canada
Posts: 65
|
Quote:
> gcc --version gcc (GCC) 3.2.3 (mingw special 20030504-1) Old, but I can't upgrade it for compatibility with other projects. I have no idea of the status of mkstemp/mkstemps on systems. It could well be that mkstemps is the deprecated function. Darwin seems to support both, so perhaps I should switch after all. :-) http://developer.apple.com/documenta...kstemps.3.html Quote:
http://zakalwe.fi/~shd/foss/xdms/ Could you provide a pointer? Thanks! |
||
16 August 2006, 19:58 | #12 |
Registered User
Join Date: Aug 2006
Location: England
Posts: 218
|
Wow, looks like I got a bit of interest rekindled here.
Is there any way that xdms could be updated in the future to allow unpacking of , for example, a trainer dms or patch over an existing adf file? This would reduce the need of firing up winuae to apply a dms patch to a disk image? Is this possible? Q; |
16 August 2006, 23:48 | #13 | ||
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
Quote:
Code:
$ cvs -d :server:uadecvs@zakalwe.fi:/home/cvs/uade-cvsroot login $ cvs -d :server:uadecvs@zakalwe.fi:/home/cvs/uade-cvsroot co xdms $ cd xdms |
||
16 August 2006, 23:51 | #14 | |
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
|
|
17 August 2006, 04:46 | #15 | |
Registered User
Join Date: Jan 2004
Location: Toronto / Canada
Posts: 65
|
Quote:
As to uname, MinGW on its own is a port of GCC and friends, so one gets: Code:
a2dll dsw2mak mingw32-g++.exe redir.exe addr2line.exe exchndl.dll mingw32-gcc.exe reimp.exe ar.exe g++.exe mingw32-make.exe res2coff.exe as.exe g77.exe mingwm10.dll size.exe c++.exe gcc.exe nm.exe strings.exe c++filt.exe gccbug objcopy.exe strip.exe cpp.exe gcov.exe objdump.exe unix2dos.exe dlltool.exe gdb.exe pexports.exe unprotoize.exe dllwrap.exe gprof.exe protoize.exe windres.exe dos2unix.exe ld.exe ranlib.exe drmingw.exe mingw32-c++.exe readelf.exe Code:
CYGWIN_NT-5.1 Code:
WindowsNT If you want a test for MinGW, you could use: Code:
mingw=$(gcc --version |grep -i mingw32) Code:
gcc (GCC) 3.2.3 (mingw special 20030504-1) |
|
17 August 2006, 09:43 | #16 | |
[Satan^God]
|
Quote:
May i suggest "a" as command for "apply DMS archive to existing disk image" or something like this. -> xdms a xxxxx.dms +yyyyy.adf Ofcourse the name of the adf image is not optional anymore with this function. I've included a dms image and a crackfix also as dms for a game released by Paradox for testing. @poohbear: I hope you can manage it to give us a Windows/dos version! |
|
17 August 2006, 09:45 | #17 | |
[Satan^God]
|
Quote:
|
|
17 August 2006, 10:24 | #18 |
[Satan^God]
|
ok, here are some defect dms images for testing.
included are: flt-cup.dms : dms error#8 on track24 grandnt2: dms error#8 on track42 ->nasty errors, of you "test" the image with original dms or xdms the test shows no error but if actually depacked you'll get an error! I've unpacked this images already with my modified undms V1.3 version, of course with some errors (bytes not original) on the erroneous track but the tracks that follow are rescued. Please try also with your xdms 1.3.2 version. next one is a dms-error i could not depack beyond the error: theunt01.dms : dms error#6 on track 6 ->"test" dms-image will show this error and you cannot depack beyond track 6. I hope your xdms version can depack this one! |
17 August 2006, 10:46 | #19 |
RIP Friends
Join Date: Sep 2005
Location: UK
Posts: 2,157
|
This thread deserves to be in Coders Heaven forum, so thread moved
|
17 August 2006, 10:47 | #20 | |||
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
Quote:
Quote:
Please checkout the new version and see if it works now. |
|||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help With xDMS | Aleph Five | support.Apps | 5 | 23 May 2010 12:43 |
xDMS vs. GNU99 | andreas | Coders. General | 2 | 06 October 2009 17:26 |
Please avoid xDMS with files which contain headers | andreas | project.TOSEC (amiga only) | 5 | 31 March 2006 16:47 |
Who can program an xDMS clone with logging ability? | andreas | Coders. General | 10 | 08 October 2003 18:23 |
|
|