[MacPorts] #67486: bc: link fails for 10.6: duplicate symbol _edit in bc.o and main.o

MacPorts noreply at macports.org
Sat Sep 9 18:34:19 UTC 2023


#67486: bc: link fails for 10.6: duplicate symbol _edit in bc.o and main.o
----------------------+-------------------------
  Reporter:  mascguy  |      Owner:  mascguy
      Type:  defect   |     Status:  closed
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.8.1
Resolution:  fixed    |   Keywords:  snowleopard
      Port:  bc       |
----------------------+-------------------------

Comment (by jmroot):

 The `edit` variable is defined (not declared) in `global.h`, so every file
 that includes it will have its own definition. The definition should
 probably be moved to `global.c` and extern declarations put in `global.h`.

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


More information about the macports-tickets mailing list