[MacPorts] #67359: transmission @4.0.3_1: error: redefinition of module 'libxml2'

MacPorts noreply at macports.org
Wed Jan 24 13:03:16 UTC 2024


#67359: transmission @4.0.3_1: error: redefinition of module 'libxml2'
---------------------------+----------------------------
  Reporter:  Gandoon       |      Owner:  kurthindenburg
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  catalina
      Port:  transmission  |
---------------------------+----------------------------

Comment (by Gandoon):

 Replying to [comment:12 kencu]:
 > this file:
 >
 > {{{
 >
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxml2/module.modulemap
 > }}}
 >
 > Doesn’t seem to exist in this 10.15 SDK:
 >
 > https://github.com/kencu/macos-
 sdk/tree/master/MacOSX10.15.sdk/usr/include/libxml2
 >
 > Given that the port builds on the buildbot, but not for you, and the
 error seems to relate to the noted file that doesn’t exist in the SDK I
 referenced, I would wonder why your SDK / Xcode has that file whereas
 others do not…
 >
 > I don’t have the answer to that, just the question at present.

 Hi there Ken,

 Thank you for that comment. I think you may have found the reason for why
 the build system complained about a redefinition. By renaming and
 disabling the modulemap in the libxml2 directory you mentioned, I managed
 to get the application to build. I suspect it may have been a remnant of
 older stuff since the modulemap in the mentioned directory is almost five
 years old (14 July 2019) whereas all other files and links, including the
 ones in the linked to `../libxml` directory (where there also exists a
 modulemap) are no older than 11 June 2020. I.e. still old, but markedly
 younger than the one I had where you couldn't find one.

 Remains to see if this breaks anything, but hopefully not.

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


More information about the macports-tickets mailing list