[Bugs] [Bug 1283948] New: glupy default CFLAGS conflict with our CFLAGS when --enable-debug is used

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 20 11:24:55 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1283948

            Bug ID: 1283948
           Summary: glupy default CFLAGS conflict with our CFLAGS when
                    --enable-debug is used
           Product: GlusterFS
           Version: mainline
         Component: build
          Assignee: bugs at gluster.org
          Reporter: rtalur at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:

    We use python-config in glupy section of configure.ac
    to get recommended CFLAGS.
    It provides -D_FORTIFY_SOURCE=2 by default that
    conflicts with our --enable-debug option which has -O0.



How reproducible:
Always


Steps to Reproduce:
1. use --enable-debug on fedora 23 or RHEL 7 and make sure glupy is enabled
during configure.
2. make

Actual results:
Build fails with error 
In file included from /usr/include/ctype.h:26:0,
                 from
/home/jenkins/glusterfs/xlators/features/glupy/src/glupy.c:11:
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Werror=cpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)



Expected results:
Build should succeed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list