Failing to bild the cdk

The forum for our foreign guests... Please post in English
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Failing to bild the cdk

Beitrag von Sparkle »

I am trying (hard) to compile the cdk but I run into problems everytime. So I thougt that I should start over from scratch and take the problems one by one.

My first problem is when I have a fresh tuxbox-cvs sandbox and I run the ./autogen.sh shellscript. autogen.sh throws a lot of ugly warnings and stops complaining about INSTALL and COPYING. It will not continue until I touch the INSTALL/COPYING files.

This is the output from autogen.sh

Code: Alles auswählen

cdk$ ./autogen.sh
Generating configuration files for tuxbox-cdk, please wait....
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/gpgme.m4:9: warning: underquoted definition of AM_PATH_GPGME
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
configure.ac:13: installing `./config.guess'
configure.ac:13: installing `./config.sub'
Makefile.am: required file `./INSTALL' not found
Makefile.am: required file `./COPYING' not found
autoreconf: automake failed with exit status: 1
cdk$
Does anybody recognize this?
Npq
Senior Member
Beiträge: 1339
Registriert: Donnerstag 24. April 2003, 12:12

Beitrag von Npq »

No, weird, autoreconf is supposed to symlink these to the generic versions.

Are you sure you have the required versions of all tools?
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

Yes, I think i have.

Snippet from INSTALL.en plus whats installed on my system.

Code: Alles auswählen

 - cvs                           Concurrent Versions System (CVS) 1.11.17 (client/server)
 - autoconf >= 2.57a             autoconf (GNU Autoconf) 2.59
 - automake >= 1.7               automake (GNU automake) 1.9.4
 - libtool >= 1.4.2              ltmain.sh (GNU libtool) 1.5.10 (1.1220.2.130 2004/09/19 12:13:49)
 - gettext >= 0.12.1             gettext (GNU gettext-runtime) 0.14.1
 - make >= 3.79                  GNU Make 3.80
 - makeinfo (texinfo)            makeinfo (GNU texinfo) 4.7
 - tar
 - bunzip2 (bzip2)
 - gunzip (gzip)
 - patch
 - infocmp (ncurses-bin / ncurses-devel)
 - gcc 2.95 or >= 3.0            gcc (GCC) 3.3.4 (CRUX)
 - g++ 2.95 or >= 3.0            g++ (GCC) 3.3.4 (CRUX)
 - flex                          flex version 2.5.4
 - bison                         bison (GNU Bison) 1.875
 - pkg-config                    0.15.0
 - wget
 - libpng2 or libpng3 (DirectFB) /usr/lib/libpng.a -> libpng12.a
                                 /usr/lib/libpng.so -> libpng.so.3
                                 /usr/lib/libpng.so.3 -> libpng.so.3.1.2.8
                                 /usr/lib/libpng.so.3.1.2.8
                                 /usr/lib/libpng12.a
                                 /usr/lib/libpng12.so -> libpng12.so.0
                                 /usr/lib/libpng12.so.0 -> libpng12.so.0.1.2.8
                                 /usr/lib/libpng12.so.0.1.2.8

doc
Contributor
Beiträge: 1623
Registriert: Donnerstag 10. Januar 2002, 20:03

Beitrag von doc »

Just use the checkertool you can download here
If the Link not work go to http://tuxbox-images.mine.nu/dietmarw/html/ -> on some of the Links there -> Allgemeine_Tools_und_Ent-Packer -> Tool_Checker.zip
and post the output of this script here :wink:
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

Great. Here comes the output:

Code: Alles auswählen

tuxbox-cvs$ cat check.log
automake >=1.7       :1.9.4
autoconf >=2.57a     :2.59
cvs                  :1.11.17
libtool >=1.4.2      :1.5.10
make >=3.79          :3.80
gettext >=0.12.1     :0.14.1
makeinfo (texinfo)   :4.7
tar                  :1.15.1
bunzip2              :1.0.2
gunzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H ASMV
gunzip               :
patch                :2.5.4
infocmp              :5.4.20040208
gcc >=3.0            :3.3.4
g++ >=3.0            :3.3.4
yacc                 :yacc installiert
bison                :1.875
flex                 :2.5.4
pkg-config           :0.15.0
./check.sh: line 1: fakeroot: command not found
fakeroot             :

Versionscheck erfolgreich
aber nur der root kann images erzeugen
tuxbox-cvs$
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

I have now installed fakeroot and got this (better:) output. My very broken german tells me that this should do. Tru?

Code: Alles auswählen

tuxbox-cvs$ cat check.log
automake >=1.7       :1.9.4
autoconf >=2.57a     :2.59
cvs                  :1.11.17
libtool >=1.4.2      :1.5.10
make >=3.79          :3.80
gettext >=0.12.1     :0.14.1
makeinfo (texinfo)   :4.7
tar                  :1.15.1
bunzip2              :1.0.2
gunzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H ASMV
gunzip               :
patch                :2.5.4
infocmp              :5.4.20040208
gcc >=3.0            :3.3.4
g++ >=3.0            :3.3.4
yacc                 :yacc installiert
bison                :1.875
flex                 :2.5.4
pkg-config           :0.15.0
fakeroot             :fakeroot version 1.2.2

Versionscheck erfolgreich
tuxbox-cvs$
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

Nope. No change. Slightly different output. But the result is the same. Crashes on INSTALL and COPYING

Code: Alles auswählen

cdk$ ./autogen.sh
Generating configuration files for tuxbox-cdk, please wait....
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/gpgme.m4:9: warning: underquoted definition of AM_PATH_GPGME
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
configure.ac:13: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:13: the top level
Makefile.am: required file `./INSTALL' not found
Makefile.am: required file `./COPYING' not found
autoreconf: automake failed with exit status: 1
cdk$ 
Npq
Senior Member
Beiträge: 1339
Registriert: Donnerstag 24. April 2003, 12:12

Beitrag von Npq »

I never had anything like that and also have trouble understanding why it fails when the bootstrap-script explicitly tells autoreconf to install missing files as a symlink.

I guess you have to play with the debug options of the autotools a bit.
(start with "autoreconf -f -i -s -v")

Good luck. ;)
doc
Contributor
Beiträge: 1623
Registriert: Donnerstag 10. Januar 2002, 20:03

Beitrag von doc »

i had serval time ago similarly problems

after long search i have seen that somthing in /usr/share/aclocal-x ... /usr/share/automake-x was wrong

maybe you have the same problem? :gruebel:
Na schönen Dank Herr Schwanke!
Ein toller Sommer! :-(
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

My knowledge about aclocal, automake, autoconf and m4 macros is fairly limited. This is what I have installed...

Code: Alles auswählen

tuxbox-cvs$ ll -d /usr/share/aclocal* /usr/share/auto*
drwxr-xr-x  2 root root 1520 Jan 12 20:09 /usr/share/aclocal
drwxr-xr-x  2 root root  992 Jan 12 20:02 /usr/share/aclocal-1.9
drwxr-xr-x  7 root root  224 Jan 12 20:01 /usr/share/autoconf
drwxr-xr-x  4 root root  568 Jan 12 20:02 /usr/share/automake-1.9
drwxr-xr-x  2 root root  512 Dec 23 10:56 /usr/share/autostart
tuxbox-cvs$
...and the version of m4 is...

Code: Alles auswählen

root@alice# pkginfo -i | grep m4
m4 1.4.2-1
root@alice#
doc
Contributor
Beiträge: 1623
Registriert: Donnerstag 10. Januar 2002, 20:03

Beitrag von doc »

mhh I dont now what distri you use but here on my debian system it looks like this:

Code: Alles auswählen

doc@p1700:/$ ls -la -R /usr/share/automake-1.7/
/usr/share/automake-1.7/:
insgesamt 388
drwxr-xr-x    4 root root    648 2004-04-22 03:20 .
drwxr-xr-x  233 root root   6272 2005-01-02 18:37 ..
-rwxr-xr-x    1 root root   1622 2004-04-21 05:52 acinstall
drwxr-xr-x    2 root root   1168 2004-04-22 03:20 am
-rw-r--r--    1 root root   1529 2004-04-21 05:52 ansi2knr.1
-rw-r--r--    1 root root  20265 2004-04-21 05:52 ansi2knr.c
drwxr-xr-x    2 root root    168 2004-04-22 03:20 Automake
-rwxr-xr-x    1 root root   3057 2004-04-21 05:52 compile
lrwxrwxrwx    1 root root     20 2004-12-21 21:35 config.guess -> ../misc/config.guess
-rwxr-xr-x    1 root root  24711 2004-04-21 05:52 config-ml.in
lrwxrwxrwx    1 root root     18 2004-12-21 21:35 config.sub -> ../misc/config.sub
-rw-r--r--    1 root root  17992 2004-04-21 05:52 COPYING
-rwxr-xr-x    1 root root  13866 2004-04-21 05:52 depcomp
-rwxr-xr-x    1 root root   2094 2004-04-21 05:52 elisp-comp
-rw-r--r--    1 root root   9240 2004-04-21 05:52 INSTALL
-rwxr-xr-x    1 root root   7122 2004-04-21 05:52 install-sh
-rwxr-xr-x    1 root root   4184 2004-04-21 05:52 mdate-sh
-rwxr-xr-x    1 root root  10266 2004-04-21 05:52 missing
-rwxr-xr-x    1 root root   1988 2004-04-21 05:52 mkinstalldirs
-rwxr-xr-x    1 root root   2533 2004-04-21 05:52 py-compile
-rwxr-xr-x    1 root root   2261 2004-04-21 05:52 symlink-tree
-rw-r--r--    1 root root 221697 2004-04-21 05:52 texinfo.tex
-rwxr-xr-x    1 root root   4573 2004-04-21 05:52 ylwrap

/usr/share/automake-1.7/am:
insgesamt 182
drwxr-xr-x  2 root root  1168 2004-04-22 03:20 .
drwxr-xr-x  4 root root   648 2004-04-22 03:20 ..
-rw-r--r--  1 root root  2342 2004-04-21 05:52 ansi2knr.am
-rw-r--r--  1 root root  3222 2004-04-21 05:52 check.am
-rw-r--r--  1 root root  2283 2004-04-21 05:52 clean.am
-rw-r--r--  1 root root   904 2004-04-21 05:52 clean-hdr.am
-rw-r--r--  1 root root  1228 2004-04-21 05:52 compile.am
-rw-r--r--  1 root root  3830 2004-04-21 05:52 configure.am
-rw-r--r--  1 root root  2554 2004-04-21 05:52 data.am
-rw-r--r--  1 root root  4156 2004-04-21 05:52 dejagnu.am
-rw-r--r--  1 root root  4027 2004-04-21 05:52 depend2.am
-rw-r--r--  1 root root  1124 2004-04-21 05:52 depend.am
-rw-r--r--  1 root root 14160 2004-04-21 05:52 distdir.am
-rw-r--r--  1 root root   954 2004-04-21 05:52 footer.am
-rw-r--r--  1 root root   878 2004-04-21 05:52 header.am
-rw-r--r--  1 root root  2206 2004-04-21 05:52 header-vars.am
-rw-r--r--  1 root root  3061 2004-04-21 05:52 install.am
-rw-r--r--  1 root root  2500 2004-04-21 05:52 java.am
-rw-r--r--  1 root root  1259 2004-04-21 05:52 lang-compile.am
-rw-r--r--  1 root root  1229 2004-04-21 05:52 lex.am
-rw-r--r--  1 root root   997 2004-04-21 05:52 library.am
-rw-r--r--  1 root root  3235 2004-04-21 05:52 libs.am
-rw-r--r--  1 root root  1115 2004-04-21 05:52 libtool.am
-rw-r--r--  1 root root  3594 2004-04-21 05:52 lisp.am
-rw-r--r--  1 root root  3584 2004-04-21 05:52 ltlib.am
-rw-r--r--  1 root root   986 2004-04-21 05:52 ltlibrary.am
-rw-r--r--  1 root root  3539 2004-04-21 05:52 mans.am
-rw-r--r--  1 root root   937 2004-04-21 05:52 mans-vars.am
-rw-r--r--  1 root root  1979 2004-04-21 05:52 multilib.am
-rw-r--r--  1 root root  1296 2004-04-21 05:52 program.am
-rw-r--r--  1 root root  5279 2004-04-21 05:52 progs.am
-rw-r--r--  1 root root  2917 2004-04-21 05:52 python.am
-rw-r--r--  1 root root  1630 2004-04-21 05:52 remake-hdr.am
-rw-r--r--  1 root root  3950 2004-04-21 05:52 scripts.am
-rw-r--r--  1 root root  3917 2004-04-21 05:52 subdirs.am
-rw-r--r--  1 root root  4022 2004-04-21 05:52 tags.am
-rw-r--r--  1 root root  3387 2004-04-21 05:52 texibuild.am
-rw-r--r--  1 root root  8455 2004-04-21 05:52 texinfos.am
-rw-r--r--  1 root root  2498 2004-04-21 05:52 texi-vers.am
-rw-r--r--  1 root root  1874 2004-04-21 05:52 yacc.am

/usr/share/automake-1.7/Automake:
insgesamt 53
drwxr-xr-x  2 root root   168 2004-04-22 03:20 .
drwxr-xr-x  4 root root   648 2004-04-22 03:20 ..
-rw-r--r--  1 root root 14795 2004-04-21 05:52 Channels.pm
-rw-r--r--  1 root root  7507 2004-04-21 05:52 General.pm
-rw-r--r--  1 root root 19405 2004-04-21 05:52 Struct.pm
-rw-r--r--  1 root root  5221 2004-04-21 05:52 XFile.pm
doc@p1700:/$ ls -la -R /usr/share/autoconf/
/usr/share/autoconf/:
insgesamt 27
drwxr-xr-x    7 root root  224 2004-11-25 01:20 .
drwxr-xr-x  233 root root 6272 2005-01-02 18:37 ..
drwxr-xr-x    2 root root  592 2004-11-25 01:20 autoconf
drwxr-xr-x    2 root root  320 2004-11-25 01:20 Autom4te
-rw-r--r--    1 root root 6719 2004-11-24 00:19 autom4te.cfg
drwxr-xr-x    2 root root   80 2004-11-25 01:20 autoscan
drwxr-xr-x    2 root root  144 2004-11-25 01:20 autotest
-rw-r--r--    1 root root 9284 2004-11-24 00:19 INSTALL
drwxr-xr-x    2 root root  192 2004-11-25 01:20 m4sugar

/usr/share/autoconf/autoconf:
insgesamt 773
drwxr-xr-x  2 root root    592 2004-11-25 01:20 .
drwxr-xr-x  7 root root    224 2004-11-25 01:20 ..
-rw-r--r--  1 root root   4586 2004-11-24 00:19 autoconf.m4
-rw-r--r--  1 root root 334442 2004-11-24 00:19 autoconf.m4f
-rw-r--r--  1 root root   4079 2004-11-24 00:19 autoheader.m4
-rw-r--r--  1 root root   3354 2004-11-24 00:19 autoscan.m4
-rw-r--r--  1 root root   3919 2004-11-24 00:19 autotest.m4
-rw-r--r--  1 root root   4241 2004-11-24 00:19 autoupdate.m4
-rw-r--r--  1 root root  37084 2004-11-24 00:19 c.m4
-rw-r--r--  1 root root  42155 2004-11-24 00:19 fortran.m4
-rw-r--r--  1 root root  61618 2004-11-24 00:19 functions.m4
-rw-r--r--  1 root root  80935 2004-11-24 00:19 general.m4
-rw-r--r--  1 root root  26484 2004-11-24 00:19 headers.m4
-rw-r--r--  1 root root  20766 2004-11-24 00:19 lang.m4
-rw-r--r--  1 root root  17715 2004-11-24 00:19 libs.m4
-rw-r--r--  1 root root   5209 2004-11-24 00:19 oldnames.m4
-rw-r--r--  1 root root  16263 2004-11-24 00:19 programs.m4
-rw-r--r--  1 root root  14562 2004-11-24 00:19 specific.m4
-rw-r--r--  1 root root  52900 2004-11-24 00:19 status.m4
-rw-r--r--  1 root root  20879 2004-11-24 00:19 types.m4

/usr/share/autoconf/Autom4te:
insgesamt 96
drwxr-xr-x  2 root root   320 2004-11-25 01:20 .
drwxr-xr-x  7 root root   224 2004-11-25 01:20 ..
-rw-r--r--  1 root root  5189 2004-11-24 00:19 C4che.pm
-rw-r--r--  1 root root  9921 2004-11-24 00:19 ChannelDefs.pm
-rw-r--r--  1 root root 17430 2004-11-24 00:19 Channels.pm
-rw-r--r--  1 root root  2712 2004-11-24 00:19 Configure_ac.pm
-rw-r--r--  1 root root  6670 2004-11-24 00:19 FileUtils.pm
-rw-r--r--  1 root root  9178 2004-11-24 00:19 General.pm
-rw-r--r--  1 root root  2604 2004-11-24 00:19 Request.pm
-rw-r--r--  1 root root 19405 2004-11-24 00:19 Struct.pm
-rw-r--r--  1 root root  6976 2004-11-24 00:19 XFile.pm

/usr/share/autoconf/autoscan:
insgesamt 12
drwxr-xr-x  2 root root    80 2004-11-25 01:20 .
drwxr-xr-x  7 root root   224 2004-11-25 01:20 ..
-rw-r--r--  1 root root 10696 2004-11-24 00:19 autoscan.list

/usr/share/autoconf/autotest:
insgesamt 104
drwxr-xr-x  2 root root   144 2004-11-25 01:20 .
drwxr-xr-x  7 root root   224 2004-11-25 01:20 ..
-rw-r--r--  1 root root  2515 2004-11-24 00:19 autotest.m4
-rw-r--r--  1 root root 60136 2004-11-24 00:19 autotest.m4f
-rw-r--r--  1 root root 39915 2004-11-24 00:19 general.m4

/usr/share/autoconf/m4sugar:
insgesamt 144
drwxr-xr-x  2 root root   192 2004-11-25 01:20 .
drwxr-xr-x  7 root root   224 2004-11-25 01:20 ..
-rw-r--r--  1 root root 33749 2004-11-24 00:19 m4sh.m4
-rw-r--r--  1 root root 31687 2004-11-24 00:19 m4sh.m4f
-rw-r--r--  1 root root 53755 2004-11-24 00:19 m4sugar.m4
-rw-r--r--  1 root root 13034 2004-11-24 00:19 m4sugar.m4f
-rw-r--r--  1 root root   388 2004-11-24 00:19 version.m4

on my system with the error in this folders some files was missing
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

Maybe I should downgrade my automake to 1.7?
AlexXF
Beiträge: 2
Registriert: Dienstag 19. April 2005, 06:15

Beitrag von AlexXF »

You have to downgrade FLEX to 2.5.27 or 2.5.4a
Sparkle
Neugieriger
Neugieriger
Beiträge: 13
Registriert: Freitag 10. Dezember 2004, 00:00

Beitrag von Sparkle »

Yes

Code: Alles auswählen

bash-2.05b$ tuxbox-cvs.sh
Setting up environment
Using flex: flex version 2.5.4 in /usr/local/flex-old/bin/flex
tuxbox-cvs$