nroff -man blank page prefix output - what am I doing wrong?

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

nroff -man blank page prefix output - what am I doing wrong?

Unread postby porter » Tue Jan 03, 2012 12:00 am

Hi,

I am writing a man page, the neko_groff is emitting blank pages at the start of the output, even for postscript as output.

Code: Select all

$ which groff
/usr/nekoware/bin/groff
$ groff -version
GNU groff version 1.19.1
Copyright (C) 2004 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

called subprograms:

GNU eqn (groff) version 1.19.1
GNU grops (groff) version 1.19.1
GNU troff (groff) version 1.19.1


My man page is really simple

Code: Select all

$ cat testpage
.TH TESTPAGE 1 "3 January 2012"
.SH NAME
testpage(1) \- A test page


On Linux, I get

Code: Select all

$ groff -version
GNU groff version 1.18.1.1
Copyright (C) 2002 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

called subprograms:

GNU eqn (groff) version 1.18.1.1
GNU troff (groff) version 1.18.1.1
GNU grops (groff) version 1.18.1.1


and my output looks sensible:

Code: Select all

$ nroff -man <testpage
TESTPAGE(1)                                                        TESTPAGE(1)



NAME
       testpage(1) - A test page



                                3 January 2012                     TESTPAGE(1)


however on IRIX, I get 40 blank lines ( bare LF ) prepended to the output. I've tried with both nekoware on and off the path. I don't have the original SGI versions of the programs.

Any suggestions? ( apart from strip them off afterwards )

Thanks,

porter
Land of the Long White Cloud and no Software Patents.

tingo
Posts: 262
Joined: Sat Jun 26, 2010 5:40 pm
Location: Oslo, Norway

Re: nroff -man blank page prefix output - what am I doing wr

Unread postby tingo » Fri Jan 06, 2012 9:29 am

Have you checked the an macros on the Irix machine for problems?
Torfinn

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: nroff -man blank page prefix output - what am I doing wr

Unread postby porter » Fri Jan 06, 2012 10:14 am

I have a default install of neko_groff. I have very limited *roff knowledge except what I need to write man pages using existing macros.

I was rather hoping somebody could just confirm my findings, and ideally compare the output with native SGI provided nroff.
Land of the Long White Cloud and no Software Patents.

User avatar
PymbleSoftware
Posts: 1887
Joined: Tue Jul 15, 2008 5:48 pm
Location: P.O. Box 529, Gordon, Sydney, NSW 2072, Australia.
Contact:

Re: nroff -man blank page prefix output - what am I doing wr

Unread postby PymbleSoftware » Sat Jan 07, 2012 12:32 am

porter wrote:I have a default install of neko_groff. I have very limited *roff knowledge except what I need to write man pages using existing macros.

I was rather hoping somebody could just confirm my findings, and ideally compare the output with native SGI provided nroff.


Some people hate awf but anyways...

Code: Select all

tezro:~/code2/roger-test> cat > testpage
.TH TESTPAGE 1 "3 January 2012"
.SH NAME
testpage(1) \- A test page
tezro:~/code2/roger-test> awf testpage
/usr/bin/awf: must specify -ms or -man
tezro:~/code2/roger-test> awf -man testpage


     TESTPAGE(1)         Unix Programmer's Manual          TESTPAGE(1)


     NAME
          testpage(1) - A test page













































                              3 January 2012                         1


tezro:~/code2/roger-test>
tezro:~/code2/roger-test> man awf

awf(1)                                                                  awf(1)

NAME
     awf - amazingly workable (text) formatter

SYNOPSIS
     awf -macros [ file ] ...

DESCRIPTION
     Awf formats the text from the input file(s) (standard input if none) in
     an imitation of The -macro option is mandatory and must be `-man' or
     `-ms'.



I don't have nroff installed on this machine, no time to fire up the main beasts, and I don't know where SGI nroff comes from ... and I haven't the time to go through 6.5.30 overlays or the foundation disks. No time at all lately.


R.
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1.

Sold: :Indy: :Indy: :Indy: :Indigo: Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Twitter @PymbleSoftware
Current Apps (iOS) -> https://itunes.apple.com/au/artist/pymb ... d553990081
(Android) https://play.google.com/store/apps/deve ... +Ltd&hl=en
(Onyx2) Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
(0300s) Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Github ---> https://github.com/pymblesoftware

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: nroff -man blank page prefix output - what am I doing wr

Unread postby porter » Sat Jan 07, 2012 1:12 am

That is really cool, it looks like awf may do it.

Now, how do you make it not print "UNIX Programmer's Manual" ( as in I want to format the relnotes ).
Land of the Long White Cloud and no Software Patents.

User avatar
josehill
Moderator
Moderator
Posts: 3044
Joined: Mon Jun 06, 2005 9:53 pm
Location: New England, USA
Contact:

Re: nroff -man blank page prefix output - what am I doing wr

Unread postby josehill » Sat Jan 07, 2012 2:38 am

PymbleSoftware wrote:I don't have nroff installed on this machine, no time to fire up the main beasts, and I don't know where SGI nroff comes from

SGI nroff is found in the Documenter's Workbench (DWB) product. Although IRIX overlays contain updates for it, the base DWB product was not actually included with IRIX, but was licensed as a separate product. See this thread for (slightly) more info: viewtopic.php?f=15&t=12765

User avatar
PymbleSoftware
Posts: 1887
Joined: Tue Jul 15, 2008 5:48 pm
Location: P.O. Box 529, Gordon, Sydney, NSW 2072, Australia.
Contact:

Re: nroff -man blank page prefix output - what am I doing wr

Unread postby PymbleSoftware » Sat Jan 07, 2012 12:10 pm

josehill wrote:
PymbleSoftware wrote:I don't have nroff installed on this machine, no time to fire up the main beasts, and I don't know where SGI nroff comes from

SGI nroff is found in the Documenter's Workbench (DWB) product. Although IRIX overlays contain updates for it, the base DWB product was not actually included with IRIX, but was licensed as a separate product. See this thread for (slightly) more info: viewtopic.php?f=15&t=12765



Thanks.

I have created a couple of wiki entries to point back to tech pubs, and these two forum topics.
Hopefully someone else can come forward with more detail for those wiki entries later.

R.
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1.

Sold: :Indy: :Indy: :Indy: :Indigo: Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Twitter @PymbleSoftware
Current Apps (iOS) -> https://itunes.apple.com/au/artist/pymb ... d553990081
(Android) https://play.google.com/store/apps/deve ... +Ltd&hl=en
(Onyx2) Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
(0300s) Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Github ---> https://github.com/pymblesoftware


Return to “SGI: Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Omgili [Bot] and 1 guest