CDK creation error

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
Federico Munerotto
Neugieriger
Neugieriger
Beiträge: 4
Registriert: Samstag 2. April 2005, 23:17

CDK creation error

Beitrag von Federico Munerotto »

I was creating the CDK.

I followed the README and as "make all" reported an error I write here (as in the READNE)

make -C nss others
make[3]: Entering directory `/home/mune/work/tuxbox/cdk/glibc-2.3.2/nss'
powerpc-tuxbox-linux-gnu-gcc getent.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g3 -gdwarf-2 -mcpu=823 -meabi -mmultiple -mstring -pipe -Wa,-mppc -mpowerpc -msoft-float -mnew-mnemonics -I../include -I. -I/home/mune/work/tuxbox/cdk/build_glibc/nss -I.. -I../libio -I/home/mune/work/tuxbox/cdk/build_glibc -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/soft-fp -I../sysdeps/powerpc/nofpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /home/mune/dbox2/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/include -isystem /home/mune/work/tuxbox/cdk/linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1 -o /home/mune/work/tuxbox/cdk/build_glibc/nss/getent.o
getent.c: In function `hosts_keys':
getent.c:234: warning: inlining failed in call to `print_hosts'
getent.c:266: warning: called from here
getent.c:234: warning: inlining failed in call to `print_hosts'
getent.c:293: warning: called from here
getent.c: In function `shadow_keys':
getent.c:629: warning: inlining failed in call to `print_shadow'
getent.c:664: warning: called from here
getent.c:629: warning: inlining failed in call to `print_shadow'
getent.c:678: warning: called from here
getent.c: In function `main':
getent.c:728: warning: inlining failed in call to `build_doc'
getent.c:783: warning: called from here
powerpc-tuxbox-linux-gnu-gcc -nostdlib -nostartfiles -o /home/mune/work/tuxbox/cdk/build_glibc/nss/getent -msoft-float -Wl,-dynamic-linker=/lib/ld.so.1 -Wl,-z,combreloc /home/mune/work/tuxbox/cdk/build_glibc/csu/crt1.o /home/mune/work/tuxbox/cdk/build_glibc/csu/crti.o `powerpc-tuxbox-linux-gnu-gcc --print-file-name=crtbegin.o` /home/mune/work/tuxbox/cdk/build_glibc/nss/getent.o -Wl,-rpath-link=/home/mune/work/tuxbox/cdk/build_glibc:/home/mune/work/tuxbox/cdk/build_glibc/math:/home/mune/work/tuxbox/cdk/build_glibc/elf:/home/mune/work/tuxbox/cdk/build_glibc/dlfcn:/home/mune/work/tuxbox/cdk/build_glibc/nss:/home/mune/work/tuxbox/cdk/build_glibc/nis:/home/mune/work/tuxbox/cdk/build_glibc/rt:/home/mune/work/tuxbox/cdk/build_glibc/resolv:/home/mune/work/tuxbox/cdk/build_glibc/crypt:/home/mune/work/tuxbox/cdk/build_glibc/linuxthreads /home/mune/work/tuxbox/cdk/build_glibc/libc.so.6 /home/mune/work/tuxbox/cdk/build_glibc/libc_nonshared.a -lgcc `powerpc-tuxbox-linux-gnu-gcc --print-file-name=crtend.o` /home/mune/work/tuxbox/cdk/build_glibc/csu/crtn.o
/home/mune/work/tuxbox/cdk/build_glibc/nss/getent.o(.text+0x6ec): In function `hosts_keys':
/home/mune/work/tuxbox/cdk/glibc-2.3.2/nss/getent.c:279: undefined reference to `gethostbyaddr'
/home/mune/work/tuxbox/cdk/build_glibc/nss/getent.o(.text+0x74c):/home/mune/work/tuxbox/cdk/glibc-2.3.2/nss/getent.c:287: undefined reference to `gethostbyname2'
/home/mune/work/tuxbox/cdk/build_glibc/nss/getent.o(.text+0x764):/home/mune/work/tuxbox/cdk/glibc-2.3.2/nss/getent.c:288: undefined reference to `gethostbyname2'
/home/mune/work/tuxbox/cdk/build_glibc/nss/getent.o(.text+0x980): In function `networks_keys':
/home/mune/work/tuxbox/cdk/glibc-2.3.2/nss/getent.c:372: undefined reference to `getnetbyaddr'
/home/mune/work/tuxbox/cdk/build_glibc/nss/getent.o(.text+0xabc):/home/mune/work/tuxbox/cdk/glibc-2.3.2/nss/getent.c:374: undefined reference to `getnetbyname'
collect2: ld returned 1 exit status
make[3]: *** [/home/mune/work/tuxbox/cdk/build_glibc/nss/getent] Error 1
make[3]: Leaving directory `/home/mune/work/tuxbox/cdk/glibc-2.3.2/nss'
make[2]: *** [nss/others] Error 2
make[2]: Leaving directory `/home/mune/work/tuxbox/cdk/glibc-2.3.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mune/work/tuxbox/cdk/build_glibc'
make: *** [.deps/glibc] Error 2

Bye
Lefhark
Neugieriger
Neugieriger
Beiträge: 10
Registriert: Sonntag 3. April 2005, 01:18

Beitrag von Lefhark »

Did you run toolchecker yet? It can be found at
/tuxbox-cvs/hostapps/toolchecker
If "tuxbox-cvs" is the folder you downloaded the CVS to, that is.
Just go to the folder using your terminal program and run
./toolchecker.sh
from there

If no version number or a number thats too old shows up, you know what to do.
Hope this will help.

-Lef
Federico Munerotto
Neugieriger
Neugieriger
Beiträge: 4
Registriert: Samstag 2. April 2005, 23:17

Beitrag von Federico Munerotto »

Thanks, I got forward a little but the compilaton stopped again:
make[1]: Entering directory `/home/mune/work/tuxbox/cdk/libdvb-0.5.5'
make -C libdvb main
make[2]: Entering directory `/home/mune/work/tuxbox/cdk/libdvb-0.5.5/libdvb'
powerpc-tuxbox-linux-gnu-g++ -I. -I../include -I../../include -mcpu=823 -mmultiple -mstring -meabi -pipe -O2 -g3 -gdwarf-2 -Ino/dvb/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c devices.cc
In file included from devices.cc:1:
../include/devices.hh:14:32: linux/dvb/frontend.h: No such file or directory
In file included from devices.cc:1:
../include/devices.hh:48: error: 'fe_spectral_inversion_t' is used as a type,
but is not defined as a type.
devices.cc:2:32: linux/dvb/frontend.h: No such file or directory
devices.cc:10: error: syntax error before `[' token
devices.cc: In function `std:::empty:& operator<<(std:::empty:&, Transponder&)
':
devices.cc:125: error: `FE_QPSK' undeclared (first use this function)
devices.cc:125: error: (Each undeclared identifier is reported only once for
each function it appears in.)
devices.cc:127: error: `FE_QAM' undeclared (first use this function)
devices.cc:135: error: `FE_OFDM' undeclared (first use this function)
devices.cc:144: error: 'class Transponder' has no member named 'inversion'
devices.cc:145: error: `INVERSION_OFF' undeclared (first use this function)
devices.cc:148: error: `INVERSION_ON' undeclared (first use this function)
devices.cc:151: error: `INVERSION_AUTO' undeclared (first use this function)
devices.cc: In function `std::istream& operator>>(std::istream&, Transponder&)
':
devices.cc:300: error: `FEC_AUTO' undeclared (first use this function)
devices.cc:301: error: 'class Transponder' has no member named 'inversion'
devices.cc:406: error: 'class Transponder' has no member named 'inversion'
devices.cc:406: error: `invset' undeclared (first use this function)
make[2]: *** [devices.o] Error 1
make[2]: Leaving directory `/home/mune/work/tuxbox/cdk/libdvb-0.5.5/libdvb'
make[1]: *** [libdvb/libdvb.a] Error 2
make[1]: Leaving directory `/home/mune/work/tuxbox/cdk/libdvb-0.5.5'
make: *** [.deps/libdvb] Error 2
What could be this time?
Federico Munerotto
Neugieriger
Neugieriger
Beiträge: 4
Registriert: Samstag 2. April 2005, 23:17

CDK hot to

Beitrag von Federico Munerotto »

FINALLY!!!

I restarted it from scratch with the new hint. I did the CDK.

But norw? During the compilation I looked around for a CDK how-to (or similar) , but I didn't find any in english, only very few in german (that I don't understand).

Do you have any place to suggest?

Thaks
Lefhark
Neugieriger
Neugieriger
Beiträge: 10
Registriert: Sonntag 3. April 2005, 01:18

Beitrag von Lefhark »

Did a quick translation of the HOWTO i found:

1. Create a directory for your CVS:
mkdir $HOME/tuxbox-cvs

2. Download the CVS:
cd $HOME/tuxbox-cvs
set CVS_RSH=ssh && cvs -d anoncvs@cvs.tuxbox-cvs.sourceforge.net:/cvs/tuxbox -z3 co -PA .

3. Check if you got all the tools installed you will need
less $HOME/tuxbox-cvs/cdk/doc/INSTALL.en
You will also need mkcramfs, mksquashfs and fakeroot. The first two can be downloaded at http://www.yadi.org

4. Create the destination folder:
mkdir ~/dbox2

5. Change into the tuxbox-cvs/cdk folder:
cd $HOME/tuxbox-cvs/cdk

6. Start autogen:
./autogen.sh

7. Start the configure script:
./configure --prefix=$HOME/dbox2 --with-cvsdir=$HOME/tuxbox-cvs --enable-maintainer-mode --disable-libcrypto --with-targetruleset=flash
Important: Check if there are really no errors showing up at this point, telling you that files/packages are missing (mklibs warnings can be ignored)

8.Compile your image:
(To create a cramfs-image instead of a squashfs-image as shown in this example, simply replace "squashfs" with "cramfs" )
the following command will auto create all possible image versions as there are enigma and neutrino in 1x and 2x flavour:
make flash-squashfsimages

or 8-1.if you want to create an enigma image only, use:
make flash-squashfsenigmaimages

or 8-2. This command will create the neutrino image of course and only the neutrino:
make flash-squashfsneutrinoimages

or 8-3 Want root to be squashfs? Use this:
make flash-squashfs
will prepare enigma and neutrino for image creation.

or 8-4 neutrino root? use this:
make $HOME/dbox2/cdkflash/root-squashfs-neutrino.img
(for enigma likewise. just replace "neutrino" with "enigma")

or 8.5. To create a neutrino-squashfs-image with your own changes (did i hear "emu"?), these are your steps:
make $HOME/dbox2/cdkflash/.flash-roneutrinoroot
- Now is the time to add your changes (did i hear "emu"?) to cdkflash/root
make flash-squashfsroot
- The root-squashfs.img you just created can now be found at /home/user/dbox2/cdkflash
- Rename the image to root-squashfs-neutrino.img
make flash-squashfsneutrinoimages

9. After successful compilation completion, the flashable images can now be found at $HOME/dbox2/cdkflash (cramfsjffs2*.img and squashfsjffs2*.img)
Use your favourite flash tool to up them to your box or use the internal flashtool the dbox2 provides you with.

I hope things are clearer to you now.

-Lef
Federico Munerotto
Neugieriger
Neugieriger
Beiträge: 4
Registriert: Samstag 2. April 2005, 23:17

Thanks

Beitrag von Federico Munerotto »

Thanks a lot|
mogway
Semiprofi
Semiprofi
Beiträge: 1287
Registriert: Montag 30. Dezember 2002, 08:02

Beitrag von mogway »

I just put it into our (most german) wiki.

http://wiki.tuxbox-cvs.sourceforge.net/Image_creation

Feel free to add the missing to complete this translation.

cu
Mogway