Opened 4 years ago
Last modified 3 months ago
#60690 assigned defect
kdepim4 @4.14.3_5: ordered comparison between pointer and zero; ld: library not found for -lakonadi-calendar
Reported by: | bejodavid | Owned by: | NicosPavlov |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | bjoern.ricks@…, cooljeanius (Eric Gallager) | |
Port: | kdepim4 |
Description (last modified by bejodavid)
(I need this for kalarm, which is part of the kdepim4 package to my best knowledge)
1.
sudo port upgrade outdated
--> [port-upgrade.log.txt]
2.
XXX@YYY:~/x> sudo port install kdepim* Password: ---> Computing dependencies for kdepim4 ---> Fetching archive for kdepim4 ---> Attempting to fetch kdepim4-4.14.3_5.darwin_18.x86_64.tbz2 from https://packages.macports.org/kdepim4 ---> Attempting to fetch kdepim4-4.14.3_5.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/kdepim4 ---> Attempting to fetch kdepim4-4.14.3_5.darwin_18.x86_64.tbz2 from http://cph.dk.packages.macports.org/kdepim4 ---> Fetching distfiles for kdepim4 ---> Verifying checksums for kdepim4 ---> Extracting kdepim4 ---> Applying patches to kdepim4 ---> Configuring kdepim4 ---> Building kdepim4 Error: Failed to build kdepim4: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdepim4/kdepim4/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port kdepim4 failed
--> [main.log]
see:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdepim4/kdepim4/work/kdepim -4.14.3/korganizer/kodaymatrix.cpp:865:39: error: ordered comparison between pointer and zero ('const void *' and 'int') :info:build if ( mEvents.contains( mDays[i] ) > 0 ) { :info:build ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ :info:build 1 error generated. :info:build make[2]: *** [korganizer/CMakeFiles/korganizerprivate.dir/kodaymatrix.o] Error 1
3.
correction in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdepim4/kdepim4/work/kdepim-4.14.3/korganizer/kodaymatrix.cpp :
replace
if ( mEvents.contains( mDays[i] ) > 0 ) {
with
if ( mEvents.contains( mDays[i] ) ) {
then
cd opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdepim4/kdepim4/work/build /usr/bin/make -j4 -w all VERBOSE=ON
--> [output2.txt]
In there: (!!! THIS IS THE ACTUAL PROBLEM !!!)
ld: library not found for -lakonadi-calendar clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [lib/libkorganizerprivate.4.14.3.dylib] Error 1 make[2]: Leaving directory `/opt/local
4.
xxx@yyy:~/x> sudo port clean "kdepim*" ---> Cleaning kdepim4 ---> Cleaning kdepim4-runtime ---> Cleaning kdepimlibs4 ---> Cleaning kdepimlibs4-kioslaves xxx@yyy:~/x> sudo port install "kdepim*" ---> Computing dependencies for kdepim4 ---> Fetching archive for kdepim4 ---> Attempting to fetch kdepim4-4.14.3_5.darwin_18.x86_64.tbz2 from https://packages.macports.org/kdepim4 ---> Attempting to fetch kdepim4-4.14.3_5.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/kdepim4 ---> Attempting to fetch kdepim4-4.14.3_5.darwin_18.x86_64.tbz2 from http://cph.dk.packages.macports.org/kdepim4 ---> Fetching distfiles for kdepim4 ---> Verifying checksums for kdepim4 ---> Extracting kdepim4 ---> Applying patches to kdepim4 ---> Configuring kdepim4 ---> Building kdepim4 Error: Failed to build kdepim4: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kdepim4/kdepim4/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port kdepim4 failed
--> same error in main.log, then same error after the manual correction
- No akonadi-calendar package?
xxx@yyy:~/x> sudo port search "akonadi*" akonadi @1.13.1.20141210_5 (devel, kde, kde4) A personal information management storage service. xxx@yyy:~/x> sudo port install "akonadi*" ---> Computing dependencies for akonadi ---> Cleaning akonadi ---> Scanning binaries for linking errors ---> No broken files found. ---> No broken ports found.
- system info:
xxx@yyy:~/x> uname -a Darwin *****.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
System Software Overview: System Version: macOS 10.14.6 (18G103) Kernel Version: Darwin 18.7.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: ********* User Name: ******** Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 1 day 17:59
Attachments (1)
Change History (9)
Changed 4 years ago by bejodavid
Attachment: | output-files.zip added |
---|
comment:1 Changed 4 years ago by bejodavid
Description: | modified (diff) |
---|
comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | bjoern.ricks@… added |
---|---|
Owner: | set to NicosPavlov |
Port: | kdepim4 added |
Status: | new → assigned |
Summary: | port install kdepim4 fails: ld: library not found for -lakonadi-calendar → kdepim4 @4.14.3_5: ordered comparison between pointer and zero; ld: library not found for -lakonadi-calendar |
comment:3 Changed 4 years ago by Nicolas Pavillon <pavillon.nicolas@…>
comment:4 follow-up: 5 Changed 4 years ago by NicosPavlov
Thanks for the detailed report ! I fixed the pointer comparisons in the commit above.
I can't however reproduce your issue with the linker, and your log seems to indicate that akonadi is found at the configure stage. Does the issue persists from a clean build with the revised Portfile?
comment:5 Changed 4 years ago by bejodavid
Replying to NicosPavlov:
Thanks for the detailed report ! I fixed the pointer comparisons in the commit above.
I can't however reproduce your issue with the linker, and your log seems to indicate that akonadi is found at the configure stage. Does the issue persists from a clean build with the revised Portfile?
Sorry for the noob question, but how do I do that? Do I have to specify a parameter to "port install kdepim4"...?
comment:6 Changed 4 years ago by NicosPavlov
You can run
sudo port clean kdepim4 sudo port selfupdate sudo port install kdepim4
This will clean the state of the port, update the Portfiles with latest versions, and install.
comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
I assume that fixed it, because you mentioned in #60808 that you were able to install kdepim4?
comment:8 Changed 3 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
contains the files main.log, output2.txt, port-upgrade.log.txt mentioned in the description