Groff is not working in the latest code

This is a discussion on Groff is not working in the latest code within the FreeBSD forums, part of the Other OS category; The following happens in 7.0-STABLE built from the source "csup"ed either yesterday's or this morning: ------------------------------------------------------------ $ groff -mm -t -Tascii tmp.mm groff: can't find `DESC' file groff:fatal error: invalid ...

Go Back   Unix Linux Forum > Unix > Other OS > FreeBSD

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-18-2008, 11:09 AM
Default Groff is not working in the latest code

The following happens in 7.0-STABLE built from the source "csup"ed
either yesterday's or this morning:

------------------------------------------------------------
$ groff -mm -t -Tascii tmp.mm
groff: can't find `DESC' file
groff:fatal error: invalid device `ascii'

$ truss -mm -t -Tascii tmp.mm 2>&1 | grep DESC
++ [ ~/doc1/employ/ab-initio ] ++
truss groff -mm -t -Tascii tmp.mm 2>&1 | grep DESC
open("/usr/local/share/groff/site-font/devascii/DESC",O_RDONLY,0666)
ERR#2 'No such file or directory'
open("/usr/local/share/groff/1.19.2/font/devascii/DESC",O_RDONLY,0666)
ERR#2 'No such file or directory'
open("/usr/lib/font/devascii/DESC",O_RDONLY,0666) ERR#2 'No such file
or directory'
groff: can't find `DESC' file
write(2,"groff: can't find `DESC' file\n",30) = 30 (0x1e)

$ ls -l /usr/share/groff_font/devascii/DESC
-r--r--r-- 1 root wheel 95 Aug 18 08:59
/usr/share/groff_font/devascii/DESC

$ GROFF_FONT_PATH=/usr/share/groff_font groff -mm -t -Tascii tmp.mm
troff: fatal error: can't find macro file m

$ which groff
/usr/bin/groff

------------------------------------------------------------

Note an attempt to look for a file under /usr/local, which should not
happen for a program in "base".

This behavior is very new -- no such problem existed in the code
fetched last Saturday. There, I see:

------------------------------------------------------------
$ truss groff -mm -t -Tascii tmp.mm 2>&1 | grep DESC
open("/usr/share/groff_font/devascii/DESC",O_RDONLY,0666) = 3 (0x3)
------------------------------------------------------------

Anybody know of what happened?

Thanks,

-- Alex -- alex-goncharov@comcast.net --

/*
* Machines that have broken down will work perfectly when the
* repairman arrives.
*/

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Reply With Quote
  #2  
Old 08-27-2008, 12:13 AM
Default Re: Another attempt [Re: Groff is not working in the latest code]

Alex Goncharov wrote:
> `groff' is still not working for me, and with it `man' doesn't:
>
> ----------------------------------------
> $ uname -srv
> FreeBSD 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #34: Tue Aug 26 18:14:46 EDT 2008...
>
> $ man man
> /usr/bin/groff: can't find `DESC' file
> /usr/bin/groff:fatal error: invalid device `ascii'
> ----------------------------------------
>


[snip]

>
> So, I looked at how things are being built and think that the
> following is supposed to happen with respect to `groff' -- a GNU
> program:
>
> 1. The build is driven by `gnu/usr.bin/groff/Makefile' (all paths in
> the following are relative to `/usr/src'.
>
> 2. During the build, the original "contrib" code is used, to be found
> in `contrib/groff'.
>
> That code is configured by the pristine `contrib/groff/configure'
> and results in setting the "prefix" to the GNU-usual `/usr/local'
> and generating the FreeBSD-unaware `defs.h' and `config.h'.


contrib/groff/configure shouldn't be called at all, looks like there's
something wrong with your local build environment. Check timestamps on
src/contrib/groff and src/gnu/usr.bin/groff contents (try removing them
and checkout again). Posting relevant entries from /etc/{make,src}.conf
and your `env` output could be helpful too.

> 3. Then some magic "is supposed to happen / was happening two weeks
> ago for me", when the newly generated `defs.h' and `config.h' are
> replaced with the FreeBSD hard versions that had been delivered
> from CVS -- and the paths get corrected to eliminate the `local'
> component from them and do other path adjustments to bring it all
> to the FreeBSD standards:
>
> --------------------
> $ diff contrib/groff/src/include/defs.h gnu/usr.bin/groff/src/include/defs.h | head -n 12


yuri:/usr/src> diff -u contrib/groff/src/include/defs.h
gnu/usr.bin/groff/src/include/defs.h
diff: contrib/groff/src/include/defs.h: No such file or directory

[snip]

> 4. Then the build happens with whatever `defs.h' and `config.h' will
> be found at that time under `contrib/groff/src/include'.
>
> If the step 3 worked before but is not working now, it explains my
> current end results.
>
> But how about others: everything works for you? What could have
> triggered the change in the process for me a week or so ago?


`man man` works for me on 7.0-RELEASE with groff built from RELENG_7 src.

> Anybody is able and willing to lead me out of my lasting misery?
>
> Thanks,
>
> -- Alex -- alex-goncharov@comcast.net --



HTH,
Yuri
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 09:10 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger