Bug 158436 - Syntax error before 'access_vector_t' at checkpolicy
Syntax error before 'access_vector_t' at checkpolicy
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: checkpolicy (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks: FC4Target
  Show dependency treegraph
 
Reported: 2005-05-22 07:01 EDT by Robert Scheck
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version: 1.23.4-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-09 04:38:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
checkpolicy-1.23.4 (45.08 KB, application/octet-stream)
2005-05-30 04:38 EDT, Tomo Vuckovic
no flags Details

  None (edit)
Description Robert Scheck 2005-05-22 07:01:05 EDT
Description of problem:
Rebuilding of checkpolicy dies with these messages:

[...]
cc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -I. -I/usr/include -o y.tab.o -c y.tab.c
In file included from policy_parse.y:38:
checkpolicy.h:11: error: syntax error before 'access_vector_t'
checkpolicy.h:11: warning: no semicolon at end of struct or union
checkpolicy.h:14: error: syntax error before '}' token
checkpolicy.h:14: warning: data definition has no type or storage class
checkpolicy.h:16: error: syntax error before '*' token
checkpolicy.h:16: warning: data definition has no type or storage class
policy_parse.y: In function 'define_common_perms':
policy_parse.y:973: error: 'access_vector_t' undeclared (first use in this function)
policy_parse.y:973: error: (Each undeclared identifier is reported only once
policy_parse.y:973: error: for each function it appears in.)
policy_parse.y: In function 'define_av_perms':
policy_parse.y:1080: error: 'access_vector_t' undeclared (first use in this function)
policy_parse.y: At top level:
policy_parse.y:2207: error: syntax error before 'access_vector_t'
policy_parse.y: In function 'av_to_string':
policy_parse.y:2216: error: 'tclass' undeclared (first use in this function)
policy_parse.y:2219: error: 'av' undeclared (first use in this function)
policy_parse.y: At top level:
policy_parse.y:2327: error: syntax error before 'access_vector_t'
policy_parse.y: In function 'te_avtab_helper':
policy_parse.y:2335: error: 'which' undeclared (first use in this function)
policy_parse.y:2340: error: 'tclasses' undeclared (first use in this function)
policy_parse.y:2343: error: 'stype' undeclared (first use in this function)
policy_parse.y:2344: error: 'ttype' undeclared (first use in this function)
policy_parse.y:2366: error: 'avp' undeclared (first use in this function)
policy_parse.y: At top level:
policy_parse.y:2387: error: syntax error before 'access_vector_t'
policy_parse.y: In function 'cond_te_avtab_helper':
policy_parse.y:2395: error: 'which' undeclared (first use in this function)
policy_parse.y:2403: error: 'tclasses' undeclared (first use in this function)
policy_parse.y:2407: error: 'stype' undeclared (first use in this function)
policy_parse.y:2408: error: 'ttype' undeclared (first use in this function)
policy_parse.y:2417: error: 'avp' undeclared (first use in this function)
policy_parse.y: In function 'define_cond_te_avtab':
policy_parse.y:2449: error: 'access_vector_t' undeclared (first use in this function)
policy_parse.y:2449: error: 'avp' undeclared (first use in this function)
policy_parse.y: In function 'define_te_avtab':
policy_parse.y:2625: error: 'access_vector_t' undeclared (first use in this function)
policy_parse.y:2625: error: 'avp' undeclared (first use in this function)
policy_parse.y:2628: error: 'newassert' undeclared (first use in this function)
make: *** [y.tab.o] Error 1
[...]

Version-Release number of selected component (if applicable):
checkpolicy-1.23.1-1

How reproducible:
Everytime, try to rebuild checkpolicy.

Actual results:
No rebuilding.

Expected results:
Rebuilding.

Additional info:
Maybe similar problem like at policycoreutils a few days ago, but 1.23.4-1
from CVS wasn't built in Rawhide, yet.
Comment 1 Tomo Vuckovic 2005-05-30 04:38:59 EDT
Created attachment 114964 [details]
checkpolicy-1.23.4

New version of checkpolicy :-)
Comment 2 Tomo Vuckovic 2005-05-30 04:40:24 EDT
View checkpolicy attachment.
Comment 3 Daniel Walsh 2005-05-30 05:43:04 EDT
Fixed in 1.23.4-1
Comment 4 Robert Scheck 2005-05-30 06:11:24 EDT
Tomo, rebuilding of your package ends with

[...]
cc -g -Wall -O2 -pipe -I. -I/var/tmp/checkpolicy-buildroot/usr/include -o queue.o -c queue.c
cc -o checkpolicy y.tab.o lex.yy.o queue.o checkpolicy.o -lfl /var/tmp/checkpolicy-buildroot/usr/lib/libsepol.a
cc: /var/tmp/checkpolicy-buildroot/usr/lib/libsepol.a: No such file or directory
make: *** [checkpolicy] Error 1

at my system, but the original error message seems to be gone. Can we also
get rid of this? ;-)
Comment 5 Daniel Walsh 2005-05-30 08:00:36 EDT
Do you have libsepol-devel installed?
Comment 6 Tomo Vuckovic 2005-05-30 08:12:54 EDT
working with : rpmbuild --rebuild checkpolicy-1.23.4-1.ato.src.rpm
Comment 7 Robert Scheck 2005-05-30 08:24:43 EDT
Oops...comment #4 was my mistake. So -4 works, waiting for rebuild in Rawhide.
Comment 8 Robert Scheck 2005-06-09 04:38:13 EDT
1.23.4-1 was built in Rawhide, closing now.

Note You need to log in before you can comment on or make changes to this bug.