Running Mosaic Browser on Modern Linux

Running the Mosaic Browser on a Modern Linux

Yesterday I got inspired by the 18th Anniversary of Philippine Internet and Netscape running on an old computer. I decided to try Mosaic on my Linux box. Mosaic, the predecessor of Netscape and so many other browsers.

Here is how I built it on Ubuntu Precise Pangolin (12.10) beta 64-bit:

  • Downloaded the modernized Mosaic source code. The PNG patch is no longer available.
  • Installed dependencies: sudo apt-get install libmotif-dev libxmu-dev libjpeg-dev libgd2-xpm-dev
  • Manually downloaded and compiled lpng1058.tar.bz2from . Good thing the old PNG libraries compatible with old source are still being maintained.
  • Renamed the definitions ofgetline in ./libnut/url-utils.h ./libnut/url-utils.c ./libwww2/HTInit.c . It is already present in the standard C library.
  • Compiled with make linux.
  • The compile will have warnings about assigning pointers (64-bit) to int. While this is dangerous, it doesn’t stop this Mosaic from running – but it does segfault for some pages. It might be better on a 32-bit machine.
  • The link will fail because the current libpng does not have the deprecated function png_read_init. Instead, copy paste the gcc -o Mosaic line and replace the -lpng with the compiled libpng.a. Also include the system’s libm.a (in my case, /usr/lib/x86_64-linux-gnu/libm.a) since libpng.a is statically compiled. Otherwise, the link will fail with undefined reference to `pow’.

Then, run ./Mosaic. It will have errors like Warning: Cannot convert string “-adobe-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1” to type FontStruct which don’t seem to prevent it from running.

On some sites, I get a core dump. I think it’s because the code was linked against the current libpng.h, but I don’t have time to investigate it. Take a look!

libpng warning: Application was compiled with png.h from libpng-1.0.6 or earlier
libpng warning: Application  is  running with png.c from libpng-1.0.58
libpng error: The png struct allocated by the application for reading is too small.

About homelessholocaust

I actually do not write most of these articles, I collect them here, for my personal useage, I find Some Other's enjoy them as well, which is a side effect of my Senility. As I am a Theosophist, and also study Vedanta Society of Northern California, so Your Visitation from the Akashic records to approve my feebile works gives me Great Hope! I am 68, years old, I will Come To You in another 30 or so years. You Reinforces my Belief that in my Sleep I visit The Akashic Records when I remember my dream's. I keep notes about 'Over There." the Colour of Daylight is Darker, but the Life is Brighter, property has no meaning, and it is homish. are the energetic records of all souls about their past lives, the present lives, and possible future lives. Each soul has its Akashic Records, like a series of books with each book representing one lifetime. The Hall (or Library) of the Akashic Records is where all souls’ Akashic Records are stored energetically. In other words, the information is stored in the Akashic field (also called zero point field). The Akashic Records, however, are not a dry compilation of events. They also contain our collective wisdom.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s