From: Jens Axboe <axboe@kernel.dk>
To: Thierry BERTAUD <tbertaud@conforama.fr>,
"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: fio-f1480f9: AIX 6.1 build KO against gcc function overlap
Date: Mon, 28 Dec 2015 16:21:17 -0700 [thread overview]
Message-ID: <5681C3ED.2000708@kernel.dk> (raw)
In-Reply-To: <VI1PR05MB1343197BD54DC24EA6A2AF65B1FB0@VI1PR05MB1343.eurprd05.prod.outlook.com>
On 12/28/2015 02:45 PM, Thierry BERTAUD wrote:
> Hello Fio Team,
>
> The 'send_file' function is defiined twice, so gcc doesn't like the same function with different signature.
> How can i fix this issue and build fio since send_file is used by a system library?
>
> Output from make:
> ---------------
> client.c:1488:12: error: conflicting types for 'send_file'
> static int send_file(struct fio_client *client, struct cmd_sendfile *pdu,
> ^
> In file included from client.c:11:0:
> /usr/include/sys/socket.h:760:9: note: previous declaration of 'send_file' was here
> ssize_t send_file(int *, struct sf_parms *, uint_t);
I fixed this by renaming the function.
> Build output:
> # ./configure --disable-lex
> Operating system AIX
> CPU ppc
> Big endian yes
> Compiler gcc
> Cross compile no
>
> Static build no
> Wordsize 32
> zlib yes
> Linux AIO support no
> POSIX AIO support yes
> POSIX AIO support needs -lrt no
> POSIX AIO fsync yes
> Solaris AIO support no
> __sync_fetch_and_add no
> libverbs no
> rdmacm yes
> Linux fallocate no
> POSIX fadvise yes
> POSIX fallocate yes
> sched_setaffinity(3 arg) no
> sched_setaffinity(2 arg) no
> clock_gettime yes
> CLOCK_MONOTONIC yes
> CLOCK_MONOTONIC_RAW no
> CLOCK_MONOTONIC_PRECISE no
> gettimeofday yes
> fdatasync yes
> sync_file_range no
> EXT4 move extent no
> Linux splice(2) no
> GUASI no
> Fusion-io atomic engine no
> libnuma no
> strsep yes
> strcasestr no
> strlcat no
> getopt_long_only() no
> inet_aton yes
> socklen_t yes
> __thread yes
> RUSAGE_THREAD yes
> SCHED_IDLE no
> TCP_NODELAY yes
> Net engine window_size yes
> TCP_MAXSEG yes
> RLIMIT_MEMLOCK no
> pwritev/preadv yes
> IPv6 helpers yes
> Rados Block Device engine no
> setvbuf yes
> Gluster API engine no
> s390_z196_facilities no
> HDFS engine no
> MTD no
> lex/yacc for arithmetic no
> getmntent yes
> getmntinfo no
> Static Assert yes
> bool yes
> #
> # gmake CC=gcc
> FIO_VERSION = fio-2.3
> CC crc/crc64.o
> CC crc/md5.o
> CC crc/fnv.o
> CC crc/sha256.o
> CC crc/test.o
> CC crc/xxhash.o
> CC crc/crc32c-intel.o
> CC crc/murmur3.o
> CC crc/crc32.o
> CC crc/crc32c.o
> CC crc/sha1.o
> CC crc/crc7.o
> CC crc/sha512.o
> CC crc/crc16.o
> CC lib/gauss.o
> CC lib/prio_tree.o
> CC lib/axmap.o
> CC lib/flist_sort.o
> CC lib/hweight.o
> CC lib/zipf.o
> CC lib/getrusage.o
> CC lib/output_buffer.o
> CC lib/memalign.o
> CC lib/lfsr.o
> CC lib/bloom.o
> CC lib/strntol.o
> CC lib/num2str.o
> CC lib/mountcheck.o
> CC lib/pattern.o
> lib/pattern.c: In function 'parse_number':
> lib/pattern.c:77:3: warning: implicit declaration of function 'strcasestr' [-Wimplicit-function-declaration]
> _end = strcasestr(beg, "0x");
> ^
> lib/pattern.c:77:8: warning: assignment makes pointer from integer without a cast [enabled by default]
> _end = strcasestr(beg, "0x");
Can you send the config.log file?
--
Jens Axboe
next prev parent reply other threads:[~2015-12-28 23:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-28 21:45 fio-f1480f9: AIX 6.1 build KO against gcc function overlap Thierry BERTAUD
2015-12-28 22:24 ` Andrey Kuzmin
2015-12-28 23:18 ` Thierry BERTAUD
2015-12-28 23:21 ` Jens Axboe [this message]
2015-12-28 23:34 ` Thierry BERTAUD
2015-12-28 23:46 ` Jens Axboe
2015-12-29 0:01 ` Thierry BERTAUD
2015-12-29 0:15 ` Jens Axboe
2015-12-29 0:30 ` Thierry BERTAUD
2015-12-29 0:39 ` Jens Axboe
2015-12-29 0:56 ` Thierry BERTAUD
2015-12-29 15:34 ` Jens Axboe
2015-12-29 16:16 ` Thierry BERTAUD
2015-12-29 21:10 ` Thierry BERTAUD
2015-12-30 3:26 ` Jens Axboe
2015-12-30 3:59 ` Jens Axboe
2015-12-30 8:36 ` Thierry BERTAUD
2015-12-30 16:38 ` Jens Axboe
2015-12-30 16:50 ` Jens Axboe
2015-12-30 16:51 ` Jens Axboe
2015-12-30 17:59 ` Thierry BERTAUD
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=5681C3ED.2000708@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=tbertaud@conforama.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox