Re: fio-f1480f9: AIX 6.1 build KO against gcc function overlap

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

 



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

--
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