Thread View: news.software.nntp
4 messages
4 total messages
Started by Yen Jui Hung
Wed, 19 Mar 1997 00:00
inn-1.5.1 and Solaris
Author: Yen Jui Hung
Date: Wed, 19 Mar 1997 00:00
Date: Wed, 19 Mar 1997 00:00
17 lines
880 bytes
880 bytes
Hi, I have been trying to compile inn-1.5.1 under Solaris2.5. There were some problems, so here I am. 8) During linking under nnrpd, it reported that "setproctitle" was not found. So I set the HAVE_SETPROCTITLE to "DONT" to force it through. Is setproctitle important? Is there some other solutions to this? Thanks for any replies. With regards, Jui Hung, Yen
Re: inn-1.5.1 and Solaris
Author: Brett Hawn [NOL STAFF]
Date: Wed, 19 Mar 1997 00:00
Date: Wed, 19 Mar 1997 00:00
55 lines
2034 bytes
2034 bytes
Its not particularly important as it could technically be done with a quick
replacement of argv[0]. setproctitle() isn't in SysV as I understand it
because of it what it does. The following is a quick piece of the freebsd
man page:
NAME
setproctitle - set the proccess title for ps(1)
SYNOPSIS
#include <libutil.h>
void
setproctitle(const char *fmt, ...)
Link with -lutil on the cc(1) command line.
DESCRPITION
The setproctitle() library routine sets the process title that appears
on the ps(1) line.
[snip]
to emulate this in SysV a fast (and dirty) call to strcpy() could be used
like:
strcpy(argc[0], "admins really hate this");
generally argv[0] is the name of the called process taken from the command
line.
Yen Jui Hung (juihung@iti.gov.sg) wrote:
: Hi,
:
: I have been trying to compile inn-1.5.1 under Solaris2.5. There were
: some problems, so here I am. 8)
:
: During linking under nnrpd, it reported that "setproctitle" was not
: found. So I set the HAVE_SETPROCTITLE to "DONT" to force it through.
:
: Is setproctitle important? Is there some other solutions to this?
:
: Thanks for any replies.
:
: With regards,
: Jui Hung, Yen
--
[-] Brett L. Hawn (blh @ nol dot net) [-]
[-] Networks On-Line - Houston, Texas [-]
[-] 713-467-7100 [-]
Re: inn-1.5.1 and Solaris
Author: Per Hedeland
Date: Thu, 20 Mar 1997 00:00
Date: Thu, 20 Mar 1997 00:00
22 lines
1374 bytes
1374 bytes
In article <5gonsm$524$1@news.nol.net> blh@nol.net (Brett Hawn [NOL STAFF]) writes: >to emulate this in SysV a fast (and dirty) call to strcpy() could be used >like: > > strcpy(argc[0], "admins really hate this"); > >generally argv[0] is the name of the called process taken from the command >line. Which is more or less what the INN code does (actually it uses all of argv) if SETPROCTITLE is set DONT, of course. Unfortunately this doesn't really work right on Solaris either - /usr/bin/ps pays no attention to it, but the distantly BSD-resembling /usr/ucb/ps sort of shows it if given a 'w' option (which for some inexplicable reason causes it to switch from "initial command" to "program-set argv"-ish). --Per Hedeland per@erix.ericsson.se
Re: inn-1.5.1 and Solaris
Author: Michael Douglass
Date: Fri, 21 Mar 1997 00:00
Date: Fri, 21 Mar 1997 00:00
17 lines
1091 bytes
1091 bytes
: During linking under nnrpd, it reported that "setproctitle" was not
: found. So I set the HAVE_SETPROCTITLE to "DONT" to force it through.
: Is setproctitle important? Is there some other solutions to this?
This is the correct solution. HAVE_SETPROCTITLE is set to DO if you
have it and DONT if you don't have it; so you did the correct thing
here.
--
Michael Douglass
Texas Networking, Inc.
"The past is a foreign country; they do things differently there."
L. P. Hartley, British author. The Go-Between, Prologue (1953).
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