<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>35949</bug_id>
          
          <creation_ts>2003-12-16 09:10 0000</creation_ts>
          <short_desc>Procmail compilation fails with particulars CFLAGS</short_desc>
          <delta_ts>2004-01-05 16:43:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>xgutter@yahoo.it</reporter>
          <assigned_to>net-mail@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>xgutter@yahoo.it</who>
            <bug_when>2003-12-16 09:10:40 0000</bug_when>
            <thetext>The compilation of procmail fails with:
CFLAGS=&quot;-march=athlon-xp -O2 -pipe -frename-registers -fomit-frame-pointer -finline-functions&quot;



Reproducible: Always
Steps to Reproduce:
1. emerge procmail


Actual Results:  
the compilation blocks to :
...
Benchmarking your system&apos;s strstr() implementation


Expected Results:  
A correct compilation and installation of the program.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-12-16 15:54:17 0000</bug_when>
            <thetext>could you at least narrow it down to whcih flag causes the failure ?

and could you provide the output of the failure ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xgutter@yahoo.it</who>
            <bug_when>2003-12-18 01:03:05 0000</bug_when>
            <thetext>The compilation flags -finline-functions blocks compilation of procmail.

The complete output is:

morpheus root # emerge procmail
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) net-mail/procmail-3.22-r6 to /
&gt;&gt;&gt; md5 src_uri ;-) procmail-3.22.tar.gz
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking procmail-3.22.tar.gz to /var/tmp/portage/procmail-3.22-r6/work
&gt;&gt;&gt; Source unpacked.
patching file src/authenticate.c
/bin/sh ./initmake /bin/sh &quot;/bin/sh&quot; &quot;/bin/rm -f&quot; &quot;mv -f&quot; &quot;ln&quot; \
 &quot;-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl&quot; \
 &quot;/lib /usr/lib /usr/local/lib&quot; \
 /dev/null &quot;make&quot; o \
 &quot;gcc&quot; &quot;-march=athlon-xp -O2 -pipe -frename-registers -fomit-frame-pointer -finline-functions -O2  &quot; &quot;-s  &quot; &quot;procmail lockfile formail mailstat&quot; \
 &quot;procmail formail lockfile&quot; \
 &quot;procmailrc procmailsc procmailex&quot; &quot;src man&quot; \
 &quot;/usr/bin&quot; \
 &quot;strip&quot;
gcc seems to work fine, using that as the C-compiler
        ...scanning for 13 libraries...
        ...scanning for 12 libraries...
        ...scanning for 11 libraries...
        ...scanning for 10 libraries...
        ...scanning for 9 libraries...
        ...scanning for 8 libraries...
        ...scanning for 7 libraries...
        ...scanning for 6 libraries...
        ...scanning for 5 libraries...
        ...scanning for 4 libraries...
Added LDFLAGS= -lm -lnsl -ldl -lc
cd src; make ../autoconf.h
echo Housekeeping file &gt;config.check
make[1]: Entering directory `/var/tmp/portage/procmail-3.22-r6/work/procmail-3.22/src&apos;
/bin/sh ./autoconf /bin/sh &quot;/bin/rm -f&quot; &quot;mv -f&quot; /dev/null \
 &quot;grep -F&quot; &quot;make&quot; o &quot;/tmp .     &quot; \
 &quot;/usr/bin&quot; ../autoconf.h
Using the following directories for the LOCKINGTESTs:
  /tmp . 
Initiating fcntl()/kernel-locking-support tests

Proceeding with kernel-locking-support tests in the background
Testing for const
Testing for volatile
Testing for prototypes
Testing for enum
Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t &amp; gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() &amp; WSIGTERM()
Testing for various struct passwd members
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
        rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
        ftruncate, strtod, strncasecmp, strerror, strlcat,
        memset, bzero, and _exit
Determining the maximum number of 16 byte arguments execv() takes
Benchmarking your system&apos;s strstr() implementation

-----Note that the compilation blocks here.-----

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-01-05 16:43:22 0000</bug_when>
            <thetext>-fomit-frame-pointer = implied by O1
-frename-registers = implied by O3
-finline-functions = implied by O3

fixed in CVS now. this was a case not caught by the fix in place before, so I updated the fix (see the comments in the ebuild for further details).</thetext>
          </long_desc>
      
    </bug>

</bugzilla>