Re: Getting 'stat64 already defined' type errors when trying to "make" fio on RedHat/Centos 6.3 (linux kernel 2.6.18-308)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2012-12-03 17:49, buysell08 wrote:
> Re: you write centos 6.3, but it's running kernel 2.6.18. That can't be right
> 
> Indeed, it is not right.  I meant to say Centos 6.3, kernel version
> 2.6.32.   Apologies.

Did you change the compiler, too? gcc 4.4.2 isn't centos 6.3 stock
either.

> Re: Try adding a <sys/stat.h> include to fio.h
> 
> No joy.  Same compilation error
> 
> But.....    I found the web pages:
> 
>    http://mailman.videolan.org/pipermail/x264-devel/2011-June/008563.html
> 
>    http://lifecs.likai.org/2009/06/multiple-definition-of-extern-inline.html
> 
> which says to add the compiler flag "-fgnu89-inline" (because of an issue where old glibc libraries aren't compatible with "the c99 standard").   I added the compilation flag
> (adding it just after the "-std=gnu99" option) and the compilation errors went away.

I found that that one, too. So you should be able to make it work by
just doing:

$ EXTFLAG="-std=gnu99" make

and not have to edit anything. Not sure I can do too much about this, if
it's a largely non-standard setup. It's a bug in your toolchain.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux