Lunduke
News • Science & Tech
MS-DOS 4.0 Source Code Fails to Compile
Plus: Source comments, by Microsoft, calling the creator of DOS "brain-damaged" get censored.
April 27, 2024
post photo preview

Yesterday, Microsoft released the source code for MS-DOS 4.0... an action which I have encouraged Microsoft to take for many years (including when I worked at Microsoft).

And, while this source code release is most definitely a win for the preservation of computer history, there are some rather ridiculous issues with it.

Most notably:

  • The source doesn't actually fully compile.  It is not usable in its current state.
  • The source code has been modified by Microsoft -- even after the publication this week -- reducing the historical value of the code.
  • Also Microsoft claims to have lost some source code.

Yeah.  You read that first bullet point right.  It does not compile.  I'll walk you through the details (including a step-by-step guide for how you can fail to compile MS-DOS 4.0 yourself).

But, first, a little backstory.

The MS-DOS 4.0 Story (The Short, Short Version)

MS-DOS 4.0, released back in 1986, was a bit of an oddity.  It was a multitasking version of DOS (similar in that way to Wendin-DOS).  And, importantly, it was not a direct continuation of the existing MS-DOS line -- in fact "MS-DOS 4.0" was released between versions "3.1" and "3.3" (almost exactly coinciding with the "3.2" release).

Fun Side Note: There are multiple multitasking variants of DOS (or ways to multitask in DOS).  Most of which were not built or supplied by Microsoft.  In case you didn't know that... now you do.

This Multitasking MS-DOS 4.0 was not commercially successful -- to put it mildly -- and that line of "Multitasking MS-DOS" was quickly abandoned.

Luckily -- or not luckily, depending on how you look at it -- IBM co-developed a completely different version of "MS-DOS 4.0" that had almost nothing to do with the multitasking version Microsoft created.  This IBM-made version, a continuation of MS-DOS 3.x, continued to be single-tasking.  But, oh-boy, was it buggy.  Legendarily buggy.

Ultimately, when it was obvious that the Multitasking "MS-DOS 4.0" was a dead-end, Microsoft took IBM's totally unrelated "MS-DOS 4.0" and released it also as "MS-DOS 4.0".  (Two different Operating Systems, same name and same version number.  Because that's not at all confusing.)  Then -- quickly -- re-worked a bunch of it -- releasing that as "MS-DOS 4.01".

That single-tasking version ("4.01") went on to have some success -- though it is widely regarded as one of the buggier releases of MS-DOS.

The MS-DOS 4.0 Source Release

Two totally different things named "MS-DOS 4.0".  So what, exactly, is Microsoft releasing the source code for?

Well.  There are two parts.

Floppies of an early Beta of Multitasking MS-DOS 4.0

Both are available via GitHub.  And everything is released under the MIT license.

Which means that, yes, if you can get that single-tasking 4.0 code to build... you can, in theory, fork these releases and continue developing them.  (Though you'll need to change the name, as Microsoft still holds the trademarks.)

This work was announced in a joint blog post by Jeff Wilcox (Head of Open Source Programs Office) and Scott Hanselman (Vice President of Developer Community) at Microsoft.

Fun Side Note #2: That Vice President, Scott Hanselman, is the same Microsoft executive who has previously encouraged people to commit crimes against people based on their skin color and gender.  Telling people to be ready to "go to jail" for those crimes.  While that bit of information has absolutely nothing to do with the MS-DOS 4.0 source code release... it's nice to have background on the people in the story.

What code, exactly, did we get?

This release, from Microsoft, is a valuable and interesting one.  It contains a great deal of historically significant information -- and I am absolutely filled to the brim with nerdy joy as I go through it.

Unfortunately... it does not include code for the multitasking version of "4.0".

From the announcement:

"Jeff Wilcox and OSPO went to the Microsoft Archives, and while they were unable to find the full source code for MT-DOS, they did find MS DOS 4.00, which we’re releasing today, alongside these additional beta binaries, PDFs of the documentation, and disk images. We will continue to explore the archives and may update this release if more is discovered."

As a former Microsoft employee... this is... strange.  And, quite honestly, not at all believable.

During my time working at Microsoft, I knew of backed up copies of source code for darned near everything -- including almost every version of MS-DOS from 3.3 onward (that I, personally, saw).

Yet they were unable to find code for the Multitasking MS-DOS 4.0?  Knowing, intimately, how the various groups within Microsoft handled backing up source code and binaries for releases... this statement from Microsoft makes me highly skeptical.

Unless Microsoft completely forgot how to backup source code in the last few years, I'm going to call this claim utterly bogus.

Is it Actually MS-DOS 4.0?

Just to make everything far more confusing than it already is... this may not actually be MS-DOS 4.0.  It might be MS-DOS 4.01... or PC-DOS 4.01... or some strange combination.

Take a look at SETENV.BAT in the source code release and you will find the following line:

echo setting up system to build the MS-DOS 4.01 SOURCE BAK...

What files I have been able to build appear to exactly match the MS-DOS 4.0 (not 4.01) release images.  But, being as some of this source code release is mangled beyond use, unfortunately we can't really be sure that everything matches the actual 4.0 release.  It might be an interim build between 4.0 and 4.01.

Oh!  That's right.

Did I mention that this source code release of MS-DOS 4.0 doesn't successfully build?

The Code Does Not Compile

Allow me to repeat myself:

The code that has been supplied contains significant problems which will prohibit it from compiling a complete, working version of MS-DOS 4.0.

I attempted build under multiple environments (including on a released version of MS-DOS 4.01, MS-DOS 5, PC-DOS, and under DOSBox) -- and dug through the errors until I was confident of the issues (and, importantly, was confident that we weren't simply looking at an obvious case of user error).

ERROR!  ERROR!

Note: If you want to skip the "How To Build It" portion, simply scroll down to the "BOOM!  ERROR!" section below.

Want to unsuccessfully build MS-DOS 4.0 yourself?  Here are some super easy to follow steps.

  1. Download the contents of the MS-DOS 4.0 GitHub repository.
  2. Install DOSBox.  (Seriously, this works just as well in DOSBox as it does anywhere else.)
  3. Within DOSBox run the following command: "MOUNT D PATH" (replace "PATH" with the path to that folder you downloaded in step 1).

If you did everything correctly, you will now -- within DOSBox -- have a D:\ drive with a directory named "SRC" in it.

Note the D:\SRC directory.  That's important.

The BAT and make files which build MS-DOS 4.0 expect all of the files to be in D:\SRC.  So replicating that environment will make it so you don't need to tweak any files at all.

Now we actually do the build.

  1. Change to the D:\SRC directory.  "D:" then "CD SRC".
  2. Now run "SETENV.BAT".  This will setup the paths and whatnot for the build environment.
  3. Then simply run "NMAKE".  That will kick off the build for everything.

Easy, right?

BOOM!  ERROR!

At this point you will quickly see that several files compile cleanly.  Until you get to GETMSG.ASM and, later, USA.INF.  Both of these files are mangled.  I was able to force GETMSG.ASM to compile by commenting out some lines... but USA.INF is completely hosed.

I don't see how whoever uploaded this source could have possibly done a successful compile prior to releasing it.

Seriously.  Hosed, I say!  Hosed!

It's not all bad news, luckily.  The majority of the code does appear to be here -- and most of it builds without any catastrophic errors.  With some work (a replaced file here, some re-written code there) I am confident a variant on this MS-DOS 4.0 release will be able to be built... unfortunately, because of changes needed to make it compile, it won't be a historically perfect replica of the system.

Not without Microsoft figuring out what they did wrong and re-releasing the source code.  Which, considering how rarely Microsoft releases source code for these historical pieces of software... I won't be holding my breath.

Fun Side Note #3: After Microsoft announced the source code release of MS-DOS 4.0, a huge number of articles have popped up on a number of Tech News sites.  Tech Journalist after Tech Journalist praising the release.  Yet not one of them has reported that the code does not actually compile.  Which means that none of them even tried to verify the claims from Microsoft.  Not.  One.  Except for The Lunduke Journal, of course.  I'll let you draw your own conclusion about what that means.

The historical record has been compromised... a little.

It doesn't build.  That's a problem.

Also, it's kind of hard to be 100% sure what this specific release even is (is it 4.0... is it 4.01... is it from IBM or MS?  An interim build?  It looks mostly like 4.0... but there's some weird bits that could use clarification.).

But what makes this even worse... is that not only has some of the code been mangled and corrupted... but some of the code comments were actively modified in the few hours after the source code was publicly posted!

Thus further destroying the historical value of this source code.  Which, to put it mildly, kinda sucks.

Brain-damaged Tim Patterson

But, as luck would have it, that source code change... is really, really amusing.  And pretty minor.

"Brain-damaged Tim Patterson"

A modified comment.  "Brain-damaged Tim Patterson" becomes "Brain-damaged TP".

It's a simple change -- obscuring an insult of Tim Patterson (the original creator of Quick & Dirty DOS)... replacing his full name with his initials.  But, if this is a historical record, this change should not occur.

Here's a fun question: Who, exactly, made this change?  Microsoft is not accepting any changes to this source code repository from the outside world.  So, whoever made the change has the blessing of Microsoft.

Well, hold on to your butts!

This change was made by GitHub user "mzbik", with the simple comment "MZ is back!".

Ok.  Great.  But who the heck is "MZ"?

None other than the legendary Mark Zbikowski.  One of the early Microsoft employees (joining in 1981) -- and the programmer who took over the MS-DOS project (from Tim Patterson) starting with version 2.0... and leading DOS through version 4.0.

Mark Zbikowski and his epic moustache.

Clearly Mark -- who usurped Tim as the Dev Lead / Manager of MS-DOS -- did not want that little "Brain-damaged" insult of Tim to be part of the historical record.

Or, perhaps, he really wanted to call attention to it by making the change.

Either way, we now can be somewhat sure that Mark Zbikowski, himself, wrote that comment way back in the 1980s.  And, even more fascinating, Mark remembered that comment -- from the '80s -- so clearly that he knew to quickly go and change it -- almost immediately -- once the source was made public.  (I barely remember source code comments I made last week, let alone almost 40 years ago... this really stuck with him!)

And that level of irreverent whimsy -- one historically significant programmer insulting another historically significant programmer... in source code comments -- makes me smile.

Ok, sure.  That change isn't a huge deal.  In fact, I'm now glad it happened as it drew my attention to it.

But what else has been changed?  What else will be changed?  It's worth asking.  This is for the preservation of history, after all.

Lots and Lots of Questions

In fact, this release raises a lot of questions.

  • Why was building of this source code not tested prior to release?
  • What process caused these source code files to be mangled?
  • What all was changed from the original source archive?
  • Why has Microsoft only released source code for the 3 least popular versions of MS-DOS (1.25, 2.0, & 4.0)?  Microsoft does not profit from versions 3.3, 5.0, or 6.x (far more popular and/or useful releases).  Why are those being held back?
  • Microsoft loves to tell people how much they love Open Source... yet they have released source code for only a very small number of products (far less than 1% of their total software releases).  Even ancient software, unsuported for decades, remains closed source.  Why?
  • The last release of MS-DOS source code (versions 1.25 and 2.0) occurred 10 years ago (2014).  Why has it taken 10 years to release source code that Microsoft hasn't used since the 1980s?  Will the next release of source code be 10 years from now... in 2034?
  • And, shoot, why has not one other Tech News publication actually tried to compile this code... or notice the changes being made... or look into the details at all?

I don't mean to sound like a Negative Nancy, here.  This release is, without a doubt, incredibly interesting and important.

And Microsoft is under no obligation to release the source code for these pieces of software.  No obligation whatsoever.  If they wanted to keep it all locked away in their vault, that's entirely their call.

That said, Microsoft's near constant declarations of their "love for Open Source" -- including their ownership of GitHub -- would suggest to me that they would be eager to release the source for 30 and 40 year old software that they haven't earned a penny on in decades.

If they truly loved the idea of "Open Source"... they would do it.  In a heartbeat.  But they don't.  Which tells me a lot about their actual views on "Open Source".

Some things never change...

When I worked at Microsoft -- in the late 1990s and early 2000s -- I pushed, regularly, to release code, binaries, and documentation of historicaly significant Microsoft software.  The old stuff that nobody used anymore, but which should be preserved and studied for posterity.

Back in those days, I got a lot of push-back.  To put it mildly.

Microsoft management was extremely hesitant to release code -- and even free binaries -- of these historic products.  And, honestly, it looks like that situation has barely improved since then.  Shoot.  What they do release doesn't even compile.

Just the same: I applaud Microsoft for releasing this MS-DOS 4.0 code!  Truly, I do!

Now... release some more!  Preferably without mangling the code this time.

And don't give me any of that "we can't find the code for our most famous products" malarkey.  The Lunduke Journal knows better.

community logo
Join the Lunduke Community
To read more articles like this, sign up and join my community today
14
What else you may like…
Videos
Podcasts
Posts
Articles
4Chan and Kiwi Farms File Lawsuit Against UK

It is both an important legal case... and a brilliant trolling of the British government.

The article:
https://lunduke.substack.com/p/4chan-and-kiwi-farms-file-lawsuit

More from The Lunduke Journal:
https://lunduke.com/

00:21:00
Microsoft Fires "Intifada" Employees

This last week, a group of anti-Jewish Microsoft employees got rowdy. Microsoft fired some of them and sent The Lunduke Journal a statement. Then held a media briefing. Let's watch it together.

More from The Lunduke Journal:
https://lunduke.com/

00:27:39
Video of "Worker Intifada" Occupying Microsoft President's Office

Last week the Microsoft "Worker Intifada" ransacked a farmers market and chanted "Go away, Jews!" Today they got arrested in Microsoft's President's office. We have the video.

The Brad Smith office "occupation" video clips:
https://x.com/LundukeJournal/status/1960502030692229479

More from The Lunduke Journal:
https://lunduke.com/

00:19:50
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

🌈 💥 I suppose that I would spend my time with "Tropico", or the first two "Fallout" games, or entertain myself with "Day of the Tentacle."

😸 I actually felt a little better, "Doom Scrolling" the post.

post photo preview

Reinstalling OSX on my old PPC Mac Mini. It verifies the install CD whether you like it or not. I can't stand that kind of thing. “Oh now, it's for your own good, you know”. My own good is “not having to sit around for half an hour waiting for verification of a disc that I already know is good and don't actually care if it isn't anyway because it's a 20-year-old OS on a 20-year-old machine and I'm only doing this because I messed up a Linux install and actually want to check that the hard disk will still boot an OS”.

Grr.

19 hours ago
post photo preview
Android to Require Developer ID Checks
Want to publish Android software? You'll need to let Google verify your identity. Plus: Google commits to supporting Sideloading and Third Party App Stores.

Google has announced that they will be requiring all Android Apps — including “sideloaded” apps installed outside of the Google Play Store — to undergo developer identity verification.

Android Developer ID Check

“Starting next year, Android will require all apps to be registered by verified developers in order to be installed by users on certified Android devices,” says Google. “Think of it like an ID check at the airport, which confirms a traveler's identity but is separate from the security screening of their bags; we will be confirming who the developer is, not reviewing the content of their app or where it came from.”

 

These requirements will go into full effect in September of 2026 (one year from now), but only for developers in four countries: Brazil, Indonesia, Singapore, and Thailand.

Countries which, according to Google, suffer from “fraudulent app scams, often from repeat perpetrators”.

The idea seems simple enough: If a developer is known to make Android malware, Google will have the ability to block their software from being installed. Thus preventing the spread of Malware.

We will see how well this system works, in practice, next year.

 

It also remains to be seen when this “Google App Developer Identity Verification” requirement will be enforced in other countries (such as the USA). For the moment, Google is simply saying “2027 and beyond”… so there’s still time left for this policy to be modified.

As part of the process, Google is launching a new “Android Developer Console”, specifically for developers to verify their identity and register their applications.

The Practical Impact

What does this new “ID verification” for Android Devs mean… in the real world?

Once this change is worldwide:

  • A developer must be “verified” before their software can be installed via any mechanism — including Sideloaded Apps, and alternative App Stores (such as F-Droid).

  • Developing and publishing Android software, in an anonymous fashion, will no longer be supported.

Google is also, it appears, committing to continuing to allow “sideloading” and third party App Stores for the foreseeable future.

In other words: If a user wants to sideload software, or use F-Droid, Google will allow that. But Google is going to know the real-world identity of the developer / publisher of any software that gets installed.

The War on Sideloading, Revised

Google and Apple have been at war with the concept of “sideloading” (aka “Installing software the normal way”) for several years now. With both companies adding new features to their systems which allow them to block the ability of users to install “non-approved” software.

 

In that context, this particular announcement from Google is a bit of a double edged sword.

From Google’s announcement:

“To be clear, developers will have the same freedom to distribute their apps directly to users through sideloading or to use any app store they prefer. We believe this is how an open system should work—by preserving choice while enhancing security for everyone.”

On the one hand, requiring ID verification for developers is clearly a big step towards increased control over what software is installable on the systems we own.

On the other hand, Google is making it clear they intend to support sideloading & third party App Stores into the future.

Something they have been hesitant about in the past.

Read full Article
post photo preview
All Lunduke Journal Videos Now Free for Everyone
All Articles. All Audio Podcasts. And, yes, all Videos from The Lunduke Journal. Free. For subscribers and non-subscribers alike. On all publishing platforms.

The Short-Short Version: Articles, Podcasts, and Videos — from The Lunduke Journal — are now, once again, free for absolutely everyone. Subscribers and non-Subscribers alike. On all publishing platforms.

The Slightly Less Short Version

A little over two weeks ago, The Lunduke Journal implemented a change. All of the Articles & Audio Podcasts would remain free for everyone… but the Videos would now be published as subscriber exclusives. Non-subscribers would no longer have access to videos.

This was what is known as a “Huge Mistake Made by a Total Bonehead”.

 

While the motivation for that change was well intentioned (to provide some perks for all of the amazing subscribers who make The Lunduke Journal possible, and maybe encourage some new subscribers in the process)… in practice it was an absolute disaster.

The key problem with making all of the videos “Subscriber Exclusives” was, in hindsight, incredibly obvious:

Many people will subscribe to The Lunduke Journal on one platform… but prefer to watch (or read… or listen) to The Lunduke Journal on a completely different platform.

For example: Someone who subscribes on Locals may watch the videos on YouTube. Another person who subscribes on Substack may watch on Rumble. And so on.

And, by making those videos “Subscriber Only”, it made watching The Lunduke Journal’s videos significantly more difficult for… Subscribers. The very people it was supposed to be a perk for.

Whoopsie Daisy

Well. Shoot. I’m man enough to admit when I’ve made a mistake. And, boy howdy, was that a mistake!

 

Effective immediately, Videos are now officially free for everyone (just like the Articles & Podcasts). On all platforms which The Lunduke Journal publishes to. Because making sure reading, listening to, and watching The Lunduke Journal is convenient for all of you is a top priority.

Over the next day, all of the “Subscriber Exclusive” videos (published over the last 2 weeks) will become free for everyone.

Running The Lunduke Journal is Not Easy

Just as an aside: What we’re doing with The Lunduke Journal is… unique.

Pretty much every Tech Journalist is funded by Big Tech. Money for advertisements. Money for sponsorships. Money for “paid articles” that look like real journalism but are, in fact, just repackaged ads and press releases.

Take away that Big Tech money and 9 out of 10 Tech News outlets would go out of business tomorrow. Which means they all need to keep Big Tech happy. And that shows in their coverage (and their refusal to touch many important news stories).

By choosing to not take a single penny from Big Tech, The Lunduke Journal has the freedom to tell the truth. To follow the Tech News stories wherever they lead (no matter who it makes grumpy).

But it also means that keeping The Lunduke Journal in business is even trickier than it is for all of those Brand X Tech News Outlets (which already have a hard time staying afloat, even with the Big Tech moolah).

What’s amazing… is that we, against all odds, have pulled it off. For several years now, The Lunduke Journal has stayed in business without taking a dime from Big Tech. And that’s all thanks to all of you. Thank you for making this possible.

If you haven’t grabbed a subscription, just a reminder that now is a great time to do that. 50% off through the end of August (which is a few days from now).

Want to support The Lunduke Journal having all videos (and everything else) for free for the world? That would be a great way to do it.

Once again. Seriously.

Thank you.

-Lunduke

Read full Article
post photo preview
Omarchy 2.0 - The Arch-Based, Hyprland, Non-Woke Distro
The 2.0 release of the unabashedly nerdy, developer focused, & DEI-free Linux distribution is here. And people are flocking to it.

Omarchy, an Arch-based Linux distribution which self-describes as “An opinionated Arch + Hyprland Setup”, has just published their 2.0 release.

 

Omarchy was started by David Heinemeier Hansson (DHH), the creator of Ruby on Rails, as a command-line and developer focused (and unabashedly nerdy) configuration of Arch Linux.

In the short time since it began (back in June), Omarchy has captured a massive amount of interest and has grown to become a full-fledged distribution in its own right.

Omarchy 2.0 boasts a new ISO installation method, AUR-free installation, a Chrome micro-fork with live theme switching, a Starship prompt, a new icon, and 400 other changes (from 45 contributors).

 

According to DHH, the Omarchy Discord now has over 6,000 members with the website having received over 100,000 unique visitors in the last month.

Not too shabby for a Linux distribution that is only 2 months old.

Speaking of Discord, if the Omarchy installation fails, it displays a QR code with an invite link to the Omarchy support channel. I thought that was a rather nice touch.

 

Worth noting that Omarchy — and the Hyprland window manager, which Omarchy uses by default — both were added to “Lunduke’s Non-Woke Software List” this month.

 

Omarchy is yet another Open Source project which has steered clear of Woke & DEI politics… and has seen tremendous success and adoption. We have seen that same scenario play out repeatedly now, with projects like OpenMandriva, XLibre, Hyprland, & Brave.

Avoid DEI. Experience a flood of users, contributors, and excitement.

A pattern is emerging. Hopefully more projects learn this important lesson.


The Lunduke Journal is the last bastion of truly independent Tech Journalism. Ad Free, Big Tech Free, Non-Woke, & Audience Supported.

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals