Hello, That's interesting because my 'ancient code' compiles and even works with putunix and getunix. But when I looked at what was on github and what I have, there are differences. As you stated, if I took out the -DPOSIX_TTY from the Makefile, the github source compiled for me, and I could get the A> prompt, but the drive was empty so I couldn't test getunix.com and putunix.com because they weren't there.
Here's a diff, z80-master is what I grabbed from github: diff bios.c ../Downloads/z80-master/bios.c 10c10 < | Copyright 1994-1995 by CodeGen, Inc. All Rights Reserved. | --- > | Copyright 1994-1995,2000 by CodeGen, Inc. All Rights Reserved. > | and even differences in the code but I'm not going to put that in an email. Haven't checked any of the other files. I can send you the 'legacy' code that I have if you are interested. z80.tgz is only 57823 bytes., the binary is around 200 k. It gives some warnings but compiles OK, and I have left in the -DPOSIX_TTY. My latest compile (it's a gentoo system): ldd z80 linux-vdso.so.1 (0x00007ffce679a000) libc.so.6 => /lib64/libc.so.6 (0x00007f62b8534000) /lib64/ld-linux-x86-64.so.2 (0x00007f62b8719000) and an old one I have sitting around (probably from a 32 bit system but it still works and its the one in the path) ldd z80 linux-gate.so.1 (0xf7f1d000) libc.so.6 => /lib/libc.so.6 (0xf7d26000) /lib/ld-linux.so.2 (0xf7f1e000) Jonathan jonathan.y...@mykopat.slu.se ________________________________________ Från: M100 [m100-boun...@lists.bitchin100.com] för Jim Anderson [jim.ander...@kpu.ca] Skickat: den 12 november 2020 15:02 Till: m...@bitchin100.com Ämne: Re: [M100] wordstar 4 wants a z80 > -----Original Message----- > It was written ages ago by someone named Pareg Patel. I lost contact > with him after a while but I recently found the source on github: > [...] > Just for a lark, I tried to compile just now and while it gave some > errors, it did produce a useable binary (gcc 9.3.0, linux 5.4.48) but > that was the original 25-year-old source I had from way back, not from > github so that might have been fixed. This is pretty fantastic! I got it to compile (Ubuntu 18.04) with some errors just by removing -DPOSIX_TTY from the Makefile CFLAGS, and it does execute, but unfortunately that's as far as I can get with it - both the getunix and putunix utilities cause the emulator to segfault. putunix gets as far as creating an empty file in unix before the segfault, getunix doesn't end up creating anything in CP/M (although it is able to access the unix filesystem, since it gives the message ERROR1 if I specify a file that doesn't exist, but segfaults if I specify a file which does exist). I'd be curious to know whether the binary you just produced actually allows getunix and putunix to work or not. Without them it's not too useful. (On a lark, I also tried taking my REXCPM backup file and dropping it in place of the emulator's A: virtual disk file but as I expected that didn't work so well - DIR shows a few files I recognize from my M100 but it's all corrupt.) jim --- När du skickar e-post till SLU så innebär detta att SLU behandlar dina personuppgifter. För att läsa mer om hur detta går till, klicka här <https://www.slu.se/om-slu/kontakta-slu/personuppgifter/> E-mailing SLU will result in SLU processing your personal data. For more information on how this is done, click here <https://www.slu.se/en/about-slu/contact-slu/personal-data/>