Bug 761862 (GLUSTER-130)

Summary: build warnings
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: buildAssignee: Anand Avati <aavati>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: high    
Version: 2.0.3CC: avati, chrisw, gluster-bugs, vijay, vinayak, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2009-07-11 17:26:59 UTC
root@supernova:~/work/gluster.git/build# gcc --version
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
root@supernova:~/work/gluster.git/build# flex --version
flex 2.5.35
root@supernova:~/work/gluster.git/build# bison --version
bison (GNU Bison) 2.3
root@supernova:~/work/gluster.git/build# automake --version
automake (GNU automake) 1.10.2
root@supernova:~/work/gluster.git/build# autoconf --version
autoconf (GNU Autoconf) 2.63
root@supernova:~/work/gluster.git/build# aclocal --version
aclocal (GNU automake) 1.10.2
root@supernova:~/work/gluster.git/build# make --version
GNU Make 3.81
root@supernova:~/work/gluster.git/build# libtool --version
ltmain.sh (GNU libtool) 2.2.6

Comment 1 Amar Tumballi 2009-07-11 17:33:31 UTC
more version info:

root@supernova:~/work/gluster.git/build# ls /lib64/ld-2.9.so 
root@supernova:~/work/gluster.git/build# uname -a
Linux supernova 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 22:12:12 UTC 2009 x86_64 GNU/Linux
root@supernova:~/work/gluster.git/build#

Comment 2 Amar Tumballi 2009-07-11 20:22:27 UTC
I just tried building glusterfs over amd64 machine (with ubuntu), and got following warnings (no warnings in configure or autogen).

amar@supernova:~/work/gluster.git/build$ make > /dev/null
../../../libglusterfs/src/dict.c: In function ‘_dict_set’:
../../../libglusterfs/src/dict.c:217: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘int_to_data’:
../../../libglusterfs/src/dict.c:725: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘data_from_int64’:
../../../libglusterfs/src/dict.c:741: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘data_from_int32’:
../../../libglusterfs/src/dict.c:757: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘data_from_int16’:
../../../libglusterfs/src/dict.c:774: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘data_from_int8’:
../../../libglusterfs/src/dict.c:791: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘data_from_uint64’:
../../../libglusterfs/src/dict.c:807: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘data_from_uint32’:
../../../libglusterfs/src/dict.c:849: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/dict.c: In function ‘data_from_uint16’:
../../../libglusterfs/src/dict.c:866: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/xlator.c: In function ‘xlator_set_type’:
../../../libglusterfs/src/xlator.c:592: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/scheduler.c: In function ‘get_scheduler’:
../../../libglusterfs/src/scheduler.c:45: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c: In function ‘gf_resolve_ip6’:
../../../libglusterfs/src/common-utils.c:99: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c: In function ‘gf_dump_config_flags’:
../../../libglusterfs/src/common-utils.c:272: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:276: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:281: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:296: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:301: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:306: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:311: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:316: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:321: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:326: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:336: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:341: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:354: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c: In function ‘gf_print_trace’:
../../../libglusterfs/src/common-utils.c:373: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:396: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:399: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:403: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:406: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/common-utils.c:418: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
../../../libglusterfs/src/transport.c: In function ‘transport_load’:
../../../libglusterfs/src/transport.c:139: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/inode.c: In function ‘inode_table_new’:
../../../libglusterfs/src/inode.c:1031: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfs/src/authenticate.c: In function ‘init’:
../../../libglusterfs/src/authenticate.c:60: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../libglusterfsclient/src/libglusterfsclient.c: In function ‘libglusterfs_graph’:
../../../libglusterfsclient/src/libglusterfsclient.c:7043: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/cluster/afr/src/afr.c: In function ‘init’:
../../../../../xlators/cluster/afr/src/afr.c:2405: warning: format not a string literal and no format arguments
../../../../../xlators/cluster/afr/src/afr.c:2490: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/cluster/afr/src/afr-self-heal-entry.c: In function ‘build_child_loc’:
../../../../../xlators/cluster/afr/src/afr-self-heal-entry.c:354: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/cluster/afr/src/afr-self-heal-entry.c:356: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/protocol/client/src/client-protocol.c: In function ‘client_setdents’:
../../../../../xlators/protocol/client/src/client-protocol.c:3348: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/protocol/client/src/client-protocol.c: In function ‘protocol_client_handshake’:
../../../../../xlators/protocol/client/src/client-protocol.c:6074: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/protocol/server/src/server-protocol.c: In function ‘build_volfile_path’:
../../../../../xlators/protocol/server/src/server-protocol.c:6592: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/protocol/server/src/server-protocol.c: In function ‘mop_setvolume’:
../../../../../xlators/protocol/server/src/server-protocol.c:6973: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/protocol/server/src/server-protocol.c:7002: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/protocol/server/src/server-helpers.c: In function ‘stat_to_str’:
../../../../../xlators/protocol/server/src/server-helpers.c:147: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../../xlators/performance/io-cache/src/ioc-inode.c: In function ‘ptr_to_str’:
../../../../../xlators/performance/io-cache/src/ioc-inode.c:52: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../auth/addr/src/addr.c: In function ‘gf_auth’:
../../../../auth/addr/src/addr.c:58: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../auth/addr/src/addr.c:63: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../auth/addr/src/addr.c:70: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../auth/login/src/login.c: In function ‘gf_auth’:
../../../../auth/login/src/login.c:55: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../../auth/login/src/login.c:72: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../glusterfsd/src/glusterfsd.c: In function ‘set_log_file_path’:
../../../glusterfsd/src/glusterfsd.c:940: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../glusterfsd/src/glusterfsd.c:953: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../glusterfsd/src/glusterfsd.c:969: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
../../../glusterfsd/src/glusterfsd.c: In function ‘main’:
../../../glusterfsd/src/glusterfsd.c:1086: warning: ignoring return value of ‘symlink’, declared with attribute warn_unused_result
amar@supernova:~/work/gluster.git/build$

Comment 3 Anand Avati 2009-07-20 18:28:55 UTC
PATCH: http://patches.gluster.com/patch/773 in master (fix build warnings in 'libglusterfs/')

Comment 4 Anand Avati 2009-07-20 18:29:00 UTC
PATCH: http://patches.gluster.com/patch/774 in master (fix build warnings in glusterfsd)

Comment 5 Anand Avati 2009-07-20 18:29:03 UTC
PATCH: http://patches.gluster.com/patch/775 in master (fix build warnings in 'auth' module)

Comment 6 Anand Avati 2009-07-20 18:29:07 UTC
PATCH: http://patches.gluster.com/patch/776 in master (fix build warnings in 'io-cache')

Comment 7 Anand Avati 2009-07-20 18:29:11 UTC
PATCH: http://patches.gluster.com/patch/777 in master (fix build warnings in 'client-protocol')

Comment 8 Anand Avati 2009-07-20 18:29:14 UTC
PATCH: http://patches.gluster.com/patch/778 in master (fix build warnings in 'server-protocol')

Comment 9 Anand Avati 2009-07-20 18:29:18 UTC
PATCH: http://patches.gluster.com/patch/779 in master (fix build warnings in 'afr')

Comment 10 Anand Avati 2009-07-20 18:29:22 UTC
PATCH: http://patches.gluster.com/patch/780 in master (fix build warnings in 'libglusterfsclient')

Comment 11 Amar Tumballi 2009-07-30 21:33:12 UTC
in master branch, there are no more build warnings.. If any comes after these commits, lets open another bug report..