From: Robert Yang <liezhi.yang@windriver.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>,
Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] create_inode: fix gcc -Wall complaints
Date: Thu, 13 Mar 2014 10:21:28 +0800 [thread overview]
Message-ID: <53211628.9090505@windriver.com> (raw)
In-Reply-To: <20140312205110.GF15334@thunk.org>
On 03/13/2014 04:51 AM, Theodore Ts'o wrote:
> On Wed, Mar 12, 2014 at 01:02:19PM -0700, Darrick J. Wong wrote:
>>>
>>> gcc -Wall, via "make gcc-wall" and "make gcc-wall-new"
>>
>> Annoyingly, I ran make gcc-wall on Ubuntu 12.04 (gcc 4.6, glibc 2.15) and got
>> this splat:
>>
>> /usr/include/x86_64-linux-gnu/sys/stat.h:456: multiple definition of `stat'
>> ../lib/libquota.a(quotaio_v2.o):/usr/include/x86_64-linux-gnu/sys/stat.h:456: first defined here
>>
>> Not sure how to fix this, other than changing WFLAGS to start with -std=gnu99.
>> gcc 4.8/glibc 2.19 on Ubuntu 14 are no better.
>
> Hmm, I'm using Debian testing, with gcc 4.8 and eglibc 2.18, and it's
> working fine. I'm curious, are people noticing problems with gcc-wall
> on Fedora?
>
I got the similar error as Darrick on Fedora 19 x86_64:
$ make gcc-wall
[snip]
rehash.c:504:10: warning: nested extern declaration of ‘ext2fs_dirent_file_type’
[-Wnested-externs]
/usr/include/sys/stat.h:455: multiple definition of `stat'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:455: first defined here
/usr/include/sys/stat.h:462: multiple definition of `lstat'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:462: first defined here
/usr/include/sys/stat.h:469: multiple definition of `fstat'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:469: first defined here
/usr/include/sys/stat.h:477: multiple definition of `fstatat'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:477: first defined here
/usr/include/sys/stat.h:485: multiple definition of `mknod'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:485: first defined here
/usr/include/sys/stat.h:494: multiple definition of `mknodat'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:494: first defined here
/usr/include/sys/stat.h:504: multiple definition of `stat64'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:504: first defined here
/usr/include/sys/stat.h:511: multiple definition of `lstat64'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:511: first defined here
/usr/include/sys/stat.h:518: multiple definition of `fstat64'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:518: first defined here
/usr/include/sys/stat.h:526: multiple definition of `fstatat64'
../lib/libquota.a(quotaio_v2.o):/usr/include/sys/stat.h:526: first defined here
collect2: error: ld returned 1 exit status
[snip]
// Robert
> - Ted
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2014-03-13 2:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 3:41 [PATCH] create_inode: fix gcc -Wall complaints Theodore Ts'o
2014-03-12 3:45 ` Theodore Ts'o
2014-03-12 3:48 ` Darrick J. Wong
2014-03-12 6:33 ` Robert Yang
2014-03-12 6:34 ` Robert Yang
2014-03-12 14:32 ` Theodore Ts'o
2014-03-12 17:59 ` Darrick J. Wong
2014-03-12 20:02 ` Darrick J. Wong
2014-03-12 20:51 ` Theodore Ts'o
2014-03-13 2:21 ` Robert Yang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53211628.9090505@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=darrick.wong@oracle.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.