Mantis - opensp_utils
Viewing Issue Advanced Details
3515 regular use minor always 2009-03-30 20:47 2009-04-05 11:54
bwalton  
pfelecan  
normal  
closed  
fixed  
none    
none  
0003515: broken search path
When using the ospcat program, it fails to behave as expected unless using either -D or $CWD contains a valid sgml catalog file.

I think the configure option --enable-default-search-path should be set to .:/opt/csw/share/sgml:/opt/csw/share/xml:/opt/csw/etc/sgml, which would match behaviour on redhat linux.

It is possible to avoid this issue by passing -D /opt/csw/etc/sgml to ospcat, but there are configure scripts (see mutt) that don't do this.
strace -eopen on rhel5.3 lists the following when running ospcat from ~:
open("catalog", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/sgml/catalog", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/xml/catalog", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/sgml/catalog", O_RDONLY) = 3

truss -t open on sol10x86 from ~:
open("catalog", O_RDONLY) Err#2 ENOENT

Issue History
2009-03-30 20:47 bwalton New Issue
2009-03-31 15:56 pfelecan Status new => assigned
2009-03-31 15:56 pfelecan Assigned To => pfelecan
2009-04-05 11:52 pfelecan Note Added: 0005875
2009-04-05 11:52 pfelecan Status assigned => resolved
2009-04-05 11:52 pfelecan Resolution open => fixed
2009-04-05 11:54 pfelecan Status resolved => closed

Notes
(0005875)
pfelecan   
2009-04-05 11:52   
fized in the new build of April 4th, 2009