Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266504 - libarchive 2.7.0 fails to build with -Werror
Summary: libarchive 2.7.0 fails to build with -Werror
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 11:07 UTC by Albert W. Hopkins
Modified: 2009-04-17 11:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2009-04-17 11:07:25 UTC
Error message:
---
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./libarchive -Wall -Werror -O2 -march=core2 -mfpmath=sse -msse4.1 -ggdb -pipe -c libarchive/archive_entry_link_resolver.c  -fPIC -DPIC -o libarchive/.libs/libarchive_la-archive_entry_link_resolver.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./libarchive -Wall -Werror -O2 -march=core2 -mfpmath=sse -msse4.1 -ggdb -pipe -c libarchive/archive_check_magic.c  -fPIC -DPIC -o libarchive/.libs/libarchive_la-archive_check_magic.o
cc1: warnings being treated as errors
libarchive/archive_check_magic.c: In function ‘errmsg’:
libarchive/archive_check_magic.c:53: error: ignoring return value of ‘write’, declared with attribute warn_unused_result
make[1]: *** [libarchive/libarchive_la-archive_check_magic.lo] Error 1
---

This is using gcc 4.3.3
Comment 1 Patrick Lauer gentoo-dev 2009-04-17 11:09:56 UTC
<CIA-38> flameeyes * gentoo-x86/app-arch/libarchive/ (ChangeLog libarchive-2.7.0.ebuild):
<CIA-38> Append -Wno-error to avoid -Werror hitting. Closes bug #266463.\

You're just a minute or two too late ;)