tree-1.4 bin package compilazione fallita

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
Avatar utente
backbone
Linux 0.x
Linux 0.x
Messaggi: 64
Iscritto il: gio 13 mag 2004, 0:00
Slackware: 12.1
Kernel: 2.6.26.6 vanilla
Desktop: xfce4, fluxbox
Località: sicilia (meglio non sapere dove)
Contatta:

tree-1.4 bin package compilazione fallita

Messaggio da backbone »

Ciao ragazzi, nel compilare il pacchetto bin della slackware 10.1.0, ho avuto un problema alquanto fastidioso.<br />
<BR>Il software in questione è tree-1.4b3.tar.gz:<br />
<BR>Il problema sta in questa riga:<br />
<BR><!-- BBCode Start --><B>tree.c: In function `url_encode´:</B><!-- BBCode End --><br />
<BR><!-- BBCode Start --><B>tree.c:1086: error: label at end of compound statement</B><!-- BBCode End --><br />
<BR><!-- BBCode Start --><B>make: *** [tree.o] Error 1</B><!-- BBCode End --><br />
<BR>Ho provato a cercare su google con scarsi risultati, ho provato a
<BR>scaricare un altro tarball da diversi siti ma danno tutti lo stesso
<BR>errore.<br />
<BR>Su google ho trovato solo due siti: uno in giapponese ed uno a questo indirizzo:<br />
<BR><!-- BBCode Start --><B>http://lists.ibiblio.org/pipermail/sm-s ... 11.html</B><!-- BBCode End --><br />
<BR>Io sinceramente non so che fare a questo punto non si compila nemmeno tree-1.3.<br />
<BR>in allegato vi pasto il make file non si sa mai:<br />
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR><pre># $Copyright: $<br /># Copyright (c) 1996 - 2001 by Steve Baker<br /># All Rights reserved<br />#<br /># This software is provided as is without any express or implied<br /># warranties, including, without limitation, the implied warranties<br /># of merchant-ability and fitness for a particular purpose.<br /><br />CC=gcc<br />CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX_BIGFILE #-m486<br />LDFLAGS=-s<br /># Uncomment for OS X:<br />#CC=cc<br />#CFLAGS=-O2 -Wall -fomit-frame-pointer -no-cpp-precomp<br />#LDFLAGS=<br /># Uncomment for HP/UX:<br />#CC=cc<br />#CFLAGS=-Ae +O2 +DAportable -Wall<br />#LDFLAGS=<br /><br />prefix = /usr/local<br /><br />VERSION=1.4<br />TREE_DEST=tree<br />BINDIR=${prefix}/bin<br />MAN=tree.1<br />MANDIR=${prefix}/man/man1<br /><br />all: tree<br /><br />tree: tree.o<br /> $(CC) $(LDFLAGS) -o $(TREE_DEST) tree.o<br /><br />tree.o: tree.c<br /><br />clean:<br /> if [ -x $(TREE_DEST) ]; then rm $(TREE_DEST); fi<br /> if [ -f tree.o ]; then rm *.o; fi<br /> rm -f *~<br /><br />install:<br /> install -d $(BINDIR)<br /> install -d $(MANDIR)<br /> if [ -e $(TREE_DEST) ]; then \<br /> install -s $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \<br /> fi<br /> install $(MAN) $(MANDIR)/$(MAN)<br /><br />distclean:<br /> if [ -f tree.o ]; then rm *.o; fi<br /> rm -f *~<br /> <br /><br />dist: distclean<br /> tar zcf ../tree-$(VERSION).tgz -C .. `cat .tarball`</pre>-------------------------------------------------------------------------------------------<br />
<BR>A proposito del clean all´interno dello slackbuild esso viene eseguito
<BR>dopo aver scompattato il tarball, perchè all´interno esiste già un
<BR>eseguibile. ma poi non compila.<br />
<BR><br />
<BR>spero si possa trovare una soluzione. grazie per l´aiuto in anticipo.<br /><br>

Avatar utente
useless
Staff
Staff
Messaggi: 3896
Iscritto il: dom 12 ott 2003, 0:00
Località: A place where the streets have no name
Contatta:

tree-1.4 bin package compilazione fallita

Messaggio da useless »

tree.c:1086: error: label at end of compound statement
<BR>
<BR>posta la riga 1086 (e quelle immediatamente prima e dopo) di tree.c.<br>

Avatar utente
backbone
Linux 0.x
Linux 0.x
Messaggi: 64
Iscritto il: gio 13 mag 2004, 0:00
Slackware: 12.1
Kernel: 2.6.26.6 vanilla
Desktop: xfce4, fluxbox
Località: sicilia (meglio non sapere dove)
Contatta:

tree-1.4 bin package compilazione fallita

Messaggio da backbone »

ciao useless ti pasto dalla 1086 alla 1109 che sarebbe tutta la funzione ....<br />
<BR>proprio la linea 1086 è vuota <br />
<BR><br />
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR><pre><span>void</span> html_encode(FILE *fd, <span>char</span> *s)
<BR>{
<BR> <strong>for</strong>(;*s;s++) {
<BR> <strong>switch</strong>(*s) {
<BR> <strong>case</strong> <span>´<´</span>:
<BR> fputs(<span>"<"</span>,fd);
<BR> <strong>break</strong>;
<BR> <strong>case</strong> <span>´>´</span>:
<BR> fputs(<span>">"</span>,fd);
<BR> <strong>break</strong>;
<BR> <strong>case</strong> <span>´&´</span>:
<BR> fputs(<span>"&"</span>,fd);
<BR> <strong>break</strong>;
<BR> <strong>case</strong> <span>´"´</span>:
<BR> fputs(<span>"""</span>,fd);
<BR> <strong>break</strong>;
<BR> <strong>default</strong>:
<BR> <strong>if</strong> (isprint(*s)) fputc(*s,fd);
<BR> <strong>else</strong> fputc(<span>´?´</span>,fd);
<BR> <strong>break</strong>;
<BR> }
<BR> }
<BR>}</pre>ho trovato una patch in rete ma nn cambia nulla....<br /><br>

Avatar utente
useless
Staff
Staff
Messaggi: 3896
Iscritto il: dom 12 ott 2003, 0:00
Località: A place where the streets have no name
Contatta:

tree-1.4 bin package compilazione fallita

Messaggio da useless »

boh, l´unica cosa che mi viene in mente è sostituire:
<BR> case ´"´:
<BR>con:
<BR> case ´\"´:
<BR>
<BR>prova e fammi sapere.<br>

Avatar utente
DaNiMoTh
Linux 3.x
Linux 3.x
Messaggi: 941
Iscritto il: mar 30 nov 2004, 0:00
Località: irc.syrolnet.org /// #slackware
Contatta:

tree-1.4 bin package compilazione fallita

Messaggio da DaNiMoTh »

io ho provato 30 secondi fa e non ho avuto nessunissmo errore, se non<br />
<BR><br />
<BR>dani@myhost:/tmp/tree/tree-1.4$ make<br />
<BR> gcc -O2 -Wall -fomit-frame-pointer -DLINUX_BIGFILE    -c -o tree.o tree.c<br />
<BR> tree.c: In function `url_encode´:<br />
<BR> tree.c:1086: warning: deprecated use of label at end of compound statement<br />
<BR> gcc -s -o tree tree.o<br />
<BR><br />
<BR>Per me è una questione di compilatore.<br />
<BR><br />
<BR>Ciao!<br /><br>

Rispondi