Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18291 - Compilation of djbdns might crash !
Summary: Compilation of djbdns might crash !
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-27 08:26 UTC by Aurelien Requiem
Modified: 2003-05-24 05:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Requiem 2003-03-27 08:26:27 UTC
Hello 

I've tried to install djbdns-1.05-r7 with MAKEOPTS="-j4". 
And the compilation crashes everytime. 
Here is the output 
<------------->
./compile log.c 
./compile cache.c 
./choose c trydrent direntry.h1 direntry.h2 > direntry.h 
In file included from cache.c:7: 
dns.h:63: parse error before "iopause_fd" 
dns.h:64: parse error before '*' 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
<------------->

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="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo 
http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="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"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-03-28 18:45:32 UTC
try -j1 and/or remove ccache
Comment 2 Charles N. Burns 2003-03-29 18:15:52 UTC
Same problem here, using -J1 allows installation to complete. If possible, the ebuild should force -J1
Comment 3 Evan Langlois 2003-04-28 21:01:59 UTC
The ebuild needs to force -j1 for MAKEOPTS, removing ccache doesn'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!
Comment 4 Jared H. Hudson (RETIRED) gentoo-dev 2003-05-24 05:59:30 UTC
Add djbdns ebuilds have been updated with MAKEOPTS="-j1"