[MacPorts] #55137: source-highlight 3.1.8_0.darwin_15.x86_64: Undefined symbols for architecture x86_64

MacPorts noreply at macports.org
Mon Oct 23 14:33:21 UTC 2017


#55137: source-highlight 3.1.8_0.darwin_15.x86_64: Undefined symbols for
architecture x86_64
-------------------------------+------------------------
  Reporter:  hipunk            |      Owner:  ryandesign
      Type:  defect            |     Status:  closed
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.4.2
Resolution:  fixed             |   Keywords:
      Port:  source-highlight  |
-------------------------------+------------------------

Comment (by hipunk):

 Replying to [comment:6 ryandesign]:
 > Replying to [comment:5 hipunk]:
 > > Indeed, there is a /usr/local directory and it contains a boost
 library.
 > > I assume it derives from having brew installed as well.
 >
 > Yes, that's a likely reason. This kind of problem is why we don't
 support having another package manager installed alongside MacPorts. It's
 best if you decide on one package manager to use and uninstall the other.
 Of course we'd love it if you chose MacPorts, and if there's anything we
 can do to help you choose MacPorts, let us know.

 No worries, I've been a year long user of MacPorts and fink, way before
 brew even existed. I only installed it because I couldn't find some
 package on MacPorts or fink (I don't even recall which one it was, sorry).
 For now, I'll try having all of them on board, but now I'm aware of the
 issues that might arise from that decision.
 This was mostly my fault - I willingly ignored all warnings of having them
 all.

 > I assume you've turned SIP off.)

 Yes, that is correct.


 >
 > > Hmm, do you have an idea how I could temporarily fix this? By
 exporting some $PATH or something?
 >
 > MacPorts deliberately does not honor your `PATH` environment variable,
 to prevent interference from non-MacPorts software you may have installed.
 Instead, MacPorts sets its `PATH` environment variable to the value of the
 `binpath` setting in macports.conf. It is not recommended to change this
 setting; its default value should work correctly.
 >

 That is very good to know, I will try to memorize that.

 > > I don't understand why it still fails when I rename /usr/local, so I'm
 out of ideas again. I understand, that I could modify the port in some way
 or another by using "--with-libfoo=/opt/local/lib/" (from the usrlocal
 FAQ), but I don't know where it expects its stuff to be in the first
 place...
 >
 > My [changeset:93f74d0a615e570c7a78fbf3415f8e3c309b6e9b/macports-ports
 commit shown above] added the `--with-boost=${prefix}` configure argument
 to the port, and should be enough to allow the port to find MacPorts
 boost, even if another boost is in /usr/local. Please `sudo port clean
 source-highlight`, then use `sudo port selfupdate` to receive that fix,
 then try installing the port again. If it fails again, please attach the
 new main.log (and the config.log in the work directory) so that we can see
 what else might be going on.


 You are absolutely awesome!
 You fixed it, now it compiles just fine.
 Thank you so much for your help, I am so happy right now. Just look what
 you made possible for me:
 [http://www.hipunk.net/other/MacPortsIsFreakingAwesome.png]
 Linux on the left, Darwin on the right. w00t!

 Thanks again, have a wonderful day/night and greetz,

 hipunk

--
Ticket URL: <https://trac.macports.org/ticket/55137#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list