Subject: pkg/35865: graphviz fails to build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: brad harder <bharder@methodlogic.net>
List: pkgsrc-bugs
Date: 02/27/2007 23:10:00
>Number:         35865
>Category:       pkg
>Synopsis:       graphviz fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 27 23:10:00 +0000 2007
>Originator:     brad harder <bharder@methodlogic.net>
>Release:        NetBSD 4.0_BETA2
>Organization:
	Method Digital Logic (http://www.methodlogic.net)
>Environment:
System: NetBSD manchester 4.0_BETA2 NetBSD 4.0_BETA2 (manchester) #22: Thu Feb 22 14:04:35 PST 2007 root@manchester:/usr/obj/sys/arch/i386/compile/manchester i386
Architecture: i386
Machine: i386
>Description:
	graphviz fails to build... using pkgsrc -current as of: Tue Feb 27 12:45:09 PST 2007

build fails with: 

[...]
config.status: executing depfiles commands
test -z "/usr/pkg/bin" || /usr/bin/install -d "/usr/pkg/bin"
  /bin/sh ../../libtool --mode=install /usr/bin/install -c -s -o root -g wheel -m 555 'dot' '/usr/pkg/bin/dot'
  /usr/bin/install -c -o root -g wheel -m 555 -s .libs/dot /usr/pkg/bin/dot
  /usr/bin/make  install-exec-hook
  (cd /usr/pkg/bin; for i in neato twopi fdp circo; do rm -f $i; ln -s dot $i; done;)
  if test "x" = "x"; then (cd /usr/pkg/bin; ./dot -c;); fi
  [1]   Abort trap (core dumped) (cd /usr/pkg/bin...
  *** Error code 134

  Stop.
  make: stopped in /usr/pkgsrc/graphics/graphviz/work/graphviz-2.12/cmd/dot
  *** Error code 1

  Stop.
  make: stopped in /usr/pkgsrc/graphics/graphviz/work/graphviz-2.12/cmd/dot
  *** Error code 1

  Stop.
  make: stopped in /usr/pkgsrc/graphics/graphviz/work/graphviz-2.12/cmd/dot
  *** Error code 1
[...]


>How-To-Repeat:
	"make install" at pkgsrc/graphics/graphviz
>Fix:

running 'dot' from the failed-install yields:
bash-3.2$ dot
Error: /usr/pkg/lib/graphviz/config is zero sized, or other read error.
assertion "v" failed: file "input.c", line 317, function "dotneato_args_initialize"
Abort trap (core dumped)

There are notes I've found searching WWW about running "dot -c" or "dot -cv" as root to generate a config file. It _does_ create a new (but still empty) config file, and then dumps core.  Similar sounding issues from web search include graphviz bug 767 (http://www.graphviz.org/bugs/b767.html) and bug 838 (http://www.graphviz.org/bugs/b832.html)... don't know if these are relevant.