[Gluster-devel] 1.3.10 compile failure on FC9 w/ Gluster-patched Fuse

Harshavardhana harsha at zresearch.com
Mon Jul 21 12:31:04 UTC 2008


Hi Daniel,

   Its gcc flags which are giving problem. FC9 has hard coded
   -D_FORTIFY_SOURCE=2 during RPM builds for gcc flags. This is a
   glibc functionality to make functions behave in more strict manner
   under certain conditions.

   Likewise at "server-protocol.c:5356" the "open" call doesn't
   have a third argument . It should whenever "open" call is used with
   O_CREAT.

-- snip --
   ret = open (GLUSTERFSD_SPEC_PATH, O_WRONLY | O_CREAT | O_SYNC);
-- snip --

   Normally without -D_FORTIFY_SOURCE=2 (Level 2) it will work. But
   it should be fixed.

   Thanks for reporting the issue.

Regards
On Mon, July 21, 2008 5:39 pm, Daniel Maher wrote:
> Hello all,
>
> I am attempting to compile Gluster 1.3.10 on a newly-installed Fedora
> Core 9 machine, without success.  The only non-stock package on the
> otherwise vanilla system is the Gluster version of Fuse.
>
> -----------------------
> # rpm -qa | grep fuse
> fuse-devel-2.7.3glfs10-1.i386
> fuse-2.7.3glfs10-1.i386
> fuse-libs-2.7.3glfs10-1.i386
>
> # rpmbuild -ta glusterfs-1.3.10.tar.gz
>
> (..snip..)
>
> make[5]: Entering directory
> `/usr/src/redhat/BUILD/glusterfs-1.3.10/xlators/protocol/server/src' if
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../..    -fPIC
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -DGF_LINUX_HOST_OS
> -I../../../../libglusterfs/src -shared -nostartfiles -DDATADIR=\"/var\"
> -DCONFDIR=\"/etc/glusterfs\"  -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables -MT server-protocol.o -MD -MP -MF
> ".deps/server-protocol.Tpo" -c -o server-protocol.o server-protocol.c;
> \ then mv -f ".deps/server-protocol.Tpo" ".deps/server-protocol.Po";
> else rm -f ".deps/server-protocol.Tpo"; exit 1; fi server-protocol.c:
> In function 'stat_to_str': server-protocol.c:120: warning: ignoring
> return value of 'asprintf', declared with attribute warn_unused_result
> server-protocol.c: In function 'mop_setvolume': server-protocol.c:5625:
> warning: ignoring return value of 'asprintf', declared with attribute
> warn_unused_result server-protocol.c:5648: warning: ignoring return
> value of 'asprintf', declared with attribute warn_unused_result In
> function 'open', inlined from 'mop_setspec' at
> server-protocol.c:5356: /usr/include/bits/fcntl2.h:51: error: call to
> '__open_missing_mode' declared with attribute error: open with O_CREAT
> in second argument needs 3 arguments make[5]: *** [server-protocol.o]
> Error 1 make[5]: Leaving directory
> `/usr/src/redhat/BUILD/glusterfs-1.3.10/xlators/protocol/server/src'
> make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory
> `/usr/src/redhat/BUILD/glusterfs-1.3.10/xlators/protocol/server'
> make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory
> `/usr/src/redhat/BUILD/glusterfs-1.3.10/xlators/protocol' make[2]: ***
> [all-recursive] Error 1 make[2]: Leaving directory
> `/usr/src/redhat/BUILD/glusterfs-1.3.10/xlators' make[1]: ***
> [all-recursive] Error 1 make[1]: Leaving directory
> `/usr/src/redhat/BUILD/glusterfs-1.3.10' make: *** [all] Error 2 error:
> Bad exit status from /var/tmp/rpm-tmp.63368 (%build)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.63368 (%build)
> -----------------------
>
> Just for fun, i tried to build the 1.3.10 release on an FC8 machine
> (with the normal FC8 fuse package, though i'm not sure that would make
> a difference), and it compiled and built the RPMs cleanly.
>
> Any ideas ?
>
>
> --
> Daniel Maher <dma AT witbe DOT net>
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>
>


-- 
Harshavardhana
[y4m4 on #gluster at irc.freenode.net]
"Samudaya TantraShilpi"
Z Research Inc - http://www.zresearch.com









More information about the Gluster-devel mailing list