Pagina 1 di 1

tree-1.4 bin package compilazione fallita

Inviato: mer 25 mag 2005, 11:31
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>

tree-1.4 bin package compilazione fallita

Inviato: mer 25 mag 2005, 16:07
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>

tree-1.4 bin package compilazione fallita

Inviato: mer 1 giu 2005, 13:30
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>

tree-1.4 bin package compilazione fallita

Inviato: mer 1 giu 2005, 16:28
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>

tree-1.4 bin package compilazione fallita

Inviato: mer 1 giu 2005, 17:30
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>