aMule Forum

English => Compilation problems => Topic started by: realtebo on December 03, 2010, 04:19:37 PM

Title: natie compilation on a wdtv for a wdtv problems
Post by: realtebo on December 03, 2010, 04:19:37 PM
I installed optware-devel package with gcc, make and all others needed tools

I downloaded latest svn tarball and decompressed into a /opt/realtebo/amule....  dir

when i executed
./configure

it said to me
input line too long

what is it ?!

Simple: edit configure  and config-sub and modify first line to #!/opt/bin/bash

But there is another problem
It tell me:

# ./configure
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: error: cannot run /bin/sh ./config.sub

but into config.sub file there are no reference to /bin/sh !!!

What's the problem ?
Title: Re: natie compilation on a wdtv for a wdtv problems
Post by: Stu Redman on December 03, 2010, 08:59:55 PM
I would symlink /bin/sh to /opt/bin/bash .
Title: Re: natie compilation on a wdtv for a wdtv problems
Post by: GonoszTopi on December 04, 2010, 02:00:29 PM
Simple: edit configure  and config-sub and modify first line to #!/opt/bin/bash

But there is another problem
[...]
configure: error: cannot run /bin/sh ./config.sub

but into config.sub file there are no reference to /bin/sh !!!

What's the problem ?
Configure tries to run external shell scripts by invoking the interpreter in $SHELL. I assume it is set to /bin/sh in your case. Stu's suggestion would work if you have root access to the system, at least unless /bin/sh is needed for the proper operation of your system.
Setting $SHELL to /opt/bin/bash before invoking configure should work in any case.
Title: Re: natie compilation on a wdtv for a wdtv problems
Post by: lfroen on December 04, 2010, 06:29:15 PM
Compiling directly on target is not the best idea. You should setup cross-compiling environment on your PC.