Hmm, handn't thought that people might not want to use -mcpu=whatever. I'll
change it to -mcpu=`uname -m`
Kris
> -----Original Message-----
> From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf
> Of Justin Clift
> Sent: Tue, 05-15-01 11:34a
> To: [EMAIL PROTECTED]
> Subject: Re: [AOLSERVER] AOLServer and Mandrake Linux 8.0
>
>
> Hi Dossy,
>
> Allanah Myles wrote:
> >
> > On 2001.05.15, Justin Clift <[EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > > This is the very first time I'm attempting to get AOLServer
> compiled and
> > > going on Linux, after failing miserably using Solaris 8.
> >
> > How did you "fail miserably"? The only problem I had compiling
> > AOLserver 3.3.1 on Solaris 2.6 was the fact that I'm using an OLD
> > version of gcc (2.7.2.3, IIRC) which didn't like the "-mcpu=ultrasparc"
> > so I removed that from the Makefile.global and it built with no
> > other changes. I was also building this on a sun4m (sparc20) so...
>
> Was compiling it on a Solaris 8 fileserver at home, GCS Scorpian 20.
> Basically a SPARC 20, 110Mhz clone.
>
> Using gcc 2.95.3
>
> When trying to run AOLServer it just kept saying something along the
> lines of "Cannot run binary executable" which I haven't had before from
> a "known to run on Solaris" program, so I thought, "Stuff it, I've just
> finished downloading Mandrake 8" and well, here I am.
>
> I see from your email that AOLServer unconditionally puts in the
> -mcpu=ultrasparc, so that's likely the problem. I hadn't noticed it
> (didn't look real hard honestly). Just logged into the old sparc server
> now, removed the -mcpu=ultrasparc from include/Makefile.global and it's
> compiling presently. See how it goes. This makes sense, considering
> the error message I was getting.
>
> :-)
>
> Errr... is there a Solaris FAQ for AOLServer? The
> "Frequently-Asked-Questions" link doesn't appear to be um.. a link on
> the AOLServer page.
>
> > Perhaps if you send the errors you received when trying to compile
> > to the mailing list, we could tell you what needs to happen ...
> >
> <snip>
> > > d) Did chown -Rh nsadmin.nsadmin /usr/local/aolserver
> > > e) su - nsadmin
> > > f) Entered /usr/local/aolserver and copied sample-config.tcl to
> > > config.tcl
> > >
> > > g) (Here's the problem) Attempted to start AOLServer using :
> > >
> > > ./bin/nsd -ft ./config.tcl
> >
> > Yes, here IS the problem.
> >
> > Skip step "e", as if you want to bind to a port less than 1024
> > most likely you will need to start nsd as root. You need to
> > start it this way:
> >
> > # cd /usr/local/aolserver
> > # ./bin/nsd -u nsadmin -g nsadmin -ft config.tcl
> >
> > Don't type the "#", it's meant to represent your prompt as root.
>
> The sample-config.tcl file has its default port set to 8000 (an
> unpriviledged port).
>
> It appears Mandrake's "msec" program/package is a bit over-zealous even
> on "Medium" setting, the recommended default. To solve the problem I
> had to configure a custom msec security configuration with :
>
> # msec custom
>
> And let user programs bind to unpriviledged ports. Not normal Unix
> behaviour, but heck, I can see it is useful in various situations.
>
> So you're right, it was port-binding permissions. But the default tcl
> config file will probably work on things that AREN'T Mandrake. :)
>
> Is there a Mandrake Linux section of an AOLServer FAQ hanging around
> this could go in? (uh oh... techdocs.postgresql.org started with a
> similar question...)
>
> :-)
>
> Regards and best wishes,
>
> Justin Clift
>
> >
> > HTH, HAND,
> >
> > - Dossy
> >
> > --
> > Dossy Shiobara mail: [EMAIL PROTECTED]
> > Panoptic Computer Network web: http://www.panoptic.com/
>
> --
> "My grandfather once told me that there are two kinds of people: those
> who work and those who take the credit. He told me to try to be in the
> first group; there was less competition there."
> - Indira Gandhi
>