make procps (Fehler)

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
stdin
Interessierter
Interessierter
Beiträge: 93
Registriert: Freitag 15. Oktober 2004, 18:40

make procps (Fehler)

Beitrag von stdin »

hi,

mir ist unter newmake bei folgendem aufruf "make /home/stdin/dbox2/cdkflash/root-neutrino-jffs2" dieser fehler ein dorn im auge:

Code: Alles auswählen

find /home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib -maxdepth 1 -type f -o -type l | xargs rm -f
cp -d /home/stdin/dbox2/cdkroot/lib/libnss_dns-?.*.so /home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib
cp -d /home/stdin/dbox2/cdkroot/lib/libnss_files-?.*.so /home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib
cp -d /home/stdin/dbox2/cdkroot/lib/libproc-*.so /home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib
cp: Aufruf von stat für „/home/stdin/dbox2/cdkroot/lib/libproc-*.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make[1]: [/home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib/ld.so.1] Fehler 1 (ignoriert)
chmod +w /home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib/libproc-*.so
chmod: Zugriff auf „/home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib/libproc-*.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make[1]: [/home/stdin/dbox2/cdkflash/root-neutrino-jffs2/lib/ld.so.1] Fehler 1 (ignoriert)
irgenwas geht beim compilieren von procps daneben. folgendes dazu;

Code: Alles auswählen

( rm -rf procps-3.2.7 || /bin/true ) && gunzip -cd Archive/procps-3.2.7.tar.gz | TAPE=- tar -x && ( cd procps-3.2.7; patch -p1 < ../Patches/procps.diff )
patching file proc/escape.c
patching file ps/global.c
cd procps-3.2.7 && \
		AR=powerpc-tuxbox-linux-gnu-ar AS=powerpc-tuxbox-linux-gnu-as CC=powerpc-tuxbox-linux-gnu-gcc CXX=powerpc-tuxbox-linux-gnu-g++ NM=powerpc-tuxbox-linux-gnu-nm RANLIB=powerpc-tuxbox-linux-gnu-ranlib CFLAGS="-pipe -Os" CXXFLAGS="-pipe -Os" LDFLAGS="-Wl,-O1" PKG_CONFIG_PATH=/home/stdin/dbox2/cdkroot/lib/pkgconfig \
		make CFLAGS="-g -O2 -I/home/stdin/dbox2/cdkroot/include/ncurses -D__GNU_LIBRARY__" top ps/ps && \
		rm -rf /home/stdin/dbox2/cdkroot/bin/ps && /usr/bin/install -c -m755 top ps/ps /home/stdin/dbox2/cdkroot/bin && /usr/bin/install -c -m755 proc/libproc-3.2.7.so /home/stdin/dbox2/cdkroot/lib
make[1]: Entering directory `/home/stdin/tuxbox_cvs/cdk/procps-3.2.7'
powerpc-tuxbox-linux-gnu-gcc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -MM -MG proc/alloc.c proc/devname.c proc/escape.c proc/ksym.c proc/pwcache.c proc/readproc.c proc/sig.c proc/slab.c proc/sysinfo.c proc/version.c proc/whattime.c > proc/.depend
make[1]: Leaving directory `/home/stdin/tuxbox_cvs/cdk/procps-3.2.7'
make[1]: Entering directory `/home/stdin/tuxbox_cvs/cdk/procps-3.2.7'
powerpc-tuxbox-linux-gnu-gcc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -g -O2 -I/home/stdin/dbox2/cdkroot/include/ncurses -D__GNU_LIBRARY__      -c -o top.o top.c
In file included from top.c:28:
/usr/include/ncurses/curses.h:66:34: ncursesw/ncurses_dll.h: No such file or directory
/usr/include/ncurses/curses.h:141:29: ncursesw/unctrl.h: No such file or directory
In file included from top.c:28:
/usr/include/ncurses/curses.h:231: error: syntax error before "acs_map"
/usr/include/ncurses/curses.h:231: warning: type defaults to `int' in declaration of `acs_map'
/usr/include/ncurses/curses.h:231: warning: data definition has no type or storage class
In file included from top.c:28:
/usr/include/ncurses/curses.h:517: error: syntax error before "addch"
/usr/include/ncurses/curses.h:517: warning: type defaults to `int' in declaration of `addch'
/usr/include/ncurses/curses.h:517: warning: data definition has no type or storage class
/usr/include/ncurses/curses.h:518: error: syntax error before "addchnstr"
....
....
irgendwas am cvs faul od. hat sich nur bei mir ein fehler eingeschlichen?
make depsclean zuvor ausgeführt und sogar neu ausgecheckt.... immer das selbe :(
seife
Developer
Beiträge: 4189
Registriert: Sonntag 2. November 2003, 12:36

Re: make procps (Fehler)

Beitrag von seife »

Zuerst: der erste Fehler wird ja nicht ohne Grund ignoriert, er tritt halt auf, wenn procps nicht gebaut wurde, ist aber dann harmlos.

Zweitens: bei mir baut procps wunderbar. Bei dir sieht es so aus, als ob libncurses nicht gebaut worden wäre, aber das steht ja in den dependencies von procps drin:

Code: Alles auswählen

make/rootutils.mk:$(DEPDIR)/procps: bootstrap libncurses @DEPENDS_procps@
Insofern weiss ich nicht, warum das bei dir nicht der Fall zu sein scheint. Da du aber bisher der einzige bist, bei dem das Auftritt, vermute ich mal, dass es nicht am CVS liegt.
stdin
Interessierter
Interessierter
Beiträge: 93
Registriert: Freitag 15. Oktober 2004, 18:40

Re: make procps (Fehler)

Beitrag von stdin »

also make libncurses hatte ich schon zuvor probiert läuft anstandslos durch. muss ich evtl. nochmal ganz von vorn beginnen.
ich hasse solche fehler...
stdin
Interessierter
Interessierter
Beiträge: 93
Registriert: Freitag 15. Oktober 2004, 18:40

Re: make procps (Fehler)

Beitrag von stdin »

hmmm, irgendwas haut bei dem bau von libncurses nicht hin. vermutlich beginnt dort schon langsam der fehler.
werd mal weiter suchen ;)

Code: Alles auswählen

test -z "/home/stdin/dbox2/cdkroot" && /sbin/ldconfig
make[2]: [install.libs] Fehler 1 (ignoriert)
installing ../lib/libncurses.a as /home/stdin/dbox2/cdkroot/lib/libncurses.a
/usr/bin/install -c -m 644 ../lib/libncurses.a /home/stdin/dbox2/cdkroot/lib/libncurses.a
powerpc-tuxbox-linux-gnu-ranlib /home/stdin/dbox2/cdkroot/lib/libncurses.a
make[2]: Leaving directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/ncurses'
cd panel && make DESTDIR="/home/stdin/dbox2/cdkroot" install.libs
make[2]: Entering directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/panel'
installing ../lib/libpanel.so.5.3 as /home/stdin/dbox2/cdkroot/lib/libpanel.so.5.3
/usr/bin/install -c -m 644 ../lib/libpanel.so.5.3 /home/stdin/dbox2/cdkroot/lib/libpanel.so.5.3
cd /home/stdin/dbox2/cdkroot/lib && (rm -f libpanel.so.5; ln -s libpanel.so.5.3 libpanel.so.5; rm -f libpanel.so; ln -s libpanel.so.5 libpanel.so; )
test -z "/home/stdin/dbox2/cdkroot" && /sbin/ldconfig
make[2]: [install.libs] Fehler 1 (ignoriert)
installing ../lib/libpanel.a as /home/stdin/dbox2/cdkroot/lib/libpanel.a
/usr/bin/install -c -m 644 ../lib/libpanel.a /home/stdin/dbox2/cdkroot/lib/libpanel.a
powerpc-tuxbox-linux-gnu-ranlib /home/stdin/dbox2/cdkroot/lib/libpanel.a
installing ./panel.h in /home/stdin/dbox2/cdkroot/include/ncurses
make[2]: Leaving directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/panel'
cd menu && make DESTDIR="/home/stdin/dbox2/cdkroot" install.libs
make[2]: Entering directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/menu'
installing ../lib/libmenu.so.5.3 as /home/stdin/dbox2/cdkroot/lib/libmenu.so.5.3
/usr/bin/install -c -m 644 ../lib/libmenu.so.5.3 /home/stdin/dbox2/cdkroot/lib/libmenu.so.5.3
cd /home/stdin/dbox2/cdkroot/lib && (rm -f libmenu.so.5; ln -s libmenu.so.5.3 libmenu.so.5; rm -f libmenu.so; ln -s libmenu.so.5 libmenu.so; )
test -z "/home/stdin/dbox2/cdkroot" && /sbin/ldconfig
make[2]: [install.libs] Fehler 1 (ignoriert)
installing ../lib/libmenu.a as /home/stdin/dbox2/cdkroot/lib/libmenu.a
/usr/bin/install -c -m 644 ../lib/libmenu.a /home/stdin/dbox2/cdkroot/lib/libmenu.a
powerpc-tuxbox-linux-gnu-ranlib /home/stdin/dbox2/cdkroot/lib/libmenu.a
installing ./eti.h in /home/stdin/dbox2/cdkroot/include/ncurses
installing ./menu.h in /home/stdin/dbox2/cdkroot/include/ncurses
make[2]: Leaving directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/menu'
cd form && make DESTDIR="/home/stdin/dbox2/cdkroot" install.libs
make[2]: Entering directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/form'
installing ../lib/libform.so.5.3 as /home/stdin/dbox2/cdkroot/lib/libform.so.5.3
/usr/bin/install -c -m 644 ../lib/libform.so.5.3 /home/stdin/dbox2/cdkroot/lib/libform.so.5.3
cd /home/stdin/dbox2/cdkroot/lib && (rm -f libform.so.5; ln -s libform.so.5.3 libform.so.5; rm -f libform.so; ln -s libform.so.5 libform.so; )
test -z "/home/stdin/dbox2/cdkroot" && /sbin/ldconfig
make[2]: [install.libs] Fehler 1 (ignoriert)
installing ../lib/libform.a as /home/stdin/dbox2/cdkroot/lib/libform.a
/usr/bin/install -c -m 644 ../lib/libform.a /home/stdin/dbox2/cdkroot/lib/libform.a
powerpc-tuxbox-linux-gnu-ranlib /home/stdin/dbox2/cdkroot/lib/libform.a
installing ./form.h in /home/stdin/dbox2/cdkroot/include/ncurses
make[2]: Leaving directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/form'
cd test && make DESTDIR="/home/stdin/dbox2/cdkroot" install.libs
make[2]: Entering directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/test'
make[2]: Für das Ziel »install.libs« ist nichts zu tun.
make[2]: Leaving directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3/test'
make[1]: Leaving directory `/home/stdin/tuxbox_cvs/cdk/ncurses-5.3'
rm -rf ncurses-5.3
touch .deps/libncurses
mohousch
Einsteiger
Einsteiger
Beiträge: 362
Registriert: Mittwoch 14. Dezember 2005, 03:25

Re: make procps (Fehler)

Beitrag von mohousch »

Hi
touch .deps/libncurses
er baut die libncurses durch ohne Fehler, der Hund ist in dem procps make-file begraben der nutzt die CFLAGS includes wo die ncurses-headers aus dem ../cdkroot/include und der original procps make file nutzt noch die CPPFLAGS wo die ncurses Headers aus dem /usr/include des Hosts und wahrscheinlich findet er bei der ncurses Headers auf deinem Host nicht es hilft wenn Du in dem procps make file

Code: Alles auswählen

$(DEPDIR)/procps: bootstrap libncurses @DEPENDS_procps@
	@PREPARE_procps@
	cd @DIR_procps@ && \
		$(BUILDENV) \
		$(MAKE) CFLAGS="$(CFLAGS) -I$(targetprefix)/include/ncurses -D__GNU_LIBRARY__" top ps/ps && \
		@INSTALL_procps@
	@CLEANUP_procps@
	touch $@
in so aenderst

Code: Alles auswählen

$(DEPDIR)/procps: bootstrap libncurses @DEPENDS_procps@
	@PREPARE_procps@
	cd @DIR_procps@ && \
		$(BUILDENV) \
		$(MAKE) CPPFLAGS="$(CXXFLAGS) -I$(targetprefix)/include/ncurses -D__GNU_LIBRARY__" top ps/ps && \
		@INSTALL_procps@
	@CLEANUP_procps@
	touch $@
also aus dem CFLAGS CPPFLAGS machen...

diff dazu

Code: Alles auswählen

Index: rootutils.mk
===================================================================
RCS file: /cvs/tuxbox/cdk/make/Attic/rootutils.mk,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 rootutils.mk
--- a/rootutils.mk	28 Dec 2007 21:12:46 -0000	1.1.2.5
+++ b/rootutils.mk	21 Apr 2008 10:02:10 -0000
@@ -64,7 +64,7 @@ $(DEPDIR)/procps: bootstrap libncurses @
 	@PREPARE_procps@
 	cd @DIR_procps@ && \
 		$(BUILDENV) \
-		$(MAKE) CFLAGS="$(CFLAGS) -I$(targetprefix)/include/ncurses -D__GNU_LIBRARY__" top ps/ps && \
+		$(MAKE) CPPFLAGS="$(CXXFLAGS) -I$(targetprefix)/include/ncurses -D__GNU_LIBRARY__" top ps/ps && \
 		@INSTALL_procps@
 	@CLEANUP_procps@
 	touch $@