pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/47206 (build problems with xulrunner 16.0.2: : 'malloc_usable_size' was not declared in this scope)



The following reply was made to PR pkg/47206; it has been noted by GNATS.

From: RichardPALO <richard.palo%baou.fr@localhost>
To: <gnats-bugs%netbsd.org@localhost>
Cc: 
Subject: Re: pkg/47206 (build problems with xulrunner 16.0.2: :
 =?UTF-8?Q?=27malloc=5Fusable=5Fsize=27=20was=20not=20declared=20in=20this?=
 =?UTF-8?Q?=20scope=29?=
Date: Thu, 22 Nov 2012 18:45:08 +0100

 Le 18.11.2012 20:47, hauke%NetBSD.org@localhost a écrit :
 
 > Synopsis: build problems with xulrunner 16.0.2: : 
 > 'malloc_usable_size'
 > was not declared in this scope
 >
 > Responsible-Changed-From-To: pkg-manager->tnn
 > Responsible-Changed-By: hauke%NetBSD.org@localhost [1]
 > Responsible-Changed-When: Sun, 18 Nov 2012 19:47:10 +0000
 > Responsible-Changed-Why:
 > Over to maintainer.
 
 Hello, I just happened to notice the following in my log output:
 
 creating ./config.status
 creating config files and headers...
 invoking make to create js-config script
 find: bad option -path
 find: [-E] [-H | -L] path-list predicate-list
 rm -f js-config.tmp
 sed < js-config.in > js-config.tmp
 -e 's|@prefix@|/tmp/pkgsrc/devel/xulrunner/work/mozilla-esr17/dist|'
 -e 
 's|@exec_prefix@|/tmp/pkgsrc/devel/xulrunner/work/mozilla-esr17/dist|'
 -e
 's|@includedir@|/tmp/pkgsrc/devel/xulrunner/work/mozilla-esr17/dist/include|'
 
 -e 
 's|@libdir@|/tmp/pkgsrc/devel/xulrunner/work/mozilla-esr17/dist/lib|'
 -e 's|@MOZILLA_VERSION@||'
 -e 's|@LIBRARY_NAME@|mozjs|'
 -e 's|@NSPR_CFLAGS@|-I/opt/pkg/include/nspr|'
 -e 's|@JS_CONFIG_LIBS@|-Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lffi
 -Wl,-R/opt/pkg/lib/nspr -L/opt/pkg/lib/nspr -lplds4 -lplc4 -lnspr4
 -L/opt/pkg/gcc47/
 
 I found the following extract in
 /tmp/pkgsrc/devel/xulrunner/work/mozilla-esr17/js/src/Makefile.in
 
 ...
 
 ## Prevent regressing in our deprecation of non-preferred memory
 management functions.
 # We use all the files in the distribution so that different
 configurations
 # don't give different results. We skip the contents of objdirs using
 |find|
 # (it can't be done with %-expansion, because the files we want to skip
 aren't
 # in the vpath).
 ALL_FILES=$(shell find $(srcdir) ( -name "*.cpp" -o -name "*.h" ) ! 
 -path
 "*/dist/*" ! -path "*/config/*")
 check-malloc-function-usage: $(filter-out %jsalloc.h %jscntxt.h 
 %jsutil.h,
 $(ALL_FILES))
 
   # js_malloc and friends are only used by other memory managers, and
 should
   # never be used elsewhere directly.
   $(srcdir)/config/check_source_count.py "bjs_mallocb" 0
   "in Makefile.in" "cx->malloc_ or rt->malloc_" $^
   $(srcdir)/config/check_source_count.py "bjs_callocb" 0
   "in Makefile.in" "cx->calloc_ or rt->calloc_" $^
   $(srcdir)/config/check_source_count.py "bjs_reallocb" 0
   "in Makefile.in" "cx->realloc_ or rt->realloc_" $^
   $(srcdir)/config/check_source_count.py "bjs_freeb" 0
   "in Makefile.in" "cx->free_" $^
 
   # We desire these numbers to go down, not up. See "User guide to 
 memory
   # management within SpiderMonkey" in jsutil.h.
   $(srcdir)/config/check_source_count.py OffTheBooks:: 71
   "in Makefile.in" "{cx,rt}->{new_,array_new,malloc_,calloc_,realloc_}" 
 $^
   # This should go to zero, if possible.
   $(srcdir)/config/check_source_count.py UnwantedForeground:: 31
   "in Makefile.in" "{cx,rt}->{free_,delete_,array_delete}" $^
 
 Indeed, in illumos, '/usr/bin/find' does not seem to like '-path'.
 
 Perhaps this statement needs to be reworked to use -prune somehow...
 
 
 
 
 


Home | Main Index | Thread Index | Old Index