Re: installing graphviz from pkgsrc on NetBSD/macppc 9.1

Adam Russell <[email protected]> Tue, 28 Dec 2021 11:48:00 -0500
Newsgroups gmane.os.netbsd.ports.macppc
Message-ID <[email protected]>
Impressive debugging HÃ¥vard!

I had previously sent a followup to my original message which somehow 
does not seem to have shown up in the list. I repeat it below.
The error seems to be very isolated, which concurs with what you have found.

=========================================================================

Just in case this is helpful to anyone else, I recently got past 
installation issues with graphviz.

after installing graphviz from pkgsrc any use of it would give this error

# dot -c
Error: /usr/pkg/lib/graphviz/config6 is zero sized, or other read error.
Warning: Could not load "/usr/pkg/lib/graphviz/libgvplugin_gd.so.6" - It 
was found, so perhaps one of its dependents was not.  Try ldd.
[1]   Segmentation fault (core dumped) dot -c

It seems to be some missing hidden dependency, but after manually 
reviewing and re-installing all stated dependencies I was still getting 
this error.

I did not install strace to root this out further. Instead I installed 
graphviz on a NetBSD/amd64 9.2 system, ran `dot -c` successfully and 
then copied and pasted the contents of /usr/pkg/lib/graphviz/config6 to 
the macppc system and everything worked fine thereafter.

I might still install strace and try and root out exactly what is going 
on. Since it now works absolutely fine I suspect that whatever may be 
missing, if at all, is only related to the writing of the config6 file 
and not the actual functioning of graphviz?

Anyway, I acknowledge this is obscure, but if I find out anything else I 
will reply back to this thread. I have seen users of other systems 
(different Linux distributions, and even Windows) with the same error 
but seemingly not all with the same root cause.