Hi

I am compiling cluster-glue under fedora 18,
and it returns an error.

It seems that the specification of "FORTIFY_SOURCE" is changed.
How should I fix ?


I use these operations under glibc-2.16-31.fc18.x86_64.
-----------------------------
# hg clone http://hg.linux-ha.org/glue cluster-glue
# cd cluster-glue
# make rpm
rm -f cluster-glue.tar.bz2
hg archive -t tbz2 -r tip cluster-glue.tar.bz2
<snip>
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include
-I../include -I../include -I../linux-ha -I../linux-ha
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/libxml2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -ggdb3 -O0 -fgnu89-inline -fstack-protector-all -Wall
-Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align
-Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2
-Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes
-Wmissing-declarations -Wmissing-format-attribute -Wnested-externs
-Wno-long-long -Wno-strict-aliasing -Wpointer-arith
-Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY
-Werror -c strlcpy.c  -fPIC -DPIC -o .libs/strlcpy.o
In file included from /usr/include/limits.h:26:0,
                 from
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/limits.h:169,
                 from
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/syslimits.h:7,
                 from
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/limits.h:34,
                 from /usr/include/sys/param.h:26,
                 from ../include/lha_internal.h:44,
                 from strlcpy.c:1:
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE
requires compiling with optimization (-O) [-Werror=cpp]
cc1: all warnings being treated as errors
gmake[2]: *** [strlcpy.lo] Error 1
gmake[2]: Leaving directory `/root/rpmbuild/BUILD/cluster-glue/replace'
<snip>
-----------------------------


Regards,
Takatoshi MATSUO
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to