DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-08-23 11:06:53

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

ppc toolchain invalid host type warning

When i try to compile using ppc toolchain, i get the following warning when running the ./configure command:

configure: warning: CC=/home/ubuntu/Desktop/powerpc-uclibc-toolchain/toolchain_powerpc/bin/powerpc-linux-uclibc-gcc: invalid host type

What is the problem, what can i do about it?

The result is the the program is compiled for my pc and not for the dsm-g600.

Last edited by n3rd (2008-08-23 11:07:39)

Offline

 

#2 2008-08-23 13:35:08

p.r.
Member
Registered: 2008-05-28
Posts: 9

Re: ppc toolchain invalid host type warning

1. "./configure" is not enough to start crosscompilation process.

You should type at least the following:
"
./configure \
--host=powerpc-linux-uclibc
"
2.  Maybe something wrong with environment or toolchains?

2.1 check .bash_profile, for example, it may look like this:
"
#! /bin/sh

PREFIX=/somewhere_on_the_disk

PATH=$PATH:${PREFIX}/bin

export CROSS_COMPILE=1

export CC="${PREFIX}/bin/powerpc-linux-uclibc-gcc"
export CXX="${PREFIX}/bin/powerpc-linux-uclibc-g++"
export AR="${PREFIX}/bin/powerpc-linux-uclibc-ar"
export AS="${PREFIX}/bin/powerpc-linux-uclibc-as"
export LD="${PREFIX}/bin/powerpc-linux-uclibc-ld"
export NM="${PREFIX}/bin/powerpc-linux-uclibc-nm"
export RANLIB="${PREFIX}/bin/powerpc-linux-uclibc-ranlib"
export STRIP="${PREFIX}/bin/powerpc-linux-uclibc-strip"
export CFLAGS="-Os -mcpu=603e -mtune=603e"
export CXXFLAGS="-Os -mcpu=603e -mtune=603e"
"
2.2 check toolchains:
powerpc-linux-uclibc-gcc -dumpspecs
powerpc-linux-uclibc-gcc -dumpmachine
powerpc-linux-uclibc-gcc -print-search-dirs

Offline

 

#3 2008-08-23 22:40:39

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: ppc toolchain invalid host type warning

p.r. thnx for your help.
I put the line

CC=/home/ubuntu/Desktop/powerpc-uclibc-toolchain/toolchain_powerpc/bin/powerpc-linux-uclibc-gcc

at the wrong place.
So obvious i'm new to all of this.

Offline

 

#4 2008-08-24 13:11:03

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: ppc toolchain invalid host type warning

A new question:
I have successfully compiled nzbget. Nzbget depends on libxml2, so i compiled that one first.
Now when i try to run the nzbget binary (on the dsm-g600) i get the following error message:

./nzbget: can't load library 'libxml2.so.2'

Does anyone know how to solve this?

Last edited by n3rd (2008-08-24 13:11:46)

Offline

 

#5 2008-08-24 13:49:33

p.r.
Member
Registered: 2008-05-28
Posts: 9

Re: ppc toolchain invalid host type warning

1st, please, read the "Prerequisites on POSIX" section at NZBGet home page http://nzbget.sourceforge.net/

2nd, download libxml2 source code from ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/ or from ftp://xmlsoft.org/libxml2/ and try to crosscompile libxml2 library.

Offline

 

#6 2008-08-24 14:06:40

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: ppc toolchain invalid host type warning

First of all, thnx for your reply.

Maybe i wasn't clear, but i already did crosscompile libxml2 otherwise nzbget would not compile.

So the problem starts when i try to run nzbget.

Obvious the problem is that i'm missing some files, as i said, i have compiled them. But i don't know where to place them on the dsm-g600 so nzbget will find them.

Offline

 

#7 2008-08-24 14:29:45

p.r.
Member
Registered: 2008-05-28
Posts: 9

Re: ppc toolchain invalid host type warning

Sorry.

You may put libxml2 library anywhere at  /mnt/HD_a2 and create symlink to  /lib.

For example, you may add to fun_plug the following:
ln -s /mnt/HD_a2/full_filename_of_libxml2_library /lib/libxml2.so.2
and reboot device.

I've written full_filename_of_libxml2_library because i don't known the subversion of libxml2, replace it with correct full filename of libxml2 library.

Offline

 

#8 2008-08-24 15:16:31

n3rd
Member
From: Netherlands
Registered: 2008-06-14
Posts: 16
Website

Re: ppc toolchain invalid host type warning

Thank you very much for your help!

nzbget working, even nzbgetweb is working!

If anybody is interested, let me know. I can zip the files.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB