New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17562 (closed defect: fixed)

Opened 14 months ago

Last modified 7 months ago

cannot build kdelibs4

Reported by: bgdotmail+macports@… Owned by: illogic-al@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: kdelibs, kde4 Cc: jjstickel@…
Port: kdelibs4

Description

macports revision: 43169

--->  Building kdelibs4
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_boris_macports_dports_kde_kdelibs4/work/build" && make all " returned error 2
Command output: make[2]: Nothing to be done for `kjsembed/kjscmd/CMakeFiles/kjscmd.dir/build'.

*snip*

/opt/local/var/macports/build/_Users_boris_macports_dports_kde_kdelibs4/work/kdelibs-4.1.3/kio/kio/kdirlister.cpp:2527: error: within this context
make[2]: *** [kio/CMakeFiles/kio.dir/kio/kdirlister.o] Error 1
make[1]: *** [kio/CMakeFiles/kio.dir/all] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Attachments

kdelibs4_portfile.patch Download (486 bytes) - added by jjstickel@… 14 months ago.
patch for kdelibs4 Portfile

Change History

  Changed 14 months ago by jmr@…

  • owner changed from macports-tickets@… to illogic-al@…

  Changed 14 months ago by illogical1@…

Hey, gcc 4.0 isn't supported for kde 4.1. Sucks, but thems the breaks. File an upstream bug with KDE and hope they fix this.

  Changed 14 months ago by illogical1@…

The solution is to use gcc 4.2

  Changed 14 months ago by bgdotmail+macports@…

In such case, can you put gcc42 to the list of dependences?

  Changed 14 months ago by illogic-al@…

You already have gcc 4.2. so adding it as a dependency isn't required. Macports requires the latest version of xcode which, on leopard has gcc42. What I do need to do is to say "compile this port with this version of gcc", but I don't really know how (good idea for a ticket) :-)

For tiger apple's gcc4.2 (provided by the apple-gcc42 port) will be necessary but the version in macports won't work, it doesn't install a c++ compiler. I've submitted an updated Portfile so that those on tiger can install apple's gcc4.2:  https://trac.macports.org/ticket/16666. That doesn't seem to be going anywhere however. I think it's pointless to force something that currently doesn't work into the portfile (kdepimlibs won't compile w/ the macports current version of apple-gcc42).

  Changed 14 months ago by bgdotmail+macports@…

I had leopard and corresponding xcode version. How do I bild kdelibs?

  Changed 14 months ago by blb@…

This just came up on the -users mailing list with  how to use gcc-4.2 from Xcode.

follow-up: ↓ 13   Changed 14 months ago by bgdotmail+macports@…

tried gcc4.2 got

port install kdelibs4
--->  Fetching kdelibs4
--->  Verifying checksum(s) for kdelibs4
--->  Extracting kdelibs4
--->  Configuring kdelibs4
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build" && cmake --prefix=/opt/local ../kdelibs-4.1.3 -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_INSTALL_PREFIX=/opt/local -DPHONON_INCLUDE_DIR=/opt/local/include -DPHONON_LIBRARY=/opt/local/lib/libphonon.dylib -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk -Wno-dev " returned error 1
Command output: -- Looking for DNSServiceRefDeallocate - found
-- Found DNSSD: /usr/lib/libSystem.dylib
-- 
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ BZip2
+ OpenSSL
+ Libintl
+ OpenGL
+ Soprano
+ PCRE
+ GSSAPI
+ Aspell
+ Enchant
+ JasPer
+ OpenEXR
+ DNSSD
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ FAM: File Alteration Monitor <http://oss.sgi.com/projects/fam>
Provides file alteration notification facilities using a separate service.
+ HSpell: Hebrew spell checker <http://ivrix.org.il/projects/spell-checker/>
Provides spell checking for Hebrew.
+ Avahi: For Linux and BSDs: a system which facilitates service discovery on a local network, based on the Zeroconf standard <http://avahi.org>
Enables KDE applications access to multicast DNS/DNS-SD service discovery.
-----------------------------------------------------------------------------

-- Configuring incomplete, errors occurred!

Error: Status 1 encountered during processing.

  Changed 14 months ago by jonesc@…

Hi,

I have had similar problems to bgdotmail+macports - I found kdelibs4 has some dependencies that are not listed in the port file.

I had to install pcre and shared-mime-info in order to get kdelins4 to properly configure. I am sure there are others but I cannot recall exactly which right now...

Chris

  Changed 14 months ago by jonesc@…

Hi again.,

One other possible problem. kdelibs4 requires qt4-mac to be built with the +ssl variant. This is not the default so if you try and build kdelibs4 without having qt4-mac installed, qt4-mac is automatically installed without ssl support and kdelibs4 fails.

Chris

  Changed 14 months ago by bgdotmail+macports@…

I have QT build with ssl support.

  Changed 14 months ago by bgdotmail+macports@…

As far as I understand, I need to disable FAM(File Alternation Monitor) and Hspel as I am unable to find their ports and these are optional components

in reply to: ↑ 8 ; follow-up: ↓ 14   Changed 14 months ago by vaulse@…

Replying to bgdotmail+macports@…:

tried gcc4.2 got -- Configuring incomplete, errors occurred!

I get the same error.

in reply to: ↑ 13   Changed 14 months ago by vaulse@…

I rebuilt qt4-mac with +ssl and added the line "configure.compiler gcc-4.2" to the kdelibs4 portfile, and now it does build. The installation conflicts with gnome-menu, but that's beyond the scope of this ticket.

  Changed 14 months ago by illogic-al@…

OK, adding the configure compiler line was on my todo. I'll do it for all the kde ports at so it'll take a while. Hopefully be done later today. I think I have a solution for the +ssl variant issue as well.

  Changed 14 months ago by bgdotmail+macports@…

I did port sync and rebuilt qt4(+dbus+docs+mysql5+nis+psql+sqlite+ssl ) && phonon and everythng wen ok.

  Changed 14 months ago by illogic-al@…

  • status changed from new to assigned

Almost there as of r44101

  Changed 14 months ago by illogic-al@…

submitted ticket #17730 . which should take care of this completely.

  Changed 14 months ago by jjstickel@…

  • cc jjstickel@… added

Cc Me!

  Changed 14 months ago by jjstickel@…

The kde4 ports do not automatically work on Tiger because "configure.compiler gcc-4.2" forces compiling with /usr/bin/gcc-4.2, which does not exit. Please consider the attached patch.

Changed 14 months ago by jjstickel@…

patch for kdelibs4 Portfile

  Changed 14 months ago by jjstickel@…

This change is also necessary for automoc and the other kde4 portfiles.

  Changed 14 months ago by illogic-al@…

on it.

  Changed 14 months ago by illogic-al@…

Actually I'm going to hold off on this change. Apple's gcc has some patches not included in the gnu version. Not knowing whether or not any of the KDE code makes use of this I'm reluctant to mix 'n' match compiler versions. Unless you convince me.

follow-ups: ↓ 26 ↓ 27   Changed 14 months ago by raimue@…

The patch seems reasonable. Otherwise it is not possible to build it on Tiger at all.

  Changed 14 months ago by jjstickel@…

Now that I have finished building kdebase4 (using the patch I suggested), I must report that the applications do not work (on Tiger)! Dolphin fails to run, and it seems that there are various bugs with kwrite. I am asking on the kde-mac email list since this may not be related to this ticket.

in reply to: ↑ 24   Changed 14 months ago by illogic-al@…

Replying to raimue@…:

The patch seems reasonable. Otherwise it is not possible to build it on Tiger at all.

If we'd just fix #16666 it wouldn't be an issue. I've used the portfile I've attached there and know it works on Tiger.

in reply to: ↑ 24 ; follow-up: ↓ 28   Changed 12 months ago by ryandesign@…

Replying to raimue@…:

The patch seems reasonable. Otherwise it is not possible to build it on Tiger at all.

It looks like this is still an issue, except that the fix now needs to occur in the kde4 portgroup (not the kdelibs4 portfile).

in reply to: ↑ 27   Changed 12 months ago by ryandesign@…

Replying to ryandesign@…:

Replying to raimue@…:

The patch seems reasonable. Otherwise it is not possible to build it on Tiger at all.

It looks like this is still an issue, except that the fix now needs to occur in the kde4 portgroup (not the kdelibs4 portfile).

This issue has now been filed as #18306.

  Changed 10 months ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

  Changed 7 months ago by illogic-al@…

  • status changed from assigned to closed
  • resolution set to fixed

See #18306 (Fixed in r53425).

Note: See TracTickets for help on using tickets.