>Error while executing "[...]/pgm/ptoc -qn -e -DDYNAHASH vpr01.p" >message: No such file or directory > at [...]/bin/comppc.pl line 147 > >It turns out the reason is that ptoc tries to use pgenc, which it >expects at the location /usr/lib/pgenc. I have installed my devtools in >a non-standard directory because I cannot compile it as root, so pgenc >is not in /usr/lib.
The code that should set the location of pgenc is in sys/src/base/prot/ptoc/ptoc.c, line 721. static init_globals () { if ( getenv ("TOOL") ) { sete ( &pcomp , "lib/pgenc") ; sete ( &how_pc , "lib/how_pc") ; /* already defined * char *cpp = "/lib/cpp"; * char *as = "bin/as"; */ } } If $TOOL isn't defined, then the default /usr/lib/pgenc (line 73) is kept. I can't really imagine that $TOOL isn't set as a whole bunch of other script requires that variable. Or do you use some very new compiler that doesn't overwrite string literals? (what sete () seems to do). But then I would expect a bus error, not a silent no-op. Perhaps you can add a trace to ptoc.c to make sure if $TOOL exists. If it doesn't, maybe you can add traces to comppc.pl just before the call to ptoc if $TOOL is set there. Daniel Dittmar -- Daniel Dittmar SAP Labs Berlin [EMAIL PROTECTED] -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]