Opened 15 years ago

Closed 15 years ago

#23537 closed defect (invalid)

graphviz 2.26.3 fails to build: _regfreeA undefined

Reported by: david@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: raimue (Rainer Müller)
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 (1)

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

Download all attachments as: .zip

Change History (6)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

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

Please remember to cc the maintainer.

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

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 15 years ago by david@…

Attachment: graphvizlog added

Log of sudo port -d install graphviz

comment:3 Changed 15 years ago by raimue (Rainer Müller)

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 15 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 15 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.