groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] CVS Build Problem


From: Larry Jones
Subject: Re: [Groff] CVS Build Problem
Date: Mon, 25 Apr 2005 15:11:27 -0400 (EDT)

Werner LEMBERG writes:
> 
> Perhaps you can try to use `strace' or a similar program.  Then you
> can check where the files are searched.

Good idea!

For reference, here's the command line from make (ktrace is BSD/OS's
version of strace):

GROFF_COMMAND_PREFIX='';  export GROFF_COMMAND_PREFIX;  GROFF_BIN_PATH=`echo 
/public/GNU/groff/src/roff/groff  /public/GNU/groff/src/roff/troff  
/public/GNU/groff/src/preproc/pic  /public/GNU/groff/src/preproc/eqn  
/public/GNU/groff/src/preproc/tbl  /public/GNU/groff/src/preproc/grn  
/public/GNU/groff/src/preproc/refer  /public/GNU/groff/src/preproc/soelim  
/public/GNU/groff/src/preproc/html  /public/GNU/groff/src/devices/grops  
/public/GNU/groff/src/devices/grohtml | sed -e 's|  *|:|g'`;  export 
GROFF_BIN_PATH;  sed -e "s;@VERSION@;1.19.2;" meref.me  | ktrace -i 
/public/GNU/groff/src/roff/groff/groff -M/public/GNU/groff/tmac 
-M/public/GNU/groff/tmac -F/public/GNU/groff/font -F/public/GNU/groff/font 
-Upet -ww -Tps -ge -me >meref.ps

groff itself works fine, the first place it looks is in the directory
specified by -F on the command line, the file exists and is opened
successfully:

  8860 groff    CALL  open(0x805e040,0,0x1b6)
  8860 groff    NAMI  "/public/GNU/groff/font/devps/DESC"
  8860 groff    RET   open 3

But when it forks and execs grn, grn doesn't pay any attention to the
command line font directories, it only looks in the default places and
then complains that it can't find the DESC file:

  8863 grn      CALL  open(0x805d040,0,0x1b6)
  8863 grn      NAMI  "/usr/local/share/groff/site-font/devps/DESC"
  8863 grn      RET   open -1 errno 2 No such file or directory
  8863 grn      CALL  open(0x805d040,0,0x1b6)
  8863 grn      NAMI  "/usr/local/share/groff/1.19.2/font/devps/DESC"
  8863 grn      RET   open -1 errno 2 No such file or directory
  8863 grn      CALL  open(0x80590a0,0,0x1b6)
  8863 grn      NAMI  "/usr/lib/font/devps/DESC"
  8863 grn      RET   open -1 errno 2 No such file or directory
  8863 grn      CALL  write(0x2,0x804614c,0x4)
  8863 grn      GIO   fd 2 wrote 4 bytes
       "grn:"

Likewise, when it forks and execs troff, troff doesn't pay any attention
to the command line font directories and only looks in the standard
places:

  8865 troff    CALL  open(0x80da0c0,0,0x1b6)
  8865 troff    NAMI  "/usr/local/share/groff/site-font/devps/DESC"
  8865 troff    RET   open -1 errno 2 No such file or directory
  8865 troff    CALL  open(0x80da0c0,0,0x1b6)
  8865 troff    NAMI  "/usr/local/share/groff/1.19.2/font/devps/DESC"
  8865 troff    RET   open -1 errno 2 No such file or directory
  8865 troff    CALL  open(0x80de2a0,0,0x1b6)
  8865 troff    NAMI  "/usr/lib/font/devps/DESC"
  8865 troff    RET   open -1 errno 2 No such file or directory
  8865 troff    CALL  write(0x2,0x80b3474,0x1e)
  8865 troff    GIO   fd 2 wrote 30 bytes
       "troff: can't find `DESC' file\n"

It appears that groff doesn't pass the command line font directories on
directly but rather sets an environment variable ($GROFF_FONT_PATH). 
That variable does seem to be set correctly for both grn and troff, but
they don't seem to be paying any attention to it.  Here's the complete
environment for both processes:

  ALT_AWK_PROGS=gawk mawk nawk awk
  ALT_GHOSTSCRIPT_PROGS=gs gswin32c gsos2
  AR=ar
  BLOCKSIZE=1024
  BROKEN_SPOOLER_FLAGS=0
  CC=gcc
  CCC=g++
  CCDEFINES=-DHAVE_CONFIG_H
  CCFLAGS=-g -O2
  CDEFINES=-DHAVE_CONFIG_H
  CFLAGS=-g -O2
  CPPFLAGS=
  CVSEDITOR=emacs
  CVSROOT=/public/CVS
  CVS_RSH=ssh
  DEVICE=ps
  DISPLAY=:0.0
  DVIPRINT=lpr -d
  EDITOR=emacs
  ETAGS=etags
  ETAGSCCFLAG=-C
  ETAGSFLAGS=
  EXEEXT=
  FCEDIT=emacs
  GHOSTSCRIPT=gs
  
GROFF_BIN_PATH=/public/GNU/groff/src/roff/groff:/public/GNU/groff/src/roff/troff:/public/GNU/groff/src/preproc/pic:/public/GNU/groff/src/preproc/eqn:/public/GNU/groff/src/preproc/tbl:/public/GNU/groff/src/preproc/grn:/public/GNU/groff/src/preproc/refer:/public/GNU/groff/src/preproc/soelim:/public/GNU/groff/src/preproc/html:/public/GNU/groff/src/devices/grops:/public/GNU/groff/src/devices/grohtml
  GROFF_COMMAND_PREFIX=
  GROFF_FONT_PATH=/public/GNU/groff/font:/public/GNU/groff/font
  
GROFF_PATH__=/thor/scjones/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11/bin:/usr/contrib/bin:/usr/games:/usr/java/bin:/usr/contrib/teTeX/bin
  HISTFILE=/thor/scjones/.sh_hist.
  HOME=/thor/scjones
  HOST=thor.net.plm.eds.com
  HOSTNAME=thor.net.plm.eds.com
  HOSTTYPE=i386
  INETDISPLAY=thor.net.plm.eds.com:0
  INSTALL_DATA=/usr/bin/install -c -m 644
  INSTALL_INFO=install-info
  INSTALL_PROGRAM=/usr/bin/install -c
  INSTALL_SCRIPT=/usr/bin/install -c
  LDFLAGS=
  LIBEXT=a
  LIBM=-lm
  LIBOBJS=
  LIBS=
  LOGNAME=scjones
  MACHTYPE=i386-pc-bsdi4.2
  MAILPATH=/var/mail/scjones
  MAKEOVERRIDES=
  METAMAIL_PAGER=less
  NNTPSERVER=news1
  NOMETAMAIL=1
  OBJEXT=o
  OSTYPE=bsdi4.2
  OTHERDEVDIRS=font/devlj4 font/devlbp
  PAGE=letter
  PAGER=less
  
PATH=/public/GNU/groff/src/roff/groff:/public/GNU/groff/src/roff/troff:/public/GNU/groff/src/preproc/pic:/public/GNU/groff/src/preproc/eqn:/public/GNU/groff/src/preproc/tbl:/public/GNU/groff/src/preproc/grn:/public/GNU/groff/src/preproc/refer:/public/GNU/groff/src/preproc/soelim:/public/GNU/groff/src/preproc/html:/public/GNU/groff/src/devices/grops:/public/GNU/groff/src/devices/grohtml:/thor/scjones/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11/bin:/usr/contrib/bin:/usr/games:/usr/java/bin:/usr/contrib/teTeX/bin
  PERLPATH=/usr/local/bin/perl
  PLATFORM=SGI
  PRINTER=cvg_xrx_2k1s1
  PSPRINT=lpr
  PURIFY=purify
  PURIFYCCFLAGS=
  PWD=/public/GNU/groff/doc
  RANLIB=ranlib
  RT_SEP=:
  SHELL=/bin/bash
  SHLVL=1
  SH_DEPS_SED_SCRIPT=/public/GNU/groff/arch/misc/shdeps.sed
  SH_SCRIPT_SED_CMD=1s/a/a/
  SH_SEP=:
  TERM=xterm
  TTYDEVDIRS=font/devascii font/devlatin1 font/devutf8
  USER=scjones
  VISUAL=emacs
  VPATH=.
  WINDOWID=29360142
  WWW_HOME=http://infoweb.ugsplm.com/
  XDEVDIRS=font/devX75 font/devX75-12 font/devX100 font/devX100-12
  XEARTHARGS=-grid -nomarkers -label -ncolors 64 -wait 900 -night 30
  XLIBDIRS=src/libs/libxutil
  XPROGDIRS=src/devices/xditview src/utils/xtotroff
  X_CFLAGS=-I/usr/X11R6/include
  X_EXTRA_LIBS=
  X_LIBS=-L/usr/X11R6/lib
  X_PRE_LIBS=-lSM -lICE
  YACC=yacc
  YACCFLAGS=-v
  ZIPOPT=-n .gz:.taz:.Z:.zip:.zoo:.arc:.lzh:.arj
  _=/usr/bin/make
  appresdir=/usr/X11R6/lib/X11/app-defaults
  bindir=/usr/local/bin
  common_words_file=/usr/local/share/groff/1.19.2/eign
  datadir=/usr/local/share
  dataprogramdir=/usr/local/share/groff
  datasubdir=/usr/local/share/groff/1.19.2
  do=all
  docdir=/usr/local/share/doc/groff/1.19.2
  exampledir=/usr/local/share/doc/groff/1.19.2/examples
  exec_prefix=/usr/local
  fontdir=/usr/local/share/groff/1.19.2/font
  
fontpath=/usr/local/share/groff/site-font:/usr/local/share/groff/1.19.2/font:/usr/lib/font
  g=
  htmldocdir=/usr/local/share/doc/groff/1.19.2/html
  indexdir=/usr/dict/papers
  indexext=.i
  indexname=Ind
  infodir=/usr/local/info
  legacyfontdir=/usr/lib/font
  libdir=/usr/local/lib
  libprogramdir=/usr/local/lib/groff
  localfontdir=/usr/local/share/groff/site-font
  localtmacdir=/usr/local/share/groff/site-tmac
  make_html=html
  make_install_html=install_html
  make_install_pdfdoc=install_pdfdoc
  make_pdfdoc=pdfdoc
  man1dir=/usr/local/man/man1
  man1ext=1
  man5dir=/usr/local/man/man5
  man5ext=5
  man7dir=/usr/local/man/man7
  man7ext=7
  manroot=/usr/local/man
  mkinstalldirs=/bin/bash /public/GNU/groff/mkinstalldirs
  pdfdocdir=/usr/local/share/doc/groff/1.19.2/pdf
  pnmtops_nosetpage=pnmtops
  prefix=/usr/local
  revision=.2
  srcdir=.
  sys_tmac_prefix=
  sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
  sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
  systemtmacdir=/usr/local/lib/groff/site-tmac
  tmac_an_prefix=
  tmac_m_prefix=
  tmac_s_prefix=
  tmac_wrap=
  tmacdir=/usr/local/share/groff/1.19.2/tmac
  
tmacpath=/usr/local/lib/groff/site-tmac:/usr/local/share/groff/site-tmac:/usr/local/share/groff/1.19.2/tmac
  top_builddir=/public/GNU/groff
  top_srcdir=/public/GNU/groff
  usermodmap=/thor/scjones/.Xmodmap
  userresources=/thor/scjones/.Xresources
  version=1.19

-Larry Jones

Whatever it is, it's driving me crazy! -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]