New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #23537 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

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

graphvizlog (291.6 KB) - added by david@… 3 years ago.
Log of sudo port -d install graphviz

Change History

comment:1 Changed 3 years ago by jmr@…

  • Owner changed from macports-tickets@… to ryandesign@…

Please remember to cc the maintainer.

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.

Changed 3 years ago by david@…

Log of sudo port -d install graphviz

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

comment:4 Changed 3 years ago by david@…

Conclusion: User Error

I had a botched install of boost sitting in /usr/local/include which was causing this problem. Cleaning out those files fixed this problem.

comment:5 Changed 3 years ago by macsforever2000@…

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.