Subject: Re: Mosaic compile under NetBSD?
To: Port-mac68k <PORT-MAC68K@NetBSD.ORG>
From: T. Sean (Theo) Schulze <71410.25@compuserve.com>
List: port-mac68k
Date: 12/09/1997 12:41:45
>The latest version of Mosaic is 2.7b5. It can be found at 
>ftp://ftp.ncsa.uiuc.edu/Mosaic/Unix/source/Mosaic-src-2.7b5.tar.gz
>You will also need the jpeg library (6a or later) from
>ftp://ftp.uu.net/graphics/jpeg
>and the z and png libraries from
>ftp://ftp.uu.net/graphics/png/src
>
>Make and install these other libraries first. Note the change to the
>libpng 
>makefile I mentioned earlier. Afterwards, run configure as stated above. 
>Then run make.
>

2.7b5 is the version I have, but I screwed up.  I read the INSTALL 
document.  It lists the first thing to do as edit the makefile, and later 
says, "In the near future we intend to implement autoconf (GNU) which 
should solve _everyone's_ problems."  I guess the future is nearer than 
they knew, because last night I noticed all the config files in the src 
directory and just for fun typed ./configure.  Hey, what d'ya know, it 
works.  Guess its a bug in the documentation?

>> I got the /usr/include/errno.h message, but that was only after it
>> couldn't find a number of the shared libraries.  I was editing header
>> files for a while, but figured that is not the way this is supposed to
>
>What header files were you editing? If the compiler can't find included 
>files (read .h files), try the compiler directive 
>-I/dir/where/special/headers/are.
>
Well, when I compiled lesstif, it put a number of its files in 
/usr/local/include.  For some reason I haven't been able to figure out, 
they weren't found during my original non-configure-using attempt at 
compiling Mosaic.  So far running configure I haven't had that problem 
(but it is still early :-)  Right now I am at the poit where configure 
noticed I ddin't have the jpeg files.  I hope to install those files and 
the z and png files tonight and try again.  I am hoping that using 
configure and not just the makefile, the location of the lesstif files 
won't be an issue.

>> go.  I added /usr/local/include to my ld.so.conf file and rebooted.  It
>> still couldn't find the includes.  So, I am re-compiling lesstif with
>
>ld.so.conf tells the system where libraries are, not where header files 
>are.  Remove any changes you made to ld.so.conf.  (Incidentally, I don't 
>think I've ever had to modify the ld.so.conf file.)  To tell the
>compiler 
>where libraries are (you can add this in the Makefile), add 
>-L/dir/where/special/libs/are to the line where it is looking for the 
>library.
>
Well, I had to edit /etc/ld.so.conf to get X to work (as per the FAQ).  
When I added /usr/X11R6/include it was the first entry.  I have now added 
/usr/lib, /usr/include, /usr/local/include and /usr/local/lib to 
/etc/ld.so.conf.  I know there is a security issue with library files 
(which, even after reading man ld.so.conf I am not completely clear on), 
but other than that, is there another issue?  Can it screw something up?

Cheers,

Sean.

T. Sean (Theo) Schulze   71410.25@compuserve.com

Overheard in the Deep Ops Planning Cell:
"Yeah, but remember, Custer *died* in a 'target-rich environment'!"