Bug 176908 - sysutils/e2fsprogs build breaks
sysutils/e2fsprogs build breaks
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Matthias Andree
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-13 07:40 UTC by zaphod
Modified: 2013-03-13 08:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zaphod 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.

DISABLED:
#WITH_CCACHE_BUILD=yes
#FORCE_MAKE_JOBS=yes
#MAKE_JOBS_NUMBER=9
#WITH_CPUFLAGS=yes
#BUILD_OPTIMIZED=yes
#CC=gcc46
#CXX=g++46
#CPP=cpp46

ERROR OUTPUT:
	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);
                          ~~~~          ^~~
                          %lu
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);
                                                             ~~~~   ^~~
                                                             %lu
gen_bitmap64.c:660:3: error: non-void function 'ext2fs_test_block_bitmap_range2'
      should return a value [-Wreturn-type]
                return;
                ^
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

Fix: 

NA
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 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

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

Added:
  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
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
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!