Fehler beim compilen mit NFS-Server

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
flasher
Developer
Beiträge: 467
Registriert: Dienstag 15. Juli 2003, 10:58

Fehler beim compilen mit NFS-Server

Beitrag von flasher »

Hi

Ich versuche gerade verzweifelt (newmake) ein YADD (make yadd-neutrino) mit NFS-Server zu bauen.

Code: Alles auswählen

( rm -rf portmap_5beta || /bin/true ) && gunzip -cd Archive/portmap_5beta.tar.gz | TAPE=- tar -x && ( cd portmap_5beta; patch -p1 < ../Patches/portmap-5.diff )
patching file Makefile
patching file portmap.c
cd portmap_5beta && \
                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="-mcpu=823 -pipe -Os" CXXFLAGS="-mcpu=823 -pipe -Os" LDFLAGS="-Wl,-O1" PKG_CONFIG_PATH=/home/frank/work/dbox2/cdkroot/lib/pkgconfig \
                make && \
                make install BASEDIR=/home/frank/work/dbox2/cdkroot
make[1]: Entering directory `/home/frank/work/tuxbox-cvs/cdk/portmap_5beta'
powerpc-tuxbox-linux-gnu-gcc  -Dperror=xperror  -DCHECK_PORT  -DFACILITY=LOG_DAEMON      -O    -c -o portmap.o portmap.c
portmap.c: In function `reg_service':
portmap.c:353: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type
portmap.c:362: warning: passing arg 2 of pointer to function from incompatible pointer type
portmap.c:362: warning: passing arg 3 of pointer to function from incompatible pointer type
portmap.c:404: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type
portmap.c:416: warning: passing arg 2 of pointer to function from incompatible pointer type
portmap.c:416: warning: passing arg 3 of pointer to function from incompatible pointer type
portmap.c:450: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type
portmap.c:462: warning: passing arg 2 of pointer to function from incompatible pointer type
portmap.c:462: warning: passing arg 3 of pointer to function from incompatible pointer type
portmap.c:477: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type
portmap.c:489: warning: passing arg 2 of pointer to function from incompatible pointer type
portmap.c:501: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type
portmap.c: In function `callit':
portmap.c:648: warning: passing arg 2 of pointer to function from incompatible pointer type
portmap.c:648: warning: passing arg 3 of pointer to function from incompatible pointer type
portmap.c:677: warning: passing arg 3 of pointer to function from incompatible pointer type
portmap.c:677: warning: passing arg 4 of pointer to function from incompatible pointer type
portmap.c:677: warning: passing arg 5 of pointer to function from incompatible pointer type
portmap.c:677: warning: passing arg 6 of pointer to function from incompatible pointer type
portmap.c:679: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type
powerpc-tuxbox-linux-gnu-gcc  -Dperror=xperror  -DCHECK_PORT  -DFACILITY=LOG_DAEMON      -O    -c -o pmap_check.o pmap_check.c
powerpc-tuxbox-linux-gnu-gcc  -Dperror=xperror  -DCHECK_PORT  -DFACILITY=LOG_DAEMON      -O    -c -o from_local.o from_local.c
powerpc-tuxbox-linux-gnu-gcc  -Dperror=xperror  -DCHECK_PORT  -DFACILITY=LOG_DAEMON      -O  -o portmap portmap.o pmap_check.o from_local.o
powerpc-tuxbox-linux-gnu-gcc  -Dperror=xperror  -DCHECK_PORT  -DFACILITY=LOG_DAEMON      -O  -o pmap_dump pmap_dump.c
powerpc-tuxbox-linux-gnu-gcc  -Dperror=xperror  -DCHECK_PORT  -DFACILITY=LOG_DAEMON      -O  -o pmap_set pmap_set.c
make[1]: Leaving directory `/home/frank/work/tuxbox-cvs/cdk/portmap_5beta'
make[1]: Entering directory `/home/frank/work/tuxbox-cvs/cdk/portmap_5beta'
install -m 0755 -s portmap /home/frank/work/dbox2/cdkroot/sbin
strip: Unable to recognise the format of the input file `/home/frank/work/dbox2/cdkroot/sbin/portmap'
install: strip fehlgeschlagen
make[1]: *** [install] Fehler 1
make[1]: Leaving directory `/home/frank/work/tuxbox-cvs/cdk/portmap_5beta'
make: *** [.deps/portmap] Fehler 2
Hat jemand eine Idee wie ich das zum laufen bringe?

*EDIT*
Ich frage mich warum getripped werden soll im YADD
--enale-flashrules habe ich zumindest nicht angegeben.


Gruß
flasher
flasher
Developer
Beiträge: 467
Registriert: Dienstag 15. Juli 2003, 10:58

Beitrag von flasher »

Ich antworte mir mal selber ;)

Im Patchfile für portmap habe ich mal folgende Änderungen vorgenommen:

Code: Alles auswählen

@@ -142,6 +142,14 @@
 deps:
 	@$(CC) -M $(CFLAGS) *.c | grep -v /usr/include |sed 's/\.\///'
 
+install: all
+	install -m 0755 -s portmap ${BASEDIR}/sbin
+	install -m 0755 -s pmap_dump ${BASEDIR}/sbin
+	install -m 0755 -s pmap_set ${BASEDIR}/sbin
+
+flashinstall: portmap
+	install -m 0755 -s portmap ${BASEDIR}/sbin
+
wird zu

Code: Alles auswählen

@@ -142,6 +142,14 @@
 deps:
 	@$(CC) -M $(CFLAGS) *.c | grep -v /usr/include |sed 's/\.\///'
 
+install: all
+	install -m 0755 portmap ${BASEDIR}/sbin
+	install -m 0755 pmap_dump ${BASEDIR}/sbin
+	install -m 0755 pmap_set ${BASEDIR}/sbin
+
+flashinstall: portmap
+	install -m 0755 -s portmap ${BASEDIR}/sbin
+
Also nur -s (für strippen) entfernt.
Da es so funktioniert und scheinbar ein Fehler ist/war könnte man das doch ins CVS commiten. Oder liege ich da falsch?
Wenn Nein, könnte das mal jemand machen. Ich kann zur Zeit nicht, da mein System mal wieder neu ist und noch recht instabil läuft.

Gruß
flasher