Bug 174702 - [PATCH] devel/libowfat fails to build with clang on CURRENT
Summary: [PATCH] devel/libowfat fails to build with clang on CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: David Thiel
Depends on:
Reported: 2012-12-25 13:10 UTC by Fabian Keil
Modified: 2013-02-07 12:40 UTC (History)
0 users

See Also:

file.txt (1.12 KB, text/plain)
2012-12-25 13:10 UTC, Fabian Keil
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Keil 2012-12-25 13:10:00 UTC
The attached patch lets devel/libowfat build with clang on CURRENT.

Without the patch the build fails with:

In file included from t.c:27:
./CAS.h:56:3: error: void function 'atomic_add' should not return a value [-Wreturn-type]
  return __sync_add_and_fetch(x,val);
  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

The patch has been sent to the upstream as well.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2012-12-25 13:10:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lx

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Pietro Cerutti freebsd_committer 2013-02-07 12:40:13 UTC
State Changed
From-To: open->closed

Fixed in r311827. Thanks!