Opened 12 years ago

Closed 11 years ago

#36886 closed defect (fixed)

kdepimlibs4: ld: framework not found sasl2

Reported by: joostjodel@… Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: cooljeanius (Eric Gallager)
Port: kdepimlibs4

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Machine:
OS Version: Mac OS X 10.6.8 (10K549)
Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2.53 GHz, 8 GB, SMC 1.47f2
Xcode: 3.2.6

I checked again by doing a completely fresh Macports install and typing:

$ sudo port -v selfupdate ; sudo port -v install kde4-baseapps

error message snippet (full log attached)

make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/work/build'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/work/build/CMakeFiles  8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
[ 54%] Built target akonadi-kde
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/work/build" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port kdepimlibs4 returned: command execution failed
Warning: targets not executed for kdepimlibs4: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Failed to install kdepimlibs4
Please see the log file for port kdepimlibs4 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/main.log
Error: The following dependencies were not installed: kdepimlibs4
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port kde4-baseapps failed

Attachments (2)

main.log (5.5 MB) - added by joostjodel@… 12 years ago.
kdepimlibs4 failed build log /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/main.log
main.2.log (220.0 KB) - added by joostjodel@… 12 years ago.
Logfile kde4-baseapps /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kde4-baseapps/main.log

Change History (10)

Changed 12 years ago by joostjodel@…

Attachment: main.log added

kdepimlibs4 failed build log /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/main.log

Changed 12 years ago by joostjodel@…

Attachment: main.2.log added

Logfile kde4-baseapps /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kde4-baseapps/main.log

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: nicos@… added
Description: modified (diff)
Keywords: kdepimlibs4 kde4-baseapps removed
Owner: changed from macports-tickets@… to sharky@…
Summary: kdepimlibs4 fails to build when trying to compile kde4-baseappskdepimlibs4: ld: framework not found sasl2

The real error appears to be:

:info:build ld: framework not found sasl2

comment:2 Changed 12 years ago by joostjodel@…

Yes, I had noticed a sasl2 error in the logs before, when trying for the first time. Cyrus-sasl2 is already installed automatically during the build process.

As a shot in the dark, I manually installed libgsasl and qca-cyrus-sasl and again tried to build kde4-baseapps. Yet to no avail: the kdepimlibs4 build log again complains about a missing sasl2 framework:

===lines 777 to 783 of /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/main.log===

:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -fno-common -Woverloaded-virtual -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -fexceptions -UQT_NO_EXCEPTIONS -O2 -DNDEBUG -DQT_NO_DEBUG -arch x86_64 -isysroot / -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -single_module -multiply_defined suppress -arch x86_64 -compatibility_version 4.0.0 -current_version 4.8.0 -o ../lib/libkimap.4.8.0.dylib -install_name /opt/local/lib/libkimap.4.dylib CMakeFiles/kimap.dir/kimap_automoc.o CMakeFiles/kimap.dir/acl.o CMakeFiles/kimap.dir/imapset.o CMakeFiles/kimap.dir/imapstreamparser.o CMakeFiles/kimap.dir/job.o CMakeFiles/kimap.dir/appendjob.o CMakeFiles/kimap.dir/capabilitiesjob.o CMakeFiles/kimap.dir/fetchjob.o CMakeFiles/kimap.dir/idlejob.o CMakeFiles/kimap.dir/listjob.o CMakeFiles/kimap.dir/loginjob.o CMakeFiles/kimap.dir/logoutjob.o CMakeFiles/kimap.dir/namespacejob.o CMakeFiles/kimap.dir/rfccodecs.o CMakeFiles/kimap.dir/selectjob.o CMakeFiles/kimap.dir/session.o CMakeFiles/kimap.dir/sessionlogger.o CMakeFiles/kimap.dir/sessionthread.o CMakeFiles/kimap.dir/closejob.o CMakeFiles/kimap.dir/expungejob.o CMakeFiles/kimap.dir/deletejob.o CMakeFiles/kimap.dir/createjob.o CMakeFiles/kimap.dir/subscribejob.o CMakeFiles/kimap.dir/unsubscribejob.o CMakeFiles/kimap.dir/renamejob.o CMakeFiles/kimap.dir/storejob.o CMakeFiles/kimap.dir/copyjob.o CMakeFiles/kimap.dir/searchjob.o CMakeFiles/kimap.dir/acljobbase.o CMakeFiles/kimap.dir/setacljob.o CMakeFiles/kimap.dir/getacljob.o CMakeFiles/kimap.dir/deleteacljob.o CMakeFiles/kimap.dir/myrightsjob.o CMakeFiles/kimap.dir/listrightsjob.o CMakeFiles/kimap.dir/quotajobbase.o CMakeFiles/kimap.dir/setquotajob.o CMakeFiles/kimap.dir/getquotajob.o CMakeFiles/kimap.dir/getquotarootjob.o CMakeFiles/kimap.dir/metadatajobbase.o CMakeFiles/kimap.dir/setmetadatajob.o CMakeFiles/kimap.dir/getmetadatajob.o /opt/local/lib/libkdecore.5.8.0.dylib /opt/local/lib/libQtNetwork.dylib ../lib/libkmime.4.8.0.dylib -framework sasl2 /opt/local/lib/libkdecore.5.8.0.dylib /opt/local/lib/libQtDBus.dylib /opt/local/lib/libQtCore.dylib -framework Carbon :info:build ld: framework not found sasl2 :info:build collect2: ld returned 1 exit status :info:build make[2]: * [lib/libkimap.4.8.0.dylib] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepimlibs4/kdepimlibs4/work/build' :info:build make[1]: * [kimap/CMakeFiles/kimap.dir/all] Error 2 :info:build make[1]: * Waiting for unfinished jobs.... ===end===

comment:3 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 12 years ago by NicosPavlov

The configure phase indeed detects a framework:

Found Sasl2: /Library/Frameworks/sasl2.framework 

Is this framework really part of the macports install on 10.6 ?

For comparison, running

port contents cyrus-sasl2

on 10.8 only shows dynamic libraries in /opt/local/lib, which are correctly linked to during configure and build phase. Typically:

Found Sasl2: /opt/local/lib/libsasl2.dylib 

Furthermore, I could not find any reference to a framework in the Portfile of cyrus-sasl2.

There are 2 possibilities to me:

  1. The framework is indeed part of the macports install, which means that kdelib4 (which requires it) should linked differently to it as it seems to compile (if yes, how ?)
  2. The framework is not part of the macports install, and kdepimlibs4 should not link to it.

I would think that it is option 2, as the buildbot built the port fine, but I would appreciate confirmation before performing the changes.

comment:5 Changed 12 years ago by cooljeanius (Eric Gallager)

The configure phase indeed detects a framework:

Found Sasl2: /Library/Frameworks/sasl2.framework

My patch in issue #37341 could help work around CMake mistakenly picking up frameworks like this.

Edit: said patch was committed in r101544, try cleaning, selfupdate-ing, and rebuilding

Last edited 12 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:6 Changed 12 years ago by cooljeanius (Eric Gallager)

kdepimlibs4 were updated most recently in r103813; so see if it builds for you now.

comment:7 Changed 11 years ago by sharky@…

Cc: nicos@… removed
Owner: changed from sharky@… to nicos@…

comment:8 Changed 11 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

Considering that the issue #37341 is closed and that the ticket is idle for some time with kdepimlibs4 building on all buildbots at present version (4.11.1), closing the ticket.

Note: See TracTickets for help on using tickets.