Subject: pkg/36905: textproc/xmlto does not seem to build correctly on NetBSD/sparc64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Pierre Pronchery <khorben@defora.org>
List: pkgsrc-bugs
Date: 09/05/2007 00:10:01
>Number:         36905
>Category:       pkg
>Synopsis:       textproc/xmlto does not seem to build correctly on NetBSD/sparc64
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 05 00:10:01 +0000 2007
>Originator:     Pierre Pronchery <khorben@defora.org>
>Release:        NetBSD 4.99.20
>Organization:
>Environment:
System: NetBSD exxh.defora.lan 4.99.20 NetBSD 4.99.20 (GENERIC) #1: Wed Jun 6 12:59:22 CEST 2007 khorben@exxh.lan.defora.org:/usr/obj/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Building textproc/xmlto triggers the following messages on NetBSD/sparc64:

===> Building for xmlto-0.0.18nb4
/usr/bin/make  all-am
if cc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/pkg/include -I/usr/include  -O2 -I/usr/pkg/include -I/usr/include -MT xmlif/xmlif.o -MD -MP -MF "xmlif/.deps/xmlif.Tpo" -c -o xmlif/xmlif.o `test -f 'xmlif/xmlif.c' || echo './'`xmlif/xmlif.c;  then mv -f "xmlif/.deps/xmlif.Tpo" "xmlif/.deps/xmlif.Po"; else rm -f "xmlif/.deps/xmlif.Tpo"; exit 1; fi
cc  -O2 -I/usr/pkg/include -I/usr/include  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o xmlif/xmlif  xmlif/xmlif.o
for xml in xmlif.xml xmlto.xml; do  FORMAT_DIR=./format XSL_DIR=./xsl  bash ./xmlto -o man/man1 man ./doc/$xml ;  done || ( RC=$?; cat ./FAQ; exit $RC )
error : Memory allocation failed : building attribute
error : Memory allocation failed : copying node
./xmlto: line 379:  7568 Segmentation fault      (core dumped) xsltproc $XSLTOPTS -o "$XSLT_PROCESSED" "$STYLESHEET" "$INPUT_FILE"
error : Memory allocation failed : copying node
./xmlto: line 379:  5722 Segmentation fault      (core dumped) xsltproc $XSLTOPTS -o "$XSLT_PROCESSED" "$STYLESHEET" "$INPUT_FILE"
for xml in xmlif.xml xmlto.xml; do  FORMAT_DIR=./format XSL_DIR=./xsl  bash ./xmlto -o man/man1 man ./doc/$xml ;  done || ( RC=$?; cat ./FAQ; exit $RC )
error : Memory allocation failed : building attribute
error : Memory allocation failed : copying node
./xmlto: line 379: 22316 Segmentation fault      (core dumped) xsltproc $XSLTOPTS -o "$XSLT_PROCESSED" "$STYLESHEET" "$INPUT_FILE"
error : Memory allocation failed : copying node
./xmlto: line 379:  5436 Segmentation fault      (core dumped) xsltproc $XSLTOPTS -o "$XSLT_PROCESSED" "$STYLESHEET" "$INPUT_FILE"
=> Unwrapping files-to-be-installed.
===> Installing for xmlto-0.0.18nb4
=> Creating installation directories
for xml in xmlif.xml xmlto.xml; do  FORMAT_DIR=./format XSL_DIR=./xsl  bash ./xmlto -o man/man1 man ./doc/$xml ;  done || ( RC=$?; cat ./FAQ; exit $RC )
error : Memory allocation failed : building attribute
error : Memory allocation failed : copying node

However, I do not have the time to investigate this now.

>How-To-Repeat:
Build textproc/xmlto on sparc64.
>Fix:
I guess unlimiting resources when building this package would work-around this.
I find strange that this error can occur here though, so it might also be an
infinite loop.

>Unformatted:
 With pkgsrc from yesterday (04/09/2007).