Bug 176908 - sysutils/e2fsprogs build breaks
Summary: sysutils/e2fsprogs build breaks
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: Matthias Andree
Depends on:
Reported: 2013-03-13 07:40 UTC by Beeblebrox
Modified: 2013-03-13 08:20 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Beeblebrox 2013-03-13 07:40:02 UTC
# make for sysutils/e2fsprogs breaks wit below code output. All of below were disabled for debug. World was recently re-built with disabled "WITH_BSD_GREP" after recent find re BSD grep problem.


	CC gen_bitmap64.c
	CC get_pathname.c
gen_bitmap64.c:77:20: warning: format specifies type 'unsigned long long' but
      the argument has type '__u64' (aka 'unsigned long') [-Wformat]
                        "#%llu for %s", arg, bitmap->description);
                          ~~~~          ^~~
gen_bitmap64.c:79:55: warning: format specifies type 'unsigned long long' but
      the argument has type '__u64' (aka 'unsigned long') [-Wformat]
                com_err(0, bitmap->base_error_code + code, "#%llu", arg);
                                                             ~~~~   ^~~
gen_bitmap64.c:660:3: error: non-void function 'ext2fs_test_block_bitmap_range2'
      should return a value [-Wreturn-type]
2 warnings and 1 error generated.
gmake[2]: *** [gen_bitmap64.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory `/usr/obj/asp/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.7/lib/ext2fs'
gmake[1]: *** [all-libs-recursive] Error 1
gmake[1]: Leaving directory `/usr/obj/asp/ports/sysutils/e2fsprogs/work/e2fsprogs-1.42.7'
gmake: *** [all] Error 2
*** [do-build] Error code 1


How-To-Repeat: build sysutils/e2fsprogs
Comment 1 Edwin Groothuis freebsd_committer 2013-03-13 07:40:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mandree

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2013-03-13 08:11:41 UTC
Author: mandree
Date: Wed Mar 13 08:11:32 2013
New Revision: 314038
URL: http://svnweb.freebsd.org/changeset/ports/314038

  Fix build with clang.
  (The issue has also been reported to the upstream maintainer.)
  PR:		ports/176908
  Submitted by:	Beeblebrox <zaphod@berentweb.com>

  head/sysutils/e2fsprogs/files/patch-lib__ext2fs__gen_bitmap64.c   (contents, props changed)

Added: head/sysutils/e2fsprogs/files/patch-lib__ext2fs__gen_bitmap64.c
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/e2fsprogs/files/patch-lib__ext2fs__gen_bitmap64.c	Wed Mar 13 08:11:32 2013	(r314038)
@@ -0,0 +1,11 @@
+--- ./lib/ext2fs/gen_bitmap64.c.orig	2013-03-13 09:07:19.000000000 +0100
++++ ./lib/ext2fs/gen_bitmap64.c	2013-03-13 09:07:37.000000000 +0100
+@@ -657,7 +657,7 @@
+ 	if ((block < bmap->start) || (block+num-1 > bmap->end)) {
+ 		ext2fs_warn_bitmap(EXT2_ET_BAD_BLOCK_TEST, block,
+ 				   bmap->description);
+-		return;
++		return EINVAL;
+ 	}
+ 	return bmap->bitmap_ops->test_clear_bmap_extent(bmap, block, num);
svn-ports-all@freebsd.org mailing list
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Matthias Andree freebsd_committer 2013-03-13 08:12:11 UTC
State Changed
From-To: open->closed

Fixed in SVN r314038. Thank you for reporting this!