Subject: | syntax errors prevent compilation of ACL.xs |
Date: | Tue, 12 Aug 2008 10:38:21 -0400 |
To: | bug-Solaris-ACL [...] rt.cpan.org |
From: | J Chapman Flack <jflack [...] math.purdue.edu> |
Using gcc 4.1.1:
gcc -c -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.06\"
-DXS_VERSION=\"0.06\" -fPIC "-I/.../lib/5.8.5/sun4-solaris/CORE" ACL.c
ACL.xs: In function 'hashref_count':
ACL.xs:82: error: invalid lvalue in assignment
ACL.xs: In function 'pretest_acl':
ACL.xs:114: error: invalid lvalue in assignment
*** Error code 1
I got it to compile and successfully 'make test' by changing
lines 82 and 114 from
if (SvTYPE((SV *)*hash = SvRV(hash_ref)) != SVt_PVHV)
if (SvTYPE((SV *)*acl_hash = SvRV(acl)) != SVt_PVHV)
to
if (SvTYPE(*(SV **)hash = SvRV(hash_ref)) != SVt_PVHV)
if (SvTYPE(*(SV **)acl_hash = SvRV(acl)) != SVt_PVHV)
respectively.
Chapman Flack
mathematics
Purdue