Opensuse specific problem - configure XBMC
#1
Configure exit with this error on OpenSuse 11.4 , but It works on Mandriva 2010.2.
gcc --version
gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]

source : git xbmc ( https://github.com/xbmc/xbmc.git )
opdenkam : https://github.com/opdenkamp/xbmc.git - pvr-ppa-odk38 - FAIL
opdenkamp : https://github.com/opdenkamp/xbmc.git - pvr-ppa-odk38 - OK

/****************************************************/
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: no input files
./configure: line 6880: : command not found
no
configure: error: no acceptable ld found in $PATH
configure: error: Submodule xbmc/screensavers/rsxs-0.9/ failed to configure
/****************************************************/
Reply
#2
and what's on line 6680 in that configure?
Reply
#3
6865 :for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_AR="${ac_tool_prefix}ar"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS

fi
6880: fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


6888: fi
Reply
#4
wrong configure - configure: error: Submodule xbmc/screensavers/rsxs-0.9/ failed to configure ->

xbmc/screensavers/rsxs-0.9/configure
Reply
#5
6855:# Check whether --with-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then :
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
case $host in
*-*-mingw*)
# gcc leaves a trailing carriage return which upsets mingw
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
*)
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
esac
case $ac_prog in
# Accept absolute paths.
[\\/]* | ?:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
# Canonicalize the pathname of ld
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6880: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6896:$as_echo_n "checking for GNU ld... " >&6; }
Reply
#6
I know, it's not right, but solution is temporaly hardcode configure in xbmc/screensavers/rsxs-0.9/configure..

........ line
else
lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

lt_cv_path_LD="/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld"
LD="$lt_cv_path_LD"
if test -n "$LD"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
$as_echo "$LD" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }


after that xbmc compiles and works correctly .. problem is somwhere in /bin/ld detection ...
Reply
#7
I use openSUSE 11.4 x86_64 and got same issue when today tried to update XBMC from the git repo.

I read topic and propose new solution on how-to temporary fix the issue: just setup right path to the `ld`, before running `./configure`, in other words:

Code:
$ LD=/usr/`uname -m`-suse-linux/bin/ld ./configure --disable-pulse --enable-mid

This solution works for me and I hope that would be worked for other openSUSE 11.4 users. But also I hope that issue would be fixed by the XBMC core team.

----

BTW, for updating XBMC from the git repo I used little shell script, placed here. Feel free to use it too Smile
Reply
#8
problem is there :

ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&6; }
case $host in
*-*-mingw*)
# gcc leaves a trailing carriage return which upsets mingw
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
*)
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
esac
echo ac_prog: $ac_prog
case $ac_prog in
# Accept absolute paths.
[\\/]* | ?:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
# Canonicalize the pathname of ld
ac_prog=`$ECHO "$ac_prog" | $SED 's%\\\\%/%g'`

echo ac_prog: $ac_prog
echo re_direlt: $re_direlt


and echoes returns :
ac_prog: /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld
/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: no input files
ac_prog:
re_direlt: /[^/][^/]*/\.\./

problem is in "sed" , this command nulls ac_prog !!!!

But when this command I paste into commandline, this works ....
echo "/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld" | sed 's%\\\\%/%g'

returns : /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld
......Any temporaly is not good It would be correct coded in master repository ...
Reply

Logout Mark Read Team Forum Stats Members Help
Opensuse specific problem - configure XBMC0