aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule compilation crash - help needed  (Read 8347 times)

silelis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
aMule compilation crash - help needed
« on: February 09, 2009, 10:21:43 AM »

Hello,

I'm trying to compile aMule on Dreambox DM8000 satelite tuner.
It's based on Debia mipsel linux.

Becouse I on this machine it's only possibility to manage amule with WebInterface I buit it with command:
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --build=mipsel

It gives me answer with error which I can not manage:
Code: [Select]
onolithic --enable-amule-daemon --build=mipselcmd --enable-webserver --disable-m
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... mipsel-unknown-elf
checking host system type... mipsel-unknown-elf
checking if this is a FreeBSD 4 or earlier system... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) mawk
checking for egrep... grep -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for zlib >= 1.1.4... yes (version 1.2.3)
checking sys/types.h usability... yes
checking sys/types.h presence... yes
checking for sys/types.h... yes
checking for a POSIX compliant regex library... yes
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.15beta5)
checking for File::Copy... ok
checking whether we need the GUI... no
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... no
configure: error:
    The requested wxWidgets build couldn't be found.

    The configuration you asked for aMule requires a wxWidgets
    build with the following settings:
        --unicode=yes
    but such build is not available.

    To see the wxWidgets builds available on this system, please use
    'wx-config --list' command. To use the default build, returned by
    'wx-config --selected-config', use the options with their 'auto'
    default values.

    If you still get this error, then check that 'wx-config' is
    in path, the directory where wxWidgets libraries are installed
    (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
    or equivalent variable and wxWidgets version is 2.8.0 or above.

 ls -l /usr/bin/wx* output:
Code: [Select]
lrwxrwxrwx 1 root root   27 Feb  9 09:01 /usr/bin/wx-config -> /etc/alternatives/wx-config
-rwxr-xr-x 1 root root 4872 Feb  9 10:04 /usr/bin/wxbase-2.4-config

ls -l /usr/local/bin/wx* output:
Code: [Select]
ls: /usr/local/bin/wx*: No such file or directory

Can someone help me with this error?

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule compilation crash - help needed
« Reply #1 on: February 09, 2009, 10:24:25 AM »

Hello Silelis,

Quote
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... no
Quote
-rwxr-xr-x 1 root root 4872 Feb  9 10:04 /usr/bin/wxbase-2.4-config

Please build wxWidgets 2.8.9 first, the old 2.4 version is not supported by aMule.
Logged

silelis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule compilation crash - help needed
« Reply #2 on: February 09, 2009, 11:12:37 AM »

Now during wxWidgets 2.8.9 configuration:

./configure --prefix=/usr --with-gtk --enable-unicode --enable-optimise --disable-gui --build=mipsel && make

I've got another error
Code: [Select]
...
...
checking what is the type of the fifth argument of getsockopt... socklen_t
checking for gcc precompiled header bug... no
checking for ranlib... (cached) ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ar... (cached) ar
checking for strip... (cached) strip
checking for nm... nm
checking for command to install directories... /usr/bin/install -c -d
checking if make is GNU make... yes
configure: error: unknown system type mipsel-unknown-elf.

I'm begginer with Linux so sorry for those questions.

My /proc/cpuinfo is:
system type             : BCM97xxx Settop Platform
processor               : 0
cpu model               : Brcm4380 V4.2  FPU V0.1
cpu MHz                 : 403.45
BogoMIPS                : 403.45    ( udelay_val : 201728  HZ = 1000 )
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : no
ASEs implemented        :
VCED exceptions         : not available
VCEI exceptions         : not available
RAC setting             : Unknown
RAC Config Reg 0        : 01e07000
RAC Config Reg 1        : 00000000
RAC Addr Range Reg      : 00000000
BRCM Config-0 Reg       : e31e3406
BRCM Config-1 Reg       : 00000020
Core Base Reg           : 11f0000c
unaligned access        : 0
« Last Edit: February 09, 2009, 11:37:56 AM by silelis »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule compilation crash - help needed
« Reply #3 on: February 09, 2009, 12:46:14 PM »

Does it work with --host=mipsel instead of --build=mipsel? Is your cross-compile environment set up correctly, i.e. have compiled other packages already?
Logged

silelis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule compilation crash - help needed
« Reply #4 on: February 09, 2009, 01:17:47 PM »

./configure --prefix=/usr --with-gtk --enable-unicode --enable-optimise --disable-gui --host=mipsel && make

gives:
Code: [Select]
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2009-02-03, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-02-03

uname -m = 7400b0
uname -r = 2.6.12-5.1-brcmstb-dm8000
uname -s = Linux
uname -v = #1 Tue Feb 3 14:03:32 CET 2009

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              = 7400b0
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = 7400b0
UNAME_RELEASE = 2.6.12-5.1-brcmstb-dm8000
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 Tue Feb 3 14:03:32 CET 2009
configure: error: cannot guess build type; you must specify one

I changed config.guess and config.sub with this files:
 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

command:
./configure --prefix=/usr --with-gtk --enable-unicode --enable-optimise --disable-gui --build=mipsel && make
Nothing changed the same error.

I don't use Crosscompiler Debian is instaled directly on Dreambox DM8000 (the machine).
I made some other things in past with good score.

Any other ideas?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule compilation crash - help needed
« Reply #5 on: February 09, 2009, 01:24:37 PM »

Does it work without the build option? It should not be necessary unless you cross-compile.

I'm by no means an expert, but in my experience it will look for /usr/mipsel-.../include (and so on) for includes and libraries if you specify the build type. It should use /usr/include (and so on) if you specify nothing.
Logged

silelis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule compilation crash - help needed
« Reply #6 on: February 09, 2009, 02:01:53 PM »

Without build it won't work.

As I understand wxWidget is for display on screen?
Is there possibility to don't use it during compilation.
I need amulecmd amuledeamon and amule-webinterface.
I want to communicate with amule by webinterface?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule compilation crash - help needed
« Reply #7 on: February 09, 2009, 02:15:19 PM »

No, wxWidgets (wxBase) is among other things for networking, file system access and string handling and absolutely required.

You might try cross-compiling or ask in the wxWidgets or debian mipsel mailing lists.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule compilation crash - help needed
« Reply #8 on: February 09, 2009, 11:08:12 PM »

I'd guess --build and --host are for crosscompiling only. You are compiling right on your dreambox ? Then that should not be necessary. Of course, --with-gtk is wrong.
I have built wx and aMule for mipsel before, but using a cross compiler (which is supposed to be more difficult).
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

silelis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: aMule compilation crash - help needed
« Reply #9 on: February 12, 2009, 08:59:19 AM »

Exactly .
As I said I'm begginer in Linux and Linux dev so I tried the easiest way I found.
I think my skills are to small to build Dreambox Enigma2 toolchain on PC Linux.

But I suppose that may be some error in cobe, becouse yesterday I compiled the newest wget 1.11.4 version to mipsel ant everything fallow by the path.
Logged

silelis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: error while loading shared libraries
« Reply #10 on: February 12, 2009, 12:36:06 PM »

Finally I received answer.

"--build=mipsel-linux" solve my problem.
I'm after configuration.
Now I'll "make" compilation.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule compilation crash - help needed
« Reply #11 on: February 12, 2009, 01:01:44 PM »

Interesting, thanks for informing us about your progress!
Logged