Ticket #23537 (closed defect: invalid)
graphviz 2.26.3 fails to build: _regfreeA undefined
| Reported by: | david@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.2 |
| Keywords: | Cc: | raimue@… | |
| Port: | graphviz |
Description
I have a very new 10.6 installation (x86-64) and I'm trying to install graphviz. All the dependencies build fine, but on a linking phase of the graphviz build, the following errors occur:
Undefined symbols:
"_regfreeA", referenced from:
_gvconfig in gvconfig.o
"_regexecA", referenced from:
_gvconfig in gvconfig.o
_gvconfig in gvconfig.o
"_regcompA", referenced from:
_gvconfig in gvconfig.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libgvc.la] Error 1
I've port cleaned and port selfupdated, but neither of these fixed the problem.
Attachments
Change History
comment:2 Changed 3 years ago by ryandesign@…
See also #21208 for the same problem with git-core.
I'd like to see complete debug output to begin to debug this problem.
comment:3 Changed 3 years ago by raimue@…
- Cc raimue@… added
Here it looks for the symbol regfreeA instead of regfree. As far as I was able to determine, there is a header /opt/local/include/boost/regex.h on my system redefining regfree to regfreeA. I assume for some reason this header is taking precedence over /usr/include/regex.h.
Do you have boost installed? Could you please submit the output of find /opt/local/include -name '*regex.h*'?
Also, as a workaround you can try to deactivate boost and then do a clean install of graphviz:
sudo port deactivate boost sudo port clean graphviz sudo port -d install graphviz


Please remember to cc the maintainer.