[MacPorts] #56085: source-highlight @3.1.8_4+universal: Undefined symbols for architecture i386

MacPorts noreply at macports.org
Wed Mar 21 11:55:27 UTC 2018


#56085: source-highlight @3.1.8_4+universal: Undefined symbols for architecture
i386
-------------------------------+-------------------
  Reporter:  rpspringuel       |      Owner:
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.4.2
Resolution:                    |   Keywords:
      Port:  source-highlight  |
-------------------------------+-------------------

Comment (by Ionic):

 > We can see in the log that this line is invoking the compiler without
 specifying the necessary `-arch` and `-stdlib` flags:

 The `-stdlib` flag shouldn't be necessary. Note that this call is merely
 merging multiple object files into one big one (and skipping linking
 against other libraries, including a standard library, explicitly via
 `-nostdlib`).

 It's questionable why libtool would link individual object files into a
 big one prior to creating the dylib, but we'll have to live with that
 behavior.

 Creating object files with `-r` and without `-arch` flags will however
 only leave default-arch symbols in the resulting thin object file -
 exactly what is happening here.

 [[br]]
 The question thus is why libtool is dropping `-arch` flags from this
 linking call exactly. It does use -arch flags for other link operations,
 so it's unlikely to be caused by its intentional dropping of unknown
 `LDFLAGS`.


 Changing to the `muniversal` `PortGroup` likely won't help either, since
 the i386 build objects would likewise be dropped within the i386 build
 process.

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


More information about the macports-tickets mailing list