Skip to contentSkip to conversation

make test errors

LARTC [email protected] 2 participants 5 messages Jul 22, 2002 – Jul 26, 2002

lore
Share & tools
lore
#0 lore raw

tcng-8t on Mandrake 8.2
Below are the errors I got..

errors-------------------------------------------- --> in
$a = { $x = 13; 7; };
field foo = raw if $a = $a;
--> out
<stdin>:17: warning: unused variable x
--> ref
<stdin>:1: warning: unused variable x

make test ---------------------------------
..............
bare words for strings are forbidden: PASSED
quoted strings for strings are okay: PASSED
bare words for warning labels are forbidden: PASSED (warning: output differs)
Standard output:
| <stdin>:17: syntax error near "nounused"
Reference output:
| <stdin>:1: syntax error near "nounused"
quoted strings for warning labels are okay: PASSED
............
.......
bucket: can define variables: PASSED
bucket: can use with conform, count: PASSED
bucket: policer parameters are refused: PASSED (warning: output differs)
Standard output:
| <stdin>:17: unrecognized parameter "mtu"
Reference output:
| <stdin>:1: unrecognized parameter "mtu"
bucket: "bucket" is no synonym for "police" after filters: PASSED
bucket: tc does not dump buckets: PASSED
bucket: tc does not dump buckets (sneaky): PASSED
...........
compound construct with multiple assignments: PASSED
compound construct must end with semicolon: PASSED (warning: output differs)
Standard output:
| <stdin>:17: syntax error near "}"
Reference output:
| <stdin>:1: syntax error near "}"
compound construct may end with multiple semicolons: PASSED
compound construct requires semicolon after assignment: PASSED (warning: output differs)
Standard output:
| <stdin>:17: syntax error near "$x"
Reference output:
| <stdin>:1: syntax error near "$x"
compound construct allows multiple semicolons after assignment: PASSED compound construct warns about unused variables: FAILED

File:      tests/compound
Command:   tcc -c 2>&1
Input:     _in.26670
Output:    _out.26670
Reference: _ref.26670

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

tcng8t, Mandrake 8.2(upgraded from 8.1), patched with htb_patch

_out =======
OK
UNSPEC
UNSPEC

_ref========
OK
UNSPEC
UNSPEC

_in is empty

========
((X.nl & 0xf0) >> 2) & 0xf0 works: PASSED ((X.nl & 0xf0) >> 2) & 0xf0 works: PASSED ((X.nl << 2) & 0xf0) >> 3 works: PASSED Additive headers at external interface (C): FAILED
Standard error:
| input in flex scanner failed

File:      tests/additive
Command:   LD_LIBRARY_PATH=.   tcsim -v -Xc,-tif:c tests/lib/additive.tcsim |   sed '/.* c .*returns /{s///;s/ (.*//;p;};d'
Input:     _in.11911
Output:    _out.11911
Reference: _ref.11911
scripts/runtests.sh: line 2: 11935 Broken pipe             cat
scripts/run-all-tests: line 14: 13671 Broken pipe             cat $n
make: *** [test] Error 1

Meanwhile on two Mandrake's 8.2 when I try "make rpm" it don't work ..... if I try "checkinstall make install" i also can't make .rpm...

.............OOOPS the kernel is 2.4.8 may be this is why this happen (will updated /usr/src to the 2.4.18 to see if it works).......................

raptor
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to [email protected]
Quoted 3 lines · [email protected] wrote:

Additive headers at external interface (C): FAILED
Standard error:
| input in flex scanner failed

Does changing the line
tcsim -v -Xc,-tif:c tests/lib/additive.tcsim | \
to
tcsim -v -Xc,-tif:c tests/lib/additive.tcsim -I tests/lib | \
help ?

Quoted 1 line

Meanwhile on two Mandrake's 8.2 when I try "make rpm" it don't work .....

Hmm, how does it fail ?

Quoted 1 line

if I try "checkinstall make install" i also can't make .rpm...

What is "checkinstall" ?

Quoted 1 line

.............OOOPS the kernel is 2.4.8 may be this is why this happen

tcng should work with kernels as far back as 2.4.3. But the RPM build process looks for 2.4.18, yes. (It will happily take any other compatible kernel source tree if you change the name, though.)

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://icapeople.epfl.ch/almesber/_____________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to [email protected]
Quoted 4 lines · [email protected] wrote:

--> out
<stdin>:17: warning: unused variable x
--> ref
<stdin>:1: warning: unused variable x

Your cpp seems to count the lines of a file included with -include as lines of the main source file. Which version of cpp does this ? (cpp --version and/or cpp -v </dev/null 2>&1 | grep CPP )

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://icapeople.epfl.ch/almesber/_____________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to [email protected]



|> Additive headers at external interface (C): FAILED
|>   Standard error:
|>   | input in flex scanner failed
|
|Does changing the line
|  tcsim -v -Xc,-tif:c tests/lib/additive.tcsim | \
|to
|  tcsim -v -Xc,-tif:c tests/lib/additive.tcsim -I tests/lib | \  
|help ?

]- doesn't help :"[, will make the whole procedure again.. and some research so I can give more meaningful results

|> Meanwhile on two Mandrake's 8.2 when I try "make rpm" it don't work .....
|
|Hmm, how does it fail ?

]- This is on MDK8.1 -upgraded-> MDK8.2 ... the pure MDK 8.2 results I will post when I go to work .. I see now the problem may be 'cause I patch them with htb_patch :")

make rpm=======<snip>
.............
cc -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -I../shared -DVERSION=\"cat ../VERSION\" -DTOPDIR=\"/arh/compile/tcng/rpm/BUILD/tcng\" -c -o ext_io.o ext_io.c
cc -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -I../shared -DVERSION=\"cat ../VERSION\" -DTOPDIR=\"/arh/compile/tcng/rpm/BUILD/tcng\" -c -o ext_dump.o ext_dump.c
cc -g -o tcc lex.yy.o y.tab.o tcc.o util.o error.o var.o data.o param.o device.o registry.o sprintf.o qdisc.o q_ingress.o q_cbq.o q_dsmark.o q_fifo.o q_gred.o q_prio.o q_htb.o q_red.o q_sfq.o q_tbf.o csp.o filter.o f_if.o f_fw.o f_route.o f_rsvp.o f_tcindex.o police.o tc.o op.o field.o named.o if_u32.o if_c.o if_ext.o iflib_actdb.o target.o location.o iflib_comb.o iflib_off.o iflib_misc.o iflib_red.o iflib_act.o iflib_arith.o iflib_not.o iflib_bit.o iflib_cheap.o iflib_newbit.o ext_all.o ext.o ext_io.o ext_dump.o -lfl -lm -L../shared -ltcngmisc
cc: q_htb.o: No such file or directory
make[2]: *** [tcc] Error 1
make[2]: Leaving directory `/arh/compile/tcng/rpm/BUILD/tcng/tcc'
make[1]: *** [tcc] Error 2
make[1]: Leaving directory `/arh/compile/tcng/rpm/BUILD/tcng'
error: Bad exit status from /var/tmp/rpm-tmp.2941 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.2941 (%build)
make: *** [tcc-rpms] Error 1
</snip>

|> if I try "checkinstall make install" i also can't make .rpm...
|
|What is "checkinstall" ?

]- It seems that I cant open their site(it seems to be down!!) at the moment here is it :
http://asic-linux.com.mx/~izto/checkinstall/
In short the idea is instead of doing "make install" to invoke "checkinstall make install" and then checkinstall-program captures/intercepts which file operations and other stuff .... so that in u can create .rpm, .deb or slack-tgz packges.... All this happen in interactive mode..

I have used it many times for building .rpm's

|> .............OOOPS the kernel is 2.4.8 may be this is why this happen
|
|tcng should work with kernels as far back as 2.4.3. But the RPM
|build process looks for 2.4.18, yes. (It will happily take any
|other compatible kernel source tree if you change the name,
|though.)
|
|- Werner

]- raptor :")
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/