<?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>18291</bug_id>
          
          <creation_ts>2003-03-27 08:26 0000</creation_ts>
          <short_desc>Compilation of djbdns might crash !</short_desc>
          <delta_ts>2003-05-24 05:59:30 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aurelien@menfin.net</reporter>
          <assigned_to>jhhudso@gentoo.org</assigned_to>
          <cc>nick@capital-internet.net</cc>
    
    <cc>styx@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>aurelien@menfin.net</who>
            <bug_when>2003-03-27 08:26:27 0000</bug_when>
            <thetext>Hello 

I&apos;ve tried to install djbdns-1.05-r7 with MAKEOPTS=&quot;-j4&quot;. 
And the compilation crashes everytime. 
Here is the output 
&lt;-------------&gt;
./compile log.c 
./compile cache.c 
./choose c trydrent direntry.h1 direntry.h2 &gt; direntry.h 
In file included from cache.c:7: 
dns.h:63: parse error before &quot;iopause_fd&quot; 
dns.h:64: parse error before &apos;*&apos; token 
make: *** [cache.o] Error 1 
make: *** Waiting for unfinished jobs.... 

!!! ERROR: net-dns/djbdns-1.05-r7 failed. 
!!! Function src_compile, Line 39, Exitcode 2 
!!! emake failed
&lt;-------------&gt;

I have disabled the MAKEOPTS in /etc/make.conf and all is ok right now, so the 
ebuild process should avoid the use of jobserv for djbdns. 

Please not a I have a true SMP machine. 
2 P4 XEON 2.4Ghz + 1Mb L2 cache.

Reproducible: Always
Steps to Reproduce:
1. Set MAKEOPTS=-j4
2. Use a TRUE MultiProcessors Plateform
3. Emerge the PAckage

Actual Results:  
The compliation fails

Expected Results:  
Unset MAKEOPTS 

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(tm) XP 1500+
GENTOO_MIRRORS=&quot;http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo 
http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/kde/2/share/config /var/bind /usr/X
11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/co
nfig&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ libwww 
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv 
zlib gdbm berkdb slang readline arts svga guile X sdl gpm tcpd pam ssl perl 
python esd imlib oggvorbis gtk qt kde motif opengl cdr -java&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-03-28 18:45:32 0000</bug_when>
            <thetext>try -j1 and/or remove ccache</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>charlesnburns@gmail.com</who>
            <bug_when>2003-03-29 18:15:52 0000</bug_when>
            <thetext>Same problem here, using -J1 allows installation to complete. If possible, the ebuild should force -J1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ekl@crc.homelinux.org</who>
            <bug_when>2003-04-28 21:01:59 0000</bug_when>
            <thetext>The ebuild needs to force -j1 for MAKEOPTS, removing ccache doesn&apos;t help at all.  Of course retrying multiple times will eventually get it to build as well, but its definately not thread safe, even on a singel CPU system.  I wasted tons of time trying to figure out how to get this to build!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jhhudso@gentoo.org</who>
            <bug_when>2003-05-24 05:59:30 0000</bug_when>
            <thetext>Add djbdns ebuilds have been updated with MAKEOPTS=&quot;-j1&quot;</thetext>
          </long_desc>
      
    </bug>

</bugzilla>