aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: natie compilation on a wdtv for a wdtv problems  (Read 3228 times)

realtebo

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 45
natie compilation on a wdtv for a wdtv problems
« 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 ?
« Last Edit: December 03, 2010, 04:30:47 PM by realtebo »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: natie compilation on a wdtv for a wdtv problems
« Reply #1 on: December 03, 2010, 08:59:55 PM »

I would symlink /bin/sh to /opt/bin/bash .
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: natie compilation on a wdtv for a wdtv problems
« Reply #2 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.
Logged
concordia cum veritate

lfroen

  • Guest
Re: natie compilation on a wdtv for a wdtv problems
« Reply #3 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.
Logged