Thread View: news.software.nntp
9 messages
9 total messages
Started by Brian Baggett
Tue, 20 Jan 1998 00:00
INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Brian Baggett
Date: Tue, 20 Jan 1998 00:00
Date: Tue, 20 Jan 1998 00:00
53 lines
2096 bytes
2096 bytes
Recently, while trying to compile the latest INN, I encountered some
problems getting it to compile under either Solaris 2.5 or Solaris 2.6
(both x86). The suggested recommendations for compiling on Solaris 2.5 or
better were virtually non-existent on the web. I made the following
changes and was wondering if any of you had done the same and, if so, what
was the outcome? Also, are there any changes I forgot to make?
The point I'm trying to make is that I can make it compile, but am wary of
trying it out for fear that it doesn't work.
To compile INN 1.7.2, I edited config/config.data and changed the 'LIBS
-lutil' to 'LIBS -lnsl -lsocket -lelf -lresolv' (because my predecessor
compiled 1.51 with these options). I made sure that each Makefile in each
subdirectory has the updated LIBS line.
I edited lib/gettime.c and commented out these lines (68 and 69).
#else
LastTzone = (0 - tm->tm_gmtoff) / 60;
I edited lib/lockfile.c and commented out these lines (42,43, and 44).
#if defined(LOCK_FLOCK)
return flock(fd, Block ? LOCK_EX : LOCK_EX | LOCK_NB);
#endif /* defined(LOCK_FLOCK) */
I edited nnrpd/nnrpd.c and commented out the lines that read:
#if defined(DO_HAVE_SETPROCTITLE)
setproctitle("%s %s", ClientHost, what);
#else
and line 242:
#endif /* defined(DO_HAVE_SETPROCTITLE) */
Anyone else have to do this?
Thanks,
Brian
-------------
Brian Baggett
Systems Administrator
Internet Doorway, Inc.
http://www.netdoor.com
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Dave Barr
Date: Thu, 22 Jan 1998 00:00
Date: Thu, 22 Jan 1998 00:00
20 lines
1309 bytes
1309 bytes
In article <6a1api$2gj$1@usenet88.supernews.com>, Brian Baggett <brianb@lance.netdoor.com> wrote: >Recently, while trying to compile the latest INN, I encountered some >problems getting it to compile under either Solaris 2.5 or Solaris 2.6 >(both x86). The suggested recommendations for compiling on Solaris 2.5 or >better were virtually non-existent on the web. That's because they're not on the web, they're in the sample config.data's in the INN distribution. Use them. All of your code changes were unnecessary, and quite possibly just broke something. --Dave -- http://www.cis.ohio-state.edu/~barr/ barr@cis.ohio-state.edu
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Jake Burns
Date: Sat, 24 Jan 1998 00:00
Date: Sat, 24 Jan 1998 00:00
95 lines
3454 bytes
3454 bytes
I just compiled INN 1.7.2 on a Sparc1+ running Solaris 2.5.1. I had to
make the following changes to get a successful build:
in config/config.data:
changed:
LOCK_STYLE FLOCK
to
LOCK_STYLE NONE
changed:
HAVE_TM_GMTOFF DO
to
HAVE_TM_GMTOFF DONT
changed:
HAVE_SETPROCTITLE DO
to
HAVE_SETPROCTITLE DONT
changed:
LIBS -lutil
to
LIBS -lsocket -lresolv -lnsl -lelf
in frontends/Makefile
changed:
LIBS = -lutil
to
LIBS =
I suggest you start over and make the changes to config/config.data
instead of editing the source. Hopefully INN will be using autoconf
sometime soon which should make things easier.
--
Jake Burns
jake@blacksun.net
In article <6a1api$2gj$1@usenet88.supernews.com>,
brianb@lance.netdoor.com (Brian Baggett) wrote:
>
> Recently, while trying to compile the latest INN, I encountered some
> problems getting it to compile under either Solaris 2.5 or Solaris 2.6
> (both x86). The suggested recommendations for compiling on Solaris 2.5 or
> better were virtually non-existent on the web. I made the following
> changes and was wondering if any of you had done the same and, if so, what
> was the outcome? Also, are there any changes I forgot to make?
>
> The point I'm trying to make is that I can make it compile, but am wary of
> trying it out for fear that it doesn't work.
>
> To compile INN 1.7.2, I edited config/config.data and changed the 'LIBS
> -lutil' to 'LIBS -lnsl -lsocket -lelf -lresolv' (because my predecessor
> compiled 1.51 with these options). I made sure that each Makefile in each
> subdirectory has the updated LIBS line.
>
> I edited lib/gettime.c and commented out these lines (68 and 69).
>
> #else
> LastTzone = (0 - tm->tm_gmtoff) / 60;
>
> I edited lib/lockfile.c and commented out these lines (42,43, and 44).
>
> #if defined(LOCK_FLOCK)
> return flock(fd, Block ? LOCK_EX : LOCK_EX | LOCK_NB);
> #endif /* defined(LOCK_FLOCK) */
>
> I edited nnrpd/nnrpd.c and commented out the lines that read:
>
> #if defined(DO_HAVE_SETPROCTITLE)
> setproctitle("%s %s", ClientHost, what);
> #else
>
> and line 242:
>
> #endif /* defined(DO_HAVE_SETPROCTITLE) */
>
> Anyone else have to do this?
>
> Thanks,
>
> Brian
>
> -------------
> Brian Baggett
> Systems Administrator
> Internet Doorway, Inc.
> http://www.netdoor.com
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Jake Burns
Date: Mon, 26 Jan 1998 00:00
Date: Mon, 26 Jan 1998 00:00
34 lines
1967 bytes
1967 bytes
I've just replaced NONE with LOCKF in config.data and it compiled without errors. It seems either NONE or LOCKF will work, but LOCKF is probably a better choice. Where is the sample config for solaris? I didn't see one in the 1.7.2 distribution. -- Jake Burns jake@spoof.org On 26 Jan 1998, Michael Hucka wrote: > >>>>> On 24 Jan 1998, jake@blacksun.net (Jake Burns) wrote: > > jake> I just compiled INN 1.7.2 on a Sparc1+ running Solaris 2.5.1. I had > jake> to make the following changes to get a successful build: > > jake> in config/config.data: > > jake> changed: LOCK_STYLE FLOCK to LOCK_STYLE NONE > > I've been running INN on a Solaris 2.5.1 system also. I've always used LOCKF > instead of NONE on Solaris. This is the locking style suggested in the > sample configurations for Solaris that are supplied with INN. > > -- > Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University > PhD to be, computational models of human visual processing (AI Lab) of > UNIX systems administrator & programmer/analyst (EECS DCO) Michigan > >
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Forrest J. Cavalier III
Date: Mon, 26 Jan 1998 00:00
Date: Mon, 26 Jan 1998 00:00
53 lines
1886 bytes
1886 bytes
LOCK_STYLE NONE
should _never_ be a choice. It is a leftover from long ago
versions of INN.
INN will compile, but it will not work properly unless you
are extremely lucky.
Forrest J. Cavalier III, Mib Software, INN customization and consulting
Searchable hypertext INN docs, FAQ, RFCs, etc: 650+ pages:
http://www.mibsoftware.com/userkt/forprov.htm
Commercial support for INN: http://www.mibsoftware.com/innsup.htm
In article <885679663.2053832709@dejanews.com>, jake@blacksun.net wrote...
>
>I just compiled INN 1.7.2 on a Sparc1+ running Solaris 2.5.1. I had to
>make the following changes to get a successful build:
>
>in config/config.data:
>
>changed:
>LOCK_STYLE FLOCK
>to
>LOCK_STYLE NONE
>
>changed:
>HAVE_TM_GMTOFF DO
>to
>HAVE_TM_GMTOFF DONT
>
>changed:
>HAVE_SETPROCTITLE DO
>to
>HAVE_SETPROCTITLE DONT
>
>changed:
>LIBS -lutil
>to
>LIBS -lsocket -lresolv -lnsl -lelf
>
>in frontends/Makefile
>changed:
>LIBS = -lutil
>to
>LIBS =
>
[snip]
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Michael Hucka
Date: Mon, 26 Jan 1998 00:00
Date: Mon, 26 Jan 1998 00:00
17 lines
1574 bytes
1574 bytes
>>>>> On 26 Jan 1998, Jake Burns <jake@spoof.org> wrote: jake> I've just replaced NONE with LOCKF in config.data and it compiled jake> without errors. It seems either NONE or LOCKF will work, but LOCKF jake> is probably a better choice. Where is the sample config for solaris? jake> I didn't see one in the 1.7.2 distribution. There is a subdirectory called "sample-configs" at the top level of the distribution. -- Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University PhD to be, computational models of human visual processing (AI Lab) of UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Michael Hucka
Date: Mon, 26 Jan 1998 00:00
Date: Mon, 26 Jan 1998 00:00
20 lines
1536 bytes
1536 bytes
>>>>> On 24 Jan 1998, jake@blacksun.net (Jake Burns) wrote: jake> I just compiled INN 1.7.2 on a Sparc1+ running Solaris 2.5.1. I had jake> to make the following changes to get a successful build: jake> in config/config.data: jake> changed: LOCK_STYLE FLOCK to LOCK_STYLE NONE I've been running INN on a Solaris 2.5.1 system also. I've always used LOCKF instead of NONE on Solaris. This is the locking style suggested in the sample configurations for Solaris that are supplied with INN. -- Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University PhD to be, computational models of human visual processing (AI Lab) of UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Michael Hucka
Date: Mon, 26 Jan 1998 00:00
Date: Mon, 26 Jan 1998 00:00
23 lines
1720 bytes
1720 bytes
>>>>> On 20 Jan 1998, brianb@lance.netdoor.com (Brian Baggett) wrote: brianb> Recently, while trying to compile the latest INN, I encountered brianb> some problems getting it to compile under either Solaris 2.5 or brianb> Solaris 2.6 (both x86). The suggested recommendations for brianb> compiling on Solaris 2.5 or better were virtually non-existent on brianb> the web. I made the following changes and was wondering if any of brianb> you had done the same and, if so, what was the outcome? Also, are brianb> there any changes I forgot to make? Did you look in the sample-configs subdirectory that comes with INN? There's a sample config.data for Solaris 2.5. In addition, you might want to visit www.dejanews.com and search through n.s.n. for past postings related to Solaris. -- Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University PhD to be, computational models of human visual processing (AI Lab) of UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
Re: INN 1.7.2 and Solaris 2.X - Serious compilation questions
Author: Brian Baggett
Date: Tue, 27 Jan 1998 00:00
Date: Tue, 27 Jan 1998 00:00
26 lines
1489 bytes
1489 bytes
Dave Barr (barr@stumble.cis.ohio-state.edu) wrote: : In article <6a1api$2gj$1@usenet88.supernews.com>, : Brian Baggett <brianb@lance.netdoor.com> wrote: : >Recently, while trying to compile the latest INN, I encountered some : >problems getting it to compile under either Solaris 2.5 or Solaris 2.6 : >(both x86). The suggested recommendations for compiling on Solaris 2.5 or : >better were virtually non-existent on the web. : : That's because they're not on the web, they're in the sample config.data's : in the INN distribution. Use them. : : All of your code changes were unnecessary, and quite possibly just broke : something. Thanks, though I could have lived without the condescension. That's of course, why I asked the newsgroup in the first place. Thanks for the help, Brian
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads