Bug 76854 - Sources: cannot build procmail because make comes to infinite loop
Sources: cannot build procmail because make comes to infinite loop
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: procmail (Show other bugs)
7.3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-28 05:19 EST by Sysoltsev Slawa
Modified: 2007-04-18 12:47 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-02-20 08:10:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Log received from command `rpm -bb procmail.spec --rcfile ../rpmrc` (custom rc file is like system but with pathes to local directory) (1.14 MB, text/plain)
2002-11-12 10:15 EST, Sysoltsev Slawa
no flags Details

  None (edit)
Description Sysoltsev Slawa 2002-10-28 05:19:51 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
When I trying to build procmail from SRPM package I experience such failure:

/bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
 "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -
lsockdns -ldl" \
 "/lib /usr/lib /usr/local/lib" \
 /dev/null "make" o \
 "cc" "-O2 -march=i386 -mcpu=i686  " "  " "procmail lockfile formail mailstat" \
 "procmail formail lockfile" \
 "procmailrc procmailsc procmailex" "src man" \
 "/usr/bin" \
 "strip"
/bin/sh: /dev/null: Too many open files in system
Warning: your /bin/sh has noclobber turned on, avoiding it
***************************** WARNING *********************************
* You seem to have set the LD_LIBRARY_PATH variable, this might cause *
* some trouble during the compilation of this package.  If the make   *
* does not finish by itself, do a: "make clean", clear                *
* LD_LIBRARY_PATH from the environment, and start over.               *
***************************** WARNING *********************************
Whoeaaa!  There's something fishy going on here.
You have a look and see if you detect anything uncanny:
*******************************************************
cat: _autotst.rrr: Too many open files in system
*******************************************************
I suggest you take a look at the definition of CFLAGS* and CC
in the Makefile before you try make again.
make[2843]: *** [init] Error 1
make[2843]: Leaving directory `/users/compiler/tmp/rtt/WORK_DIR/BUILD/procmail-
3.22'
make[2842]: *** [man/Makefile] Error 2
make[2842]: Leaving directory `/users/compiler/tmp/rtt/WORK_DIR/BUILD/procmail-
3.22'
make[2841]: *** [man/Makefile] Error 2

As you see there is system overflow when 'make' call yourself 2842 times. I've 
tried to investigated why it happens, but your 'make init' script is too 
tricky. Being called from Makefile it tries to substitute same Makefile and 
after it something have to gone further. But it doesn't succeed for some 
unknown reason and 'make' repeats 'make init' endlessly. Could you leave 
trickiness and develop something more stabile ??

Sometimes (very rarely definitely and only in the past) build succeeded, but 
most time I try now it fails.

Version-Release number of selected component (if applicable):


How reproducible:
Sometimes

Steps to Reproduce:
1. Try to build source rpm.


Actual Results:  Infinite recursion while doing 'make init' until system 
resources are over. Build time error as a result.

Expected Results:  Succesfully built package.

Additional info:
procmail I've tried to build:
procmail-3.22-5.src.rpm

Here is system component's versions:
kernel-2.4.18-10smp
glibc-2.2.5-34
make-3.79.1-8

Feel free to ask more what is needed..
Comment 1 Jens Petersen 2002-11-11 01:24:07 EST
Could you add the complete build log for me as an attachment (preferably in
unix text format)? (It's kinda hard to see what is going on from the above.)

procmail-3.22-7 rebuilds fine on my 7.3 box.
Comment 2 Sysoltsev Slawa 2002-11-12 10:15:03 EST
Created attachment 84644 [details]
Log received from command `rpm -bb procmail.spec --rcfile ../rpmrc` (custom rc file is like system but with pathes to local directory)
Comment 3 Jens Petersen 2003-02-19 09:30:02 EST
Are you using "icc"?  See also bug 58095.
Comment 4 Sysoltsev Slawa 2003-02-19 09:35:54 EST
No. Bug was got using gcc.
Comment 5 Sysoltsev Slawa 2003-02-19 09:39:29 EST
By the way I am using RH8.0 now. Described problems wasn't observed there, so 
this tracker is obsolete and can be closed.
Comment 6 Jens Petersen 2003-02-20 08:10:34 EST
Ok, thanks for the update.

Note You need to log in before you can comment on or make changes to this bug.