[apparmor] gcc 5 errors

Steve Beattie steve at nxnw.org
Thu Feb 12 21:29:18 UTC 2015


On Thu, Feb 12, 2015 at 12:40:41PM -0800, Seth Arnold wrote:
> Doko has conducted a gcc5 rebuild of the Ubuntu archive and AppArmor has
> failed:
> http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20150202-gcc5-vivid.html
> 
> It looks like all the errors reported boil down to one real problem:
> 
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -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 dbus.o dbus.cc
> dbus.cc: In member function 'virtual std::ostream& dbus_rule::dump(std::ostream&)':
> dbus.cc:152:32: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::ostream {aka std::basic_ostream<char>}')
>    os << " member=\"" << member << os << "\"";
>                                 ^
> 
> I'm surprised to see the '<< os <<' here; I don't know what was intended
> to happen here, but removing it with the following patch didn't introduce
> any new build errors or warnings on the gcc-4.8 on vivid.
> 
> (I don't have an easy way to test the build with gcc-5, so this may not be
> exhaustive.)

For the record, gcc-5 packages are available for Ubuntu at
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test

Thanks.

-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150212/6a0c1040/attachment.pgp>


More information about the AppArmor mailing list