Re: [Freevo-devel] Freevo cvs runapp can't find runtime?

2003-06-10 Thread Rob Shortt
Rob Shortt wrote:
Rob Shortt wrote:

What is happening here is that I forgot that av[1] isn't always a 
relative or absolute path to the app in question but sometimes needs 
to be found in your PATH.  I will take a look at this immediately.


Ok so my Freevo box just crashed horribly and won't boot up all the way 
without a kernel panic now even when trying older kernels.  I think I 
may have a heat problem. :(

By the way, is there a dead simple C function to find something in your 
PATH?  I am definately not a C guy. :)
I actually didn't have to do that.  Now I am only checking to see if 
said file is staticly linked if it is in the runime, in which case I can 
load it with a relative path.  I didn't really test this though since my 
freevo box is really acting up.

-Rob



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Freevo cvs runapp can't find runtime?

2003-06-10 Thread Wan Tat Chee
Hi Rob, 

Sorry to hear about the heat. Our lab airconditioner is currently
broken, and I know how that is

I haven't done any path searching in C, but a quick 'apropos path'
shows 'glob()' and 'fnmatch()' functions which might be useful?

T.C.

Wan Tat Chee (Lecturer)
School of Computer Science, Univ. Science Malaysia,
11800 Minden, Penang, Malaysia.   Rm.625 Ofc Ph: +604 653-3888 x 3617
NRG Lab Admin: +604 659-4757   Rm.601-E Ofc Ph: +604 653-4396
Internet: [EMAIL PROTECTED]Web: http://nrg.cs.usm.my/~tcwan
GPG Key : http://nrg.cs.usm.my/~tcwan/tcw_gpg-20030322.asc
F'print : DCF2 B9B2 FA4D 1208 AD59  14CA 9A8F F54D B2C4 63C7

On Tue, 10 Jun 2003, Rob Shortt wrote:

> Rob Shortt wrote:
> > What is happening here is that I forgot that av[1] isn't always a 
> > relative or absolute path to the app in question but sometimes needs to 
> > be found in your PATH.  I will take a look at this immediately.
> 
> Ok so my Freevo box just crashed horribly and won't boot up all the way 
> without a kernel panic now even when trying older kernels.  I think I 
> may have a heat problem. :(
> 
> By the way, is there a dead simple C function to find something in your 
> PATH?  I am definately not a C guy. :)
> 
> -Rob
> 
> 
> 
> 
> 



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Freevo cvs runapp can't find runtime?

2003-06-10 Thread Rob Shortt
Rob Shortt wrote:
What is happening here is that I forgot that av[1] isn't always a 
relative or absolute path to the app in question but sometimes needs to 
be found in your PATH.  I will take a look at this immediately.
Ok so my Freevo box just crashed horribly and won't boot up all the way 
without a kernel panic now even when trying older kernels.  I think I 
may have a heat problem. :(

By the way, is there a dead simple C function to find something in your 
PATH?  I am definately not a C guy. :)

-Rob



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] Freevo cvs runapp can't find runtime?

2003-06-10 Thread Rob Shortt
Wan Tat Chee wrote:
--- from /var/log/freevo/internal-runapp-0.log -
runapp: Started on Wed Jun 11 09:52:11 2003
runapp: PATH =
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/
games:/usr/local/soplayer:/usr/local/parsec/bin:/home/tcwan/bin
runapp: CWD = /usr/src/redhat/BUILD/freevo
runapp: av[0] = './runapp'
runapp: av[1] = 'python'
runapp: av[2] = 'setup_freevo.py'
runapp: av[3] = '--help'
runapp: Command: './runapp python setup_freevo.py --help '
runapp: runtime FOUND
runapp: cannot open `python'
Thanks for catching this!

What is happening here is that I forgot that av[1] isn't always a 
relative or absolute path to the app in question but sometimes needs to 
be found in your PATH.  I will take a look at this immediately.

-Rob



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Freevo cvs runapp can't find runtime?

2003-06-10 Thread Wan Tat Chee
Hi Rob, 

Just tried to update from CVS and build a new RPM from the CVS
snapshot, and I found the following problem when trying to do a 
'./freevo setup --help':

--- from /var/log/freevo/internal-runapp-0.log -
runapp: Started on Wed Jun 11 09:52:11 2003

runapp: PATH =
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/
games:/usr/local/soplayer:/usr/local/parsec/bin:/home/tcwan/bin
runapp: CWD = /usr/src/redhat/BUILD/freevo
runapp: av[0] = './runapp'
runapp: av[1] = 'python'
runapp: av[2] = 'setup_freevo.py'
runapp: av[3] = '--help'
runapp: Command: './runapp python setup_freevo.py --help '
runapp: runtime FOUND
runapp: cannot open `python'

(I am in the middle of d'loading the new test1 runtime (version 6), which
is going to taken another 4 hrs at the current rate. This is done against
runtime version 5. Could this be a problem?)

Since I'm building a RPM, the CWD is not the default /usr/local/freevo. I
softlinked the runtime directory into the build directory so freevo_python
is in ./runtime/apps. I even softlinked freevo_python to python in the
runtime/apps directory, same error.

T.C.


Wan Tat Chee (Lecturer)
School of Computer Science, Univ. Science Malaysia,
11800 Minden, Penang, Malaysia.   Rm.625 Ofc Ph: +604 653-3888 x 3617
NRG Lab Admin: +604 659-4757   Rm.601-E Ofc Ph: +604 653-4396
Internet: [EMAIL PROTECTED]Web: http://nrg.cs.usm.my/~tcwan
GPG Key : http://nrg.cs.usm.my/~tcwan/tcw_gpg-20030322.asc
F'print : DCF2 B9B2 FA4D 1208 AD59  14CA 9A8F F54D B2C4 63C7



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel