develooper Front page | perl.perl5.porters | Postings from August 2009

[perl #68792] usedtrace: make dependency failure

Thread Next
August 26, 2009 07:09
[perl #68792] usedtrace: make dependency failure
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #68792]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.39 running under perl 5.10.1.


When usedtrace is defined, miniperl build target fails because the
dtrace command that generates probe functions run.  The existing dtrace
target lacks depencies on the object targets it needs (and subsequently
needs miniperl to satisfy them).  The solution is to build a
miniperldtrace.o for the miniperl build target and to include all
non-dtrace objects as depencies for the miniperldtrace.o and
perldtrace.o targets.  See diff below:

--- Makefile.SH-orig	Wed Aug 26 00:40:57 2009
+++ Makefile.SH	Wed Aug 26 00:46:22 2009
@@ -329,6 +329,7 @@
 DTRACE = $dtrace
 DTRACE_H = $dtrace_h
 DTRACE_O = $dtrace_o
+MINI_DTRACE_O = mini$dtrace_o
 FIRSTMAKEFILE = $firstmakefile
@@ -463,7 +464,8 @@
 obj2 = hv$(OBJ_EXT) av$(OBJ_EXT) run$(OBJ_EXT) pp_hot$(OBJ_EXT) sv$(OBJ_EXT) pp$(OBJ_EXT) scope$(OBJ_EXT) pp_ctl$(OBJ_EXT) pp_sys$(OBJ_EXT)
 obj3 = doop$(OBJ_EXT) doio$(OBJ_EXT) regexec$(OBJ_EXT) utf8$(OBJ_EXT) taint$(OBJ_EXT) deb$(OBJ_EXT) universal$(OBJ_EXT) xsutils$(OBJ_EXT) globals$(OBJ_EXT) perlio$(OBJ_EXT) perlapi$(OBJ_EXT) numeric$(OBJ_EXT) mathoms$(OBJ_EXT) locale$(OBJ_EXT) pp_pack$(OBJ_EXT) pp_sort$(OBJ_EXT)
-mini_obj =  $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
+mini_ndt_obj =  $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
+mini_obj =  $(mini_ndt_obj) $(MINI_DTRACE_O)
 ndt_obj = $(obj0) $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
 obj = $(ndt_obj) $(DTRACE_O)
@@ -722,8 +724,10 @@
 	case "$dtrace_o" in
 		$spitshell >>$Makefile <<'!NO!SUBS!'
-$(DTRACE_O): perldtrace.d
+$(DTRACE_O): perldtrace.d $(ndt_obj)
 	$(DTRACE) -G -s perldtrace.d -o $(DTRACE_O) $(ndt_obj)
+$(MINI_DTRACE_O): perldtrace.d $(mini_ndt_obj)
+	$(DTRACE) -G -s perldtrace.d -o $(MINI_DTRACE_O) $(mini_ndt_obj)

[Please do not change anything below this line]
Site configuration information for perl 5.10.1:

Configured by cfs at Wed Aug 26 00:57:20 PDT 2009.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
    osname=solaris, osvers=2.10, archname=sun4-solaris-thread-multi-64int-ld
    uname='sunos brak 5.10 generic_141414-09 sun4u sparc sunw,ultraax-i2 '
    config_args='-Dusedtrace -Duse64bitint -Uuse64bitall -Dusemultiplicity -Dldflags=-mt -Wl,-c,/opt/local/perl/5.10.1/lib/sun4-solaris-thread-multi-64int-ld/CORE/ld.config -L/opt/local/bdb/current/lib -L/usr/sfw/lib  -L/lib -L/usr/lib -Dlibpth=/opt/local/bdb/current/lib /lib /usr/lib /usr/sfw/lib -Dlddlflags=-G -mt -Wl,-c,/opt/local/perl/5.8.9/lib/sun4-solaris-thread-multi-64int-ld/CORE/ld.config -L/opt/local/bdb/current/lib -L/usr/sfw/lib -L/lib -L/usr/lib -Dlibs=-lsocket -lnsl -ldb-4 -lm -lrt'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=define
    usemymalloc=n, bincompat5005=undef
    optimize='-O3 -xtarget=ultra2e -xspace',
    ccversion='Sun C 5.10 SunOS_sparc 2009/06/03', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-mt -Wl,-c,/opt/local/perl/5.10.1/lib/sun4-solaris-thread-multi-64int-ld/CORE/ld.config -L/opt/local/bdb/current/lib -L/usr/sfw/lib -L/lib -L/usr/lib '
    libpth=/opt/local/bdb/current/lib /lib /usr/lib /usr/sfw/lib
    libs=-lsocket -lnsl -ldb-4 -lm -lrt
    perllibs=-lsocket -lnsl -ldb-4 -lm -lrt
    libc=/lib/, so=so, useshrplib=true,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -R /opt/local/perl/5.10.1/lib/sun4-solaris-thread-multi-64int-ld/CORE'
    cccdlflags='-KPIC', lddlflags='-G -mt -Wl,-c,/opt/local/perl/5.8.9/lib/sun4-solaris-thread-multi-64int-ld/CORE/ld.config -L/opt/local/bdb/current/lib -L/usr/sfw/lib -L/lib -L/usr/lib'

Locally applied patches:

@INC for perl 5.10.1:

Environment for perl 5.10.1:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About