[Bug 895495] New: g++: /usr/include/bits/stat.h:164:31: error: expected unqualified-id before '[' token
https://bugzilla.novell.com/show_bug.cgi?id=895495 https://bugzilla.novell.com/show_bug.cgi?id=895495#c0 Summary: g++: /usr/include/bits/stat.h:164:31: error: expected unqualified-id before '[' token Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: matz@suse.com ReportedBy: suse-beta@cboltz.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- I packaged AppArmor 2.8.96 (aka 2.9 beta2) and get the following compiler error for x86_64 on openSUSE 12.3 and 13.1: [ 759s] g++ -g -O2 -pipe -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor//include -c -o parser_merge.o parser_merge.c [ 760s] In file included from /usr/include/fcntl.h:68:0, [ 760s] from network.h:22, [ 760s] from profile.h:24, [ 760s] from parser_merge.c:26: [ 760s] /usr/include/bits/stat.h:106:31: error: expected unqualified-id before '[' token [ 760s] __syscall_slong_t __unused[3]; [ 760s] ^ [ 760s] /usr/include/bits/stat.h:164:31: error: expected unqualified-id before '[' token [ 760s] __syscall_slong_t __unused[3]; [ 760s] ^ [ 760s] make: *** [parser_merge.o] Error 1 [ 760s] make: Leaving directory `/home/abuild/rpmbuild/BUILD/apparmor-2.8.96/parser' [ 760s] error: Bad exit status from /var/tmp/rpm-tmp.JvCgv5 (%build) It builds without problems for i586, and also builds fine for i586 and x86_64 on Factory. You can find the full build log etc. in security:apparmor/apparmor. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895495 https://bugzilla.novell.com/show_bug.cgi?id=895495#c1 Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |meissner@suse.com InfoProvider| |suse-beta@cboltz.de --- Comment #1 from Marcus Meissner <meissner@suse.com> 2014-09-08 07:22:46 UTC --- __unused might be defined to something else or __syscall_slong_t might not defined. preprocessed source code would help here, rin above with --save-temps -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895495 https://bugzilla.novell.com/show_bug.cgi?id=895495#c2 --- Comment #2 from Richard Biener <rguenther@suse.com> 2014-09-08 07:51:07 UTC --- Even better use -dD -E and you'll get also what is defined in the preprocessed source which may be more useful in this case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895495 https://bugzilla.novell.com/show_bug.cgi?id=895495#c3 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|suse-beta@cboltz.de | --- Comment #3 from Christian Boltz <suse-beta@cboltz.de> 2014-09-08 21:58:18 CEST --- Created an attachment (id=605459) --> (http://bugzilla.novell.com/attachment.cgi?id=605459) parser source with compiler tempfiles I tried with make -C parser V=1 CFLAGS="-dD -E" but it fails with: [ 38s] g++: fatal error: cannot specify -o with -c, -S or -E with multiple files Therefore I used CFLAGS="--save-temps" - the content of the parser directory is attached (without the tst and po subdirectories) The failing g++ call was: [ 41s] g++ --save-temps -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor//include -c -o parser_merge.o parser_merge.c BTW: I'm much better at P* languages than at C, C++ and compilers. While I never refuse to learn, you might get faster results if you just checkout security:apparmor/apparmor and use osc build yourself ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895495 https://bugzilla.novell.com/show_bug.cgi?id=895495#c4 Richard Biener <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Richard Biener <rguenther@suse.com> 2014-09-09 09:24:01 UTC --- __syscall_slong_t __attribute__ ((unused))[3]; thus somebody does #define __unused __attribute__ ((unused)). and here it is: parser.h:#ifndef __unused parser.h:#define __unused __attribute__ ((unused)) it's invalid to use the implementation namespace (two leading underscores). Apparmor bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=895495 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (895495) was mentioned in https://build.opensuse.org/request/show/254060 Factory / apparmor -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com