TypeError-Fehler in mklibs.py

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
bellum
bbs-Maintainer
Beiträge: 282
Registriert: Montag 23. Oktober 2006, 22:13

TypeError-Fehler in mklibs.py

Beitrag von bellum »

Hallo zusammen,
bin mal wieder dabei ein aktuelles dbox Image zu bauen. Leider gibt es beim Build-Prozess einen Fehler:

Code: Alles auswählen

--root /home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2 \
`find /home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2/bin/ -path "*bin/?*" -type f` \
        `find /home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2/lib/ -name "libnss_*" -type f` \
        `find /home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2/lib/ -name "libsqlite3*" -type f` \
        `find /home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2/lib/ -name "*.so" -type f` \
        `find /home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2/sbin/ -path "*sbin/?*" -type f`
I: Using ld.so.1 as dynamic linker.
I: library reduction pass 1
959 symbols, 919 unresolved
Traceback (most recent call last):
  File "/home/bellum/tuxbox/tuxbox-cvs/hostapps/mklibs/mklibs.py", line 466, in ?
    if base_name == "libc" and "uClibc" not in ldlib:
TypeError: 'in <string>' requires character as left operand
make[1]: *** [/home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2/lib/ld.so.1] Error 1
make[1]: Leaving directory `/home/bellum/tuxbox/cvs/cvs_080516/cdk'
make: *** [/home/bellum/tuxbox/dbox2/cdkflash/root-neutrino-jffs2] Error 2
Kann jemand helfen?

Danke und Gruß
bellum
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: TypeError-Fehler in mklibs.py

Beitrag von rhabarber1848 »

Welche Python-Version hast Du? Welche Distro?
bellum
bbs-Maintainer
Beiträge: 282
Registriert: Montag 23. Oktober 2006, 22:13

Re: TypeError-Fehler in mklibs.py

Beitrag von bellum »

rhabarber1848 hat geschrieben:Welche Python-Version hast Du? Welche Distro?
Das ist eine Red Hat 9 mit Python 2.2.2-26...
Gruß bellum
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: TypeError-Fehler in mklibs.py

Beitrag von rhabarber1848 »

Die letzte Änderung ist vom Oktober 2008
http://cvs.tuxbox-cvs.sourceforge.net/c ... 2&view=log

Hast Du seitdem ein Image bauen können?
bellum
bbs-Maintainer
Beiträge: 282
Registriert: Montag 23. Oktober 2006, 22:13

Re: TypeError-Fehler in mklibs.py

Beitrag von bellum »

rhabarber1848 hat geschrieben:Die letzte Änderung ist vom Oktober 2008
http://cvs.tuxbox-cvs.sourceforge.net/c ... 2&view=log

Hast Du seitdem ein Image bauen können?
Mein letztes Image habe ich am 21.11.2008 erfolgreich gebaut, damals aber mit einem Debian etch...
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: TypeError-Fehler in mklibs.py

Beitrag von rhabarber1848 »

bellum hat geschrieben:Das ist eine Red Hat 9 mit Python 2.2.2-26...
http://en.wikipedia.org/wiki/Red_Hat_Linux
Red Hat Linux 9, the final release, hit its official end-of-life on 2004-04-30, although updates were published for it through 2006 by the Fedora Legacy project until that shut down in early 2007.
Nimm lieber was aktuelleres ;)
bellum
bbs-Maintainer
Beiträge: 282
Registriert: Montag 23. Oktober 2006, 22:13

Re: TypeError-Fehler in mklibs.py

Beitrag von bellum »

rhabarber1848 hat geschrieben:
bellum hat geschrieben:Das ist eine Red Hat 9 mit Python 2.2.2-26...
http://en.wikipedia.org/wiki/Red_Hat_Linux
Red Hat Linux 9, the final release, hit its official end-of-life on 2004-04-30, although updates were published for it through 2006 by the Fedora Legacy project until that shut down in early 2007.
Nimm lieber was aktuelleres ;)
Ich wusste, dass das früher oder später kommt...
Ich weis, dass diese Red Hat ziemlich alt ist, aber nur für die gibt es Virtual Server 2005 R2 SP1 VM Guest Additions bzw. kann ich diese mit meinen Linux-Kenntnissen einbinden...
Meinst Du mit Python 2.3.4-11 hätte ich mehr chancen, die wären von Fedora Core 3 von der ich Pakete genommen habe um die cdk Voraussetzungen zu erfüllen?
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: TypeError-Fehler in mklibs.py

Beitrag von rhabarber1848 »

bellum hat geschrieben:Meinst Du mit Python 2.3.4-11 hätte ich mehr chancen
Das weiß ich nicht, einen Versuch ist es aber wert.
bellum
bbs-Maintainer
Beiträge: 282
Registriert: Montag 23. Oktober 2006, 22:13

Re: TypeError-Fehler in mklibs.py

Beitrag von bellum »

rhabarber1848 hat geschrieben:
bellum hat geschrieben:Meinst Du mit Python 2.3.4-11 hätte ich mehr chancen
Das weiß ich nicht, einen Versuch ist es aber wert.
... mit Python 2.3.4-11 läuft es nun durch. :D
Danke und sorry for the confusion...

bellum
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: TypeError-Fehler in mklibs.py

Beitrag von rhabarber1848 »

Könntest Du mit der alten Python-Version nochmal probieren,
indem Du diesen Patch rückgängig machst?
http://cvs.tuxbox-cvs.sourceforge.net/c ... 1.1&r2=1.2

Ich hatte diesen Patch am Beginn meiner uClibc-Arbeiten
eingebaut, später aber für uClibc eine eigene mklibs.py
erstellt. Daher ist der Patch dort nicht mehr nötig, hat
aber bisher auch nicht gestört.

Norway 12 points ;)
bellum
bbs-Maintainer
Beiträge: 282
Registriert: Montag 23. Oktober 2006, 22:13

Re: TypeError-Fehler in mklibs.py

Beitrag von bellum »

rhabarber1848 hat geschrieben:Könntest Du mit der alten Python-Version nochmal probieren,
indem Du diesen Patch rückgängig machst?
http://cvs.tuxbox-cvs.sourceforge.net/c ... 1.1&r2=1.2

Ich hatte diesen Patch am Beginn meiner uClibc-Arbeiten
eingebaut, später aber für uClibc eine eigene mklibs.py
erstellt. Daher ist der Patch dort nicht mehr nötig, hat
aber bisher auch nicht gestört.
Mit der mklibs.py 1.1 läufts auch mit der älteren Python 2.2.2-26 durch...

Gruß bellum
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: TypeError-Fehler in mklibs.py

Beitrag von rhabarber1848 »

bellum hat geschrieben:Mit der mklibs.py 1.1 läufts auch mit der älteren Python 2.2.2-26 durch...
Ich habe den Patch rückgängig gemacht:
http://article.gmane.org/gmane.comp.vid ... ox.scm/527