[MacPorts] #61721: Failed to compile wine and wine-devel on 10.6.8

MacPorts noreply at macports.org
Wed Dec 2 00:14:25 UTC 2020


#61721: Failed to compile wine and wine-devel on 10.6.8
----------------------+--------------------
  Reporter:  lyssdod  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:           |
----------------------+--------------------

Comment (by kencu):

 Alex -- to get past this error:
 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_x11_wine-devel/wine-
 devel/work/wine-4.9/libs/wine/loader.c:435:70: error: invalid operands to
 binary expression ('int' and 'BYTE *' (aka 'unsigned char *'))
 :info:build     code_end   = getsegmentdata(dli.dli_fbase, "__DATA",
 &data_size) - addr;
 }}}
 what you do is install libmacho, and then in the wine Portifle, add that
 as a link library like this:
 {{{
 configure.ldflags-append -lmacho
 }}}

 and that, together with building it with clang-5.0 instead of clang-9.0,
 got me most of the way. There was -- I think -- some other minor patching
 I had to do in one of the wine files relating to some internet stuff that
 was too new for 10.6.8. I think I saved those patches somewhere, I'm not
 100% sure. I can look.

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


More information about the macports-tickets mailing list