[MacPorts] #68234: ffmpeg @4.4.4_2+gpl2+x11: ld: building exports trie: duplicate symbol '_av_add_i'

MacPorts noreply at macports.org
Fri Sep 29 22:40:57 UTC 2023


#68234: ffmpeg @4.4.4_2+gpl2+x11: ld: building exports trie: duplicate symbol
'_av_add_i'
---------------------+----------------------------
  Reporter:  czo     |      Owner:  mascguy
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.8.1
Resolution:  fixed   |   Keywords:  ventura sonoma
      Port:  ffmpeg  |
---------------------+----------------------------

Comment (by cjones051073):

 Replying to [comment:18 butter71]:
 > ''xcode 15 / sonoma / x86''
 >
 > ''port variant: -x11 +gpl2''
 >
 > I was able to build by modifying the Portfile to add "-ld_classic" to
 the LDFLAGS.  Xcode 15 switched the default linker to Apple's "prime"
 version.  "-ld_classic" forces it to use the same one as Xcode 14 (and
 earlier).  This is probably a temporary solution until someone more
 knowledgeable figures out what's going on with the new linker.
 >
 >
 > {{{
 > + configure.ldflags-append \
 > +                     -ld_classic
 > }}}

 I am a little surprised this worked, as these flags are not passed
 (directly) to the linker by via the compiler I would have though the
 option should have been

 -Wl,-ld_classic

 …

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


More information about the macports-tickets mailing list