Herzen, are you building mplayer as a normal user in 2009.06 or trying to build 
it as the "root" user?

The reason I am asking is this. When a normal user does the

   echo $PATH

command in OpenSolaris 2009.06, they get these results:

  :~$ echo $PATH
  /usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin

notice that the "normal" user has GNU utilities in "/usr/gnu/bin" first in 
their PATH. This is important because the GNU utilities are what you want to 
use to build mplayer. Now when a "root" user does the echo $PATH command in 
2009.06 they get these results:

  :~# echo $PATH
  /usr/sbin:/usr/bin

this makes a BIG difference when you're trying to build mplayer. For example, 
if a "normal user" checks where his "cc" compiler is. He'll get this:

  :~$ which cc
 /usr/gnu/bin/cc

which is a symbolic link to gcc:

 :~$ ls -l /usr/gnu/bin/cc 
 lrwxrwxrwx 1 root root 17 2009-01-16 15:42 /usr/gnu/bin/cc -> ../../sfw/bin/gcc


If the root user checks where his "cc" compiler is. He'll get this:

 :~# which cc
 /usr/bin/cc

 :~# ls -l /usr/bin/cc
 lrwxrwxrwx   1 root     root          33 Jan 31 16:24 /usr/bin/cc -> 
../../opt/SunStudioExpress/bin/cc

which is a link to Sun Studio Express!!! Both are called "cc", but depending on 
what you're $PATH variable is and what user you are when you run the 
./configure, make and make install comands, you'll be building with a totally 
different set of build tools!

99% of the time, when FOSS software isn't building correctly on Solaris, it's 
because YOU NEED to have your path set up right so that you are building with 
the GNU build tools and not with System V UNIX tools and the Sun Studio 
compilers. Most of the people who write FOSS software don't really care about 
making the software portable outside of gcc, so usually the software doesn't 
build well with other non-GNU C compilers.
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to