yksuh / ioping

Automatically exported from code.google.com/p/ioping
GNU General Public License v3.0
0 stars 0 forks source link

Does not compile on FreeBSD #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run make

What is the expected output? What do you see instead?
Program should compile

What version of the product are you using? On what operating system?
ioping-0.4 on FreeBSD 8.1-RELEASE

Please provide any additional information below.
#make
Unknown modifier '/'

Unknown modifier '/'

cc -O2 -pipe  -std=c99 -g -Wall -Wextra -pedantic -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64 -c ioping.c
In file included from ioping.c:26:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by 
<stdlib.h>"
ioping.c: In function 'main':
ioping.c:355: error: 'BLKGETSIZE64' undeclared (first use in this function)
ioping.c:355: error: (Each undeclared identifier is reported only once
ioping.c:355: error: for each function it appears in.)
ioping.c:375: warning: implicit declaration of function 'memalign'
ioping.c:375: warning: assignment makes pointer from integer without a cast
ioping.c:413: warning: implicit declaration of function 'posix_fadvise'
ioping.c:413: error: 'POSIX_FADV_RANDOM' undeclared (first use in this function)
ioping.c:442: error: 'POSIX_FADV_DONTNEED' undeclared (first use in this 
function)
*** Error code 1

Original issue reported on code.google.com by qwad...@gmail.com on 8 Jun 2011 at 1:41

GoogleCodeExporter commented 9 years ago
try current svn head

Original comment by koct9i on 9 Jun 2011 at 12:01

GoogleCodeExporter commented 9 years ago
Now compile with gmake, but when run I get this error (with any path or device 
specified):

# ./ioping /var
ioping: no destination specified

Original comment by qwad...@gmail.com on 10 Jun 2011 at 6:34

GoogleCodeExporter commented 9 years ago
Please add this:

#ifdef __FreeBSD__
#include <sys/disk.h>
#endif

Original comment by qwad...@gmail.com on 10 Jun 2011 at 6:35

GoogleCodeExporter commented 9 years ago
ok, try again =)

Original comment by koct9i on 10 Jun 2011 at 8:30

GoogleCodeExporter commented 9 years ago
Now all is ok, thank you

Original comment by qwad...@gmail.com on 10 Jun 2011 at 9:03

GoogleCodeExporter commented 9 years ago
ok

Original comment by koct9i on 10 Jun 2011 at 10:35

GoogleCodeExporter commented 9 years ago

Original comment by koct9i on 28 Feb 2013 at 7:53