Ticket #21936 (closed defect: fixed)
liblastfm fails to build on Snow Leopard
| Reported by: | sharky@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.1 |
| Keywords: | Cc: | ewal@…, eatdespain@…, andrea@…, lhunath@…, mark.gaylard@…, m.doppler@…, macports@… | |
| Port: | liblastfm |
Description (last modified by macsforever2000@…) (diff)
liblastfm fails with the following errors when building on Snow Leopard:
/opt/local/libexec/qt4-mac/include/QtCore/qglobal.h:311:6: warning: #warning "Support for this version of Mac OS X is still preliminary"
/usr/bin/g++-4.2 -c -pipe -fno-operator-names -O2 -arch x86_64 -I/opt/local/include -fvisibility-inlines-hidden -fvisibility=hidden -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4-mac/mkspecs/macx-g++ -I. -I/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/include/QtNetwork -I/opt/local/libexec/qt4-mac/lib/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/include/QtXml -I/opt/local/libexec/qt4-mac/include -I../_include -I_build -F/opt/local/libexec/qt4-mac/lib -o _build/moc_Audioscrobbler.o _build/moc_Audioscrobbler.cpp
In file included from /opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers/QtGlobal:1,
from ../_include/lastfm/global.h:24,
from _build/../scrobble/Audioscrobbler.h:23,
from _build/moc_Audioscrobbler.cpp:10:
/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers/qglobal.h:311:6: warning: #warning "Support for this version of Mac OS X is still preliminary"
core/misc.cpp: In function 'QDir dataDotDot()':
core/misc.cpp:69: error: cannot convert 'long int*' to 'SInt32*' for argument '5' to 'OSErr FindFolder(FSVolumeRefNum, OSType, Boolean, FSVolumeRefNum*, SInt32*)'
core/misc.cpp:78: error: '::FSMakeFSSpec' has not been declared
core/misc.cpp:82: error: '::FSpMakeFSRef' has not been declared
Attachments
Change History
comment:2 Changed 4 years ago by ewal@…
Same issue here... Wondering how long it will take me to finally get all the deps for amarok compiling ;-) Been compiling and recompiling for 3 weeks now :)
Changed 4 years ago by m.doppler@…
- Attachment patch-src-core-misc.cpp.patch added
patch for liblastfm leopard compatiblity
comment:9 follow-up: ↓ 13 Changed 4 years ago by m.doppler@…
The patch I just attached fixes the compile problem for me. I replaced the deprecated api calls by corresponding current api calls.
Note that I have only tested the patch to compile and not whether it works as expected, yet.
comment:13 in reply to: ↑ 9 ; follow-up: ↓ 14 Changed 4 years ago by macports@…
Replying to m.doppler@…:
The patch I just attached fixes the compile problem for me. I replaced the deprecated api calls by corresponding current api calls.
Note that I have only tested the patch to compile and not whether it works as expected, yet.
Is there documentation on how to use this patch? I'd like to help test. --Dean
comment:14 in reply to: ↑ 13 Changed 4 years ago by bkn@…
Replying to macports@…:
Replying to m.doppler@…:
The patch I just attached fixes the compile problem for me. I replaced the deprecated api calls by corresponding current api calls.
Note that I have only tested the patch to compile and not whether it works as expected, yet.
Is there documentation on how to use this patch? I'd like to help test.
change directory to the source directory of liblastfm you should see it near the beginning of the error output on the compile error (on my machine it was /Users/opt/local/var/macports/build/_Users_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/work/liblastfm-0.3.0)
The execute: patch -p0 < /path/to/patch-src-core-misc.cpp.patch
note: you may need to be root, depending on your macports setup.
comment:15 Changed 4 years ago by ewal@…
I can confirm that the patch fixes the compile. I'm continuing compiling amarok now; let's see if it works!
comment:16 Changed 4 years ago by sharky@…
- Status changed from new to closed
- Resolution set to fixed
Committed in r59297, thanks for the patch.
comment:17 follow-up: ↓ 18 Changed 4 years ago by macports@…
Thanks for fixing this. Dearly missing amarok since moving from linux to macos.
comment:18 in reply to: ↑ 17 Changed 4 years ago by eatdespain@…
Replying to macports@…:
Thanks for fixing this. Dearly missing amarok since moving from linux to macos.
Still a little walk to go...

