Only an "interim report" so far...
Jeez, "cross-linked files" sounds like a really bad bug! :)
I have to admit that I meddled with your script a bit. I've got a "dir2lower" that I needed an excuse to test, so I did the d/l - and directory creation - and unzip (I used the "-a" switch - "by hand", and snipped that out of your script. I think the trouble I've been having is more related to the forum software "improving" your formatting. For example, make hollers "missing separator!"... tabs have helpfully been replaced by spaces. Getting by that, I'm getting complaints about "NULL" not being defined (replaced 'em with 0 "by hand"). Discovered that the additions to alink.c and utils.c were failing... Ummm, looking closer, I've got alink/alink/ with the latest Makefile_linux and some partial files in it - my fault. I'm going to have to go back to square zero and have another shot at it. I attempted to fix it by cut/pasting the additions by hand... C's still yelling at me about strdup... I thought this C-cruft was supposed to be portable!!! :)
Attempting to port Alink has been on my long-term TODO list for a long time, so your tips on how to get it to build are most welcome! I'm not sure the "one big script" is the best approach, but I think I can get it to work, with a little more fiddling.
I should note that there's a "patched" version of Alink in the files section of the Yahoo win32-nasm-users group. I don't recall what it's supposed to fix, and I don't know whether Anthony's incorporated these changes into his latest version (looks like some pretty old file dates, so maybe not...). I'll look into that if I can get the "regular" version working...
As a potential alternative, Japheth's got a Linux binary of OpenWatcom's Wlink available for download:
http://www.japheth.de/JWasm.htmlDunno what its capabilities are, but it might be something for those interested in "cross-linked files" to look into...
Maybe more later... (anyone interested in that "dir2lower"? "Seems to work" for those pesky uppercase dos filenames. Very rudimentary.)
Best,
Frank