[Dev-luatex] [tex-live] luatex0.c compile problem

David Kastrup dak at gnu.org
Mon Apr 28 09:56:22 CEST 2008


Taco Hoekwater <taco at elvenkind.com> writes:

> Vladimir Volovich wrote:
>> 
>> while compiling luatex, i got an error:
>> 
>> xlc -DHAVE_CONFIG_H  -I. -I../../../texk/web2c -I.. -I../../../.....  
>> "luatex0.c", line 8931.5: 1506-117 (S) Operand must be a scalar type.
>> "luatex0.c", line 8940.3: 1506-117 (S) Operand must be a scalar type.
>> "luatex0.c", line 9005.5: 1506-117 (S) Operand must be a scalar type.
>> "luatex0.c", line 9124.11: 1506-117 (S) Operand must be a scalar type.
>> "luatex0.c", line 9133.11: 1506-117 (S) Operand must be a scalar type.
>> 
>> here are the statements on the referenced lines:
>> 
>> 8931: eq_destroy ( eqtb [p ]) ;
>> 8940: eq_destroy ( eqtb [p ]) ;
>> 9005: eq_destroy ( eqtb [p ]) ;
>> 9124: eq_destroy ( save_stack [save_ptr ]) ;
>> 9133: eq_destroy ( eqtb [p ]) ;
>> 
>> does this make sense to you? eqtb and save_stack is a structure.
>
> It may be complaining about eq_destroy, because these five happen to
> be all the calls to that function. Perhaps it misinterprets the
> macro in luatexcoerce.h. Not that I see a reason why it should,
> this function is converted by web2c just like all others. Or
> perhaps it is mis-optimizing something?

Ancient compilers did not allow for passing structures to functions.  It
sounds somewhat unlikely that this would be the only case here, though.

Maybe a missing prototype or something for eq_destroy?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


More information about the dev-luatex mailing list