It could have something to do with the architecture. In my case I have same versions of gcc for both i386 and x86_64 ie.

gcc-4.1.2-44.el5
gcc-c++-4.1.2-44.el5
libgcc-4.1.2-44.el5

x86_64 works, i386 doesn't. Digging deeper looks like the problem is in following option

-Wp,-D_FORTIFY_SOURCE=2

Searching on FORTIFY_SOURCE yields this

http://fedoraproject.org/wiki/Security/Features#Compile_Time_Buffer_Checks_.28FORTIFY_SOURCE.29

Why autoconf adds it in i386 and not x86_64 (although others have reported the same problem in x86_64) is mystifying.


Dustin wrote:
  Looks like this is bug88.  Not sure why I didn't see that when
running my CentOS build testing out the rpm.

  We need a rhel and/or centos builder, but in the meantime, does
anyone actually know what makes this compiler error show up there
where it doesn't otherwise?

On Sep 4, 4:56 pm, dormando <[email protected]> wrote:
Ah, I missread, nevermind.

On Fri, 4 Sep 2009, Paul Lindner wrote:
FYI - same issue recently reported also reported in fedora bugzilla.
---------- Forwarded message ----------
From: <[email protected]>
Date: Wed, Aug 26, 2009 at 4:55 AM
Subject: [Bug 519375] New: rpmbuild of memcached-1.4.0-1 fails on RHEL-5
To: [email protected]
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: rpmbuild of memcached-1.4.0-1 fails on RHEL-5 https://bugzilla.redhat.com/show_bug.cgi?id=519375 Summary: rpmbuild of memcached-1.4.0-1 fails on RHEL-5
          Product: Fedora
          Version: rawhide
         Platform: i386
       OS/Version: Linux
           Status: NEW
         Severity: medium
         Priority: low
        Component: memcached
       AssignedTo: [email protected]
       ReportedBy: [email protected]
        QAContact: [email protected]
               CC: [email protected], [email protected],
                   [email protected]
  Estimated Hours: 0.0
   Classification: Fedora
Description of problem:
rpmbuild of memcached-1.4.0-1.fc12.src.rpm fails on RHEL-5.3 with following
errors:-
-------------------------------------------------------------------------------
memcached.c:3764:1: error: embedding a directive within macro arguments is
not
portable
memcached.c:3770:1: error: embedding a directive within macro arguments is
not
portable
-------------------------------------------------------------------------------
Version-Release number of selected component (if applicable):
1.4.0-1
How reproducible:
Download
http://download.fedora.redhat.com/pub/fedora/linux/development/source...
and build on RHEL-5.3
Steps to Reproduce:
1.
2.
3.
Actual results:
failed with "error: embedding a directive within macro arguments is not
portable" while compiling memcached.c
Expected results:
rpms of memcached, memcached-devel, memcached-debuginfo and
memcached-selinux
Additional info:
If we delete lines 3764 and 3770 from memcached.c, the compilation works on
RHEL-5.3
--
Configure bugmail:https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to