childapp.py's subprocess.popen can't open dynamically linked binaries under openbsd 4.6/python 2.5.4

[email protected]
Newsgroups gmane.comp.video.freevo.user,gmane.comp.video.freevo.devel
Message-ID <[email protected]>
Good Afternoon,

I'm trying to port freevo svn install to openbsd 4.6 and I think I'm  
nearly there and ready to capture and blog the changes I had to make :)

However I face hopefully one last issue:

childapp.py uses the python subprocess popen call which executes  
mplayer gives a quick screen blank or redraw and the OS tries to load  
mplayer I see if I watch 'ps ax' while trying to watch a movie.  But  
nothing actually plays and the mplayer-stderr* log file reads:

/usr/local/bin/mplayer: can't load library ''

I see if I make /usr/lib/mplayer a simple /bin/sh script I can run any  
statically compiled binary in here from freevo with no errors.

However if place a dynamically compiled binary in my script to be  
called it fails and logs to the mplayer-stderr*:

$BINARY_PATH/$BINARY: Can't load library ''

Currently my shell script looks like this:

#!/bin/sh
export LD_LIBRARY_PATH=/usr/lib:/usr/libexec:/usr/X11R6/lib:/usr/local/lib
/usr/bin/ldd /usr/local/bin/mplayer.real >/tmp/output

This results in log lines of the following:

/usr/bin/ldd: can't load library ''

I think this is probably OpenBSD specific but on my googles can't find  
a way to allow python to call dynamically linked binaries and be able  
to find/load the libraries it needs :(

Anyone know a way around this or a good place to start digging?

Alistar =)


Quoting Alistar Burrell <[email protected]>:

> Good Evening,
>
> I'm trying to port freevo svn install to openbsd 4.6 and I think I'm
> nearly there and ready to capture and blog the changes I had to make :)
>
> However I face hopefully one last issue:
>
> childapp.py uses the python subprocess popen call which executes with
> a lib path of just /usr/lib (probably a compiled in default of openbsd
> somewhere) however mplayer and other things need access to libs in /
> usr/local/lib and I don't wan to copy them there!
>
> Can any of you python/freevo heads offer up a fix? My python is almost
> non existent but I have a feeling there is a way of passing it these
> as an environment before calling anything with popen the first time.
>
> Cheers
>
> Alistar =)

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.