Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159185 - net-nds/openldap-2.3.31 fails to build: mkdep cannot find Makefile
Summary: net-nds/openldap-2.3.31 fails to build: mkdep cannot find Makefile
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-26 22:32 UTC by SpanKY
Modified: 2007-01-17 22:03 UTC (History)
0 users

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


Attachments
openldap-emerge.log (openldap-emerge.log,36.83 KB, text/plain)
2006-12-26 22:36 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-12-26 22:32:05 UTC
root@G5[ppc] 0 ~ # emerge openldap -qpv
[ebuild     U ] net-nds/openldap-2.3.31 [2.3.30-r1] USE="berkdb crypt gdbm ipv6 perl readline samba ssl tcpd -debug -kerberos -minimal -odbc -overlays -sasl (-selinux) -slp -smbkrb5passwd" 
...
make[3]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers/slapd/slapi'

  cd overlays; make -w --jobserver-fds=3,4 - --jobserver-fds=3,4 - --jobserver-fds=3,4 - --jobserver-fds=3,4 -j depend
make[3]: Entering directory `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers/slapd/overlays'
../../../build/mkdep -l -d "." -c "cc" -m "-M" -I../../../include        -I../../../include -I.. -I./..     overlays.c accesslog.c auditlog.c denyop.c dyngroup.c dynlist.c lastmod.c pcache.c ppolicy.c refint.c retcode.c rwm.c rwmconf.c rwmdn.c rwmmap.c syncprov.c translucent.c unique.c valsort.c 
../../../build/mkdep: line 112: Makefile: No such file or directory
make[3]: *** [depend-common] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers/slapd/overlays'
make[2]: *** [depend-local-srv] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers/slapd'
make[1]: *** [depend-common] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers'
make: *** [depend-common] Error 1

!!! ERROR: net-nds/openldap-2.3.31 failed.
Call stack:
  ebuild.sh, line 1580:   Called dyn_compile
  ebuild.sh, line 945:   Called src_compile
  openldap-2.3.31.ebuild, line 291:   Called die

!!! make depend failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



Portage 2.1.2_rc4-r1 (default-linux/ppc/ppc32/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19.1 ppc)
=================================================================
System uname: 2.6.19.1 ppc PPC970MP, altivec supported
Gentoo Base System version 1.12.8
Last Sync: Tue, 26 Dec 2006 08:00:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.15.90.0.3-r5, 2.16.1-r2, 2.16.91.0.3, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6, 2.16.91.0.7, 2.16.92, 2.16.93, 2.16.94, 2.17, 2.17.50.0.2, 2.17.50.0.3, 2.17.50.0.4, 2.17.50.0.5, 2.17.50.0.6, 2.17.50.0.7, 2.17.50.0.8
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=970 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=970 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms splitdebug"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages/powerpc-unknown-linux-gnu"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X a52 aac aalib acl alsa alsa_cards_aoa alsa_cards_aoa-fabric-layout alsa_cards_aoa-onyx alsa_cards_aoa-soundbus alsa_cards_aoa-soundbus-i2s alsa_cards_aoa-tas alsa_cards_aoa-toonie alsa_cards_powermac alsa_cards_usb-audio alsa_cards_via82xx alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol altivec amr apache2 arts asf audiofile berkdb bitmap-fonts bonobo boundschecking bzip2 cairo cddb cdparanoia cdr cli cracklib crypt css cups curl directfb divx dlloader dri dts dvd dvdr dvdread elibc_glibc emboss encode fame ffmpeg firefox flac fontconfig fortran gd gdbm gif glitz gpm gstreamer gtk gtkhtml iconv ieee1394 imagemagick input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_void ipv6 isdnlog jbig jpeg jpeg2k kde kernel_linux ldap libcaca libg++ libwww lzo mad matroska mikmod mjpeg mng modplug mozilla mp3 mp4 mpeg multislot musepack ncurses nls nptl nptlonly ogg openal opengl pcre pdf perl php png pppd python qt3 qt4 quicktime readline reflection rle samba sdl session sndfile spell spl ssl subversion svg tcl tcltk tcpd tga theora tiff tk truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2 vcd video_cards_ati video_cards_nv video_cards_r128 video_cards_radeon video_cards_sisusb vidix vorbis wmp wxwindows x264 xanim xinetd xml xorg xpm xprint xrandr xv xvid yv12 zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-12-26 22:36:02 UTC
Created attachment 104789 [details]
openldap-emerge.log
Comment 2 Volkmar Glauche 2006-12-28 02:20:39 UTC
Try running with MAKEOPTS="-j1"

This ebuild does not seem to like parallel makes.

(In reply to comment #0)
> ../../../build/mkdep: line 112: Makefile: No such file or directory
> make[3]: *** [depend-common] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory
> `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers/slapd/overlays'
> make[2]: *** [depend-local-srv] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers/slapd'
> make[1]: *** [depend-common] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/net-nds/openldap-2.3.31/work/openldap-2.3.31/servers'
> make: *** [depend-common] Error 1
> 
> !!! ERROR: net-nds/openldap-2.3.31 failed.
> Call stack:
>   ebuild.sh, line 1580:   Called dyn_compile
>   ebuild.sh, line 945:   Called src_compile
>   openldap-2.3.31.ebuild, line 291:   Called die
> 
> !!! make depend failed
> !!! If you need support, post the topmost build error, and the call stack if
> relevant.
> 
> Portage 2.1.2_rc4-r1 (default-linux/ppc/ppc32/2006.1, gcc-4.1.1, glibc-2.5-r0,
> 2.6.19.1 ppc)
> =================================================================
> MAKEOPTS="-j6"
Comment 3 Guillaume Castagnino 2006-12-28 04:46:21 UTC
I confirm this problem with MAKEOPTS="-j3"
downgrading to -j1 solve the problem
Comment 4 Nathan Sullivan 2006-12-28 16:37:23 UTC
can we force builds to use -j1 these days?
Comment 5 SpanKY gentoo-dev 2006-12-29 01:07:17 UTC
no, forcing -j1 is never a correct solution
Comment 6 J 2007-01-01 05:13:02 UTC
This is not ideal, since it applies in between calls to econf and emake.  But nobody's presented an alternative, and this does fix the problem.  Version 1.3 of openldap-2.3.30-r1.ebuild has the same issue with parallel make.

--- /usr/portage/net-nds/openldap/openldap-2.3.31.ebuild 2006-12-25 15:06:16.000000000 +0000
+++ portage/net-nds/openldap/openldap-2.3.31.ebuild 2007-01-01 12:39:11.000000000 +0000
@@ -288,6 +288,11 @@
   --libexecdir=/usr/$(get_libdir)/openldap \
   ${myconf} || die "configure failed"
 
+ # bug #159185
+ sed -i.orig \
+  -e 's/^depend-common: FORCE$/depend-common: FORCE depend-local/' \
+  servers/slapd/overlays/Makefile
+
  emake depend || die "make depend failed"
  emake || die "make failed"
 
Comment 7 Markus Ullmann (RETIRED) gentoo-dev 2007-01-17 22:03:26 UTC
In touch with upstream about this, though I got the notify that it may take some time. So marking this as LATER for now