Opened 7 years ago
Closed 7 years ago
#55160 closed defect (fixed)
kdenlive fails to build on High Sierra: spectrogram.cpp:244: 81: error: call to 'abs' is ambiguous
Reported by: | Polyergic (Shad Sterling) | Owned by: | mkae (Marko Käning) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | highsierra | Cc: | |
Port: | kdenlive |
Description
Reinstalling all ports after upgrading to High Sierra, a few are failing to build, including kdenlive:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_kdenlive/kdenlive/work/kdenlive-0.9.10/src/scopes/audioscopes/spectrogram.cpp:244: 81: error: call to 'abs' is ambiguous :info:build hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x-(leftDist + mouseX + 20)) < (int) minDistX + 16 :info:build ^~~ :info:build /usr/include/stdlib.h:137:6: note: candidate function :info:build int abs(int) __pure2; :info:build ^ :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:115:44: note: candidate function :info:build inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);} :info:build ^ :info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:117:44: note: candidate function :info:build inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);} :info:build ^
(there are many more candidate functions noted)
Attachments (2)
Change History (6)
Changed 7 years ago by Polyergic (Shad Sterling)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | mk@… removed |
---|---|
Owner: | set to mkae |
Status: | new → assigned |
Changed 7 years ago by jmroot (Joshua Root)
Attachment: | spectrogram.cpp.diff added |
---|
comment:2 Changed 7 years ago by jmroot (Joshua Root)
Attached patch should theoretically work; please test.
comment:3 Changed 7 years ago by Polyergic (Shad Sterling)
Took a few tries to apply the patch properly; eventually did this:
sudo cp ~/Downloads/spectrogram.cpp.diff /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/kdenlive/files/ sudo chmod a+r /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/kdenlive/files/spectrogram.cpp.diff sudo nano /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/kdenlive/Portfile ## insert line 43: patchfiles-append spectrogram.cpp.diff sudo port clean kdenlive sudo port install kdenlive +docs
And now the build succeeds.
comment:4 Changed 7 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
possible fix