Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2016 19:46:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211152] benchmarks/iozone: Build fails on typedef redefinition with different types ('long long' vs '__off64_t' (aka 'long'))
Message-ID:  <bug-211152-13-Owbi1W4xcG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211152-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211152-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211152

--- Comment #6 from w.schwarzenfeld@utanet.at ---
I provide the patch, but I am not really sure about it, cause I got warnings
like that: (But it compiles without problems in port and poudriere).

iozone.c:1920:25: warning: format specifies type 'long long *' but the argu=
ment
has type 'off64_t *' (aka 'long *') [-Wformat]
                        sscanf(optarg,"%lld",&kilobytes64);
                                       ~~~~  ^~~~~~~~~~~~
                                       %ld
iozone.c:1944:69: warning: format specifies type 'long long' but the argume=
nt
has type 'off64_t' (aka 'long') [-Wformat]
                        sprintf(splash[splash_line++],"\tFile size set to %=
lld
kB\n",kilobytes64);
                                                                          ~=
~~~=20
     ^~~~~~~~~~~
                                                                          %=
ld

don't know if this will  cause errors in use.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211152-13-Owbi1W4xcG>