Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 91539

Summary: dev-perl/Net-DNS fails to build
Product: Gentoo Linux Reporter: Chris Webb <zzxtty>
Component: [OLD] DevelopmentAssignee: Gentoo Perl team <perl>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Webb 2005-05-05 01:30:21 UTC
>>> emerge (4 of 7) dev-perl/Net-DNS-0.49 to /
>>> md5 files   ;-) Net-DNS-0.38.ebuild
>>> md5 files   ;-) Net-DNS-0.47.ebuild
>>> md5 files   ;-) Net-DNS-0.40.ebuild
>>> md5 files   ;-) Net-DNS-0.48.ebuild
>>> md5 files   ;-) Net-DNS-0.49.ebuild
>>> md5 files   ;-) files/digest-Net-DNS-0.38
>>> md5 files   ;-) files/digest-Net-DNS-0.47
>>> md5 files   ;-) files/digest-Net-DNS-0.40
>>> md5 files   ;-) files/digest-Net-DNS-0.48
>>> md5 files   ;-) files/digest-Net-DNS-0.49
>>> md5 src_uri ;-) Net-DNS-0.49.tar.gz
>>> Unpacking source...
>>> Unpacking Net-DNS-0.49.tar.gz to /var/tmp/portage/Net-DNS-0.49/work
>>> Source unpacked.
Testing if you have a C compiler and the needed header files....
cc -march=pentium4 -O3 -pipe   -c -o compile.o compile.c
You have a working compiler.


It hangs here for ever...

Reproducible: Always
Steps to Reproduce:
1. emerge Net-DNS

Actual Results:  
It hangs.

Expected Results:  
One would presume it should build Net-DNS :}

[root@coffee /var/tmp/portage/Net-DNS-0.49/work/Net-DNS-0.49]0# pstree 4291
emerge&#9472;&#9472;&#9472;sandbox&#9472;&#9472;&#9472;ebuild.sh&#9472;&#9472;&#9472;ebuild.sh&#9472;&#9472;&#9472;perl
[root@coffee /var/tmp/portage/Net-DNS-0.49/work/Net-DNS-0.49]0#

[root@coffee /var/tmp/portage/Net-DNS-0.49/work/Net-DNS-0.49]0# ps -fp 4417
UID        PID  PPID  C STIME TTY          TIME CMD
root      4417  4404  0 09:19 pts/4    00:00:00 perl Makefile.PL PREFIX=/usr
INSTALLDIRS=vendor DESTDIR=/var/tmp/portage/Net-DNS-0.49/image/
[root@coffee /var/tmp/portage/Net-DNS-0.49/work/Net-DNS-0.49]0#

[root@coffee /var/tmp/portage/Net-DNS-0.49/work/Net-DNS-0.49]1# gcc-config -c
i686-pc-linux-gnu-3.4.3-20050110

[root@coffee /var/tmp/portage/Net-DNS-0.49/work/Net-DNS-0.49]0# emerge info
Portage 2.0.51.21-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r6-20050411 i686)
=================================================================
System uname: 2.6.11-gentoo-r6-20050411 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.6.11
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /
usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozil
la/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apm avi berkdb bitmap-fonts bonobo bzlib cdr crypt
cscope cups curl dbm divx4linux dvd eds emboss encode esd evo f am fbcon fd flac
flash flatfile foomaticdb fortran gb gd gdbm gif gnome gphoto2 gpm gstreamer gtk
gtk2 gtktml imagemagick imap imlib ipv6 jpe g lcms ldap libg++ libwww mad
maildir mbox mcal mikmod mime motif mozilla mp3 mpeg mpi mysql ncurses nls odbc
ogg oggvorbis opengl oss pam pc mcia pda pdflib perl png pnp postgres ppds
python quicktime readline ruby samba sdl slang snmp spell sse ssl svga tcltk
tcpd tiff truetype tr uetype-fonts type1-fonts usb vorbis wmf xine xml2 xmms xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

[root@coffee /var/tmp/portage/Net-DNS-0.49/work/Net-DNS-0.49]0#
Comment 1 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-05-06 23:50:55 UTC
Can't reproduce here.  If you have either of strace or gdb installed can you try attaching the the hung perl process see what it's doing, please ?  That'd be `strace -p <pid-of-perl>` for strace, and `gdb -p <pid-of-perl> for gdb (you'll get a '(gdb)' prompt with that, where entering the command 'bt' will a backtrace which might help).
Comment 2 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-05-06 23:55:52 UTC
Ah, forgot to mention that the latter (gdb) would be most helpful if dev-lang/perl was re-emerged with FEATURES=nostrip and CFLAGS=-ggdb.
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2005-05-07 13:32:35 UTC
Alternatively, if you have logging turned on in portage (look make.conf) please post the log of this emerge. Thanks!
Comment 4 Chris Webb 2005-05-08 23:31:54 UTC
strace showed it was hanging during an ldap query. Removing ldap from the hosts line in nsswitch.conf solved the problem. This is a bit strange because ping/strace/ssh work with the ldap entry, the only thing using ldap in my nsswitch.conf file is hosts. I guess this can be switched to "Resolved" or "invalid" or "user error" :)

The tail of strace:
geteuid32()                             = 0
open("/etc/ldap.conf", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=10023, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7de8000
read(3, "# @(#)$Id: ldap.conf,v 2.39 2005"..., 4096) = 4096
read(3, "to enforce membership of\n#pam_gr"..., 4096) = 4096
read(3, "ember member\n#pam_login_attribut"..., 4096) = 1831
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7de8000, 4096)                = 0
uname({sys="Linux", node="coffee", ...}) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([] <unfinished ...>
Comment 5 Sergiy Borodych 2005-05-09 07:32:49 UTC
Not absolutely related
but I have test error :(

t/10-recurse...............ok 4/12
#     Failed test (t/10-recurse.t at line 35)
Can't call method "answer" on an undefined value at t/10-recurse.t line 36.
# Looks like you planned 12 tests but only ran 5.
# Looks like your test died just after 5.
t/10-recurse...............dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 5-12
        Failed 8/12 tests, 33.33% okay
Failed Test    Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/10-recurse.t  255 65280    12   15 125.00%  5-12
2 tests skipped.
Failed 1/20 test scripts, 95.00% okay. 8/835 subtests failed, 99.04% okay.
make: *** [test_dynamic] Error 2

!!! ERROR: dev-perl/Net-DNS-0.49 failed.
!!! Function perl-module_src_test, Line 116, Exitcode 2
!!! test failed
!!! If you need support, post the topmost build error, NOT this status message.


and FEATURES="notest" don't help
test phase run anyway :(
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2005-05-09 07:46:58 UTC
Sergey,

Please provide the output of emerge info.

Tests only happen if FEATURES includes maketest these days. I still vote for Net-DNS not being allowed to perform tests in general since it depends on you having a properly configured and always functional dns setup locally (which isn't always the case for users).
Comment 7 Sergiy Borodych 2005-05-09 09:02:02 UTC
oops

# emerge info
Portage 2.0.51.21-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r7 i686)
=================================================================
System uname: 2.6.11-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.6.11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.5-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium3 -ffast-math -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium3 -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks maketest sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo"
LANG="ru_RU.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org.ua/gentoo-portage"
USE="x86 X acpi alsa apache2 apm avi berkdb bitmap-fonts cairo cdr crypt curl divx4linux dvd emboss encode fam ffmpeg flac fluidsynth foomaticdb freetype gd gdbm gif glitz glut gnome gtk gtk2 hal imagemagick imlib ithreads jpeg libg++ libwww lzo mmap mmx mozdevelop mozilla mp3 mysql ncurses network nls nowin nptl nptlonly ogg oggvorbis opengl pam pam_chroot pdflib perl pic png pnp postgres pthreads qmail readline samba sdl slang sounds sse sse2 ssl stream symlink tcpd threads truetype truetype-fonts type1-fonts unicode userlocales utf8 v4l v4l2 vim-with-x vlm vorbis win32codecs wxwindows xml2 xmms xv xvid zlib zvbi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS


but
FEATURES="-nomaketest" emerge dev-perl/Net-DNS
don't help :(
tests run again
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2005-05-09 09:11:51 UTC
nomaketest is not a feature. You need to actually remove maketest from your features to disable testing...
Comment 9 Sergiy Borodych 2005-05-11 08:12:57 UTC
sorry I made mistake
FEATURES="-maketest" emerge dev-perl/Net-DNS
works fine ;)
Comment 10 Michael Cummings (RETIRED) gentoo-dev 2005-05-14 11:51:51 UTC
Marking this can't fix, mostly because we didn't provide the fix (and it wasn't inherit to the ebuild itself per se).