Opened 16 years ago
Closed 15 years ago
#17562 closed defect (fixed)
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 (1)
Change History (31)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to illogic-al@… |
---|
comment:2 Changed 16 years ago by illogical1@…
comment:4 Changed 16 years ago by bgdotmail+macports@…
In such case, can you put gcc42 to the list of dependences?
comment:5 Changed 16 years 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).
comment:6 Changed 16 years ago by bgdotmail+macports@…
I had leopard and corresponding xcode version. How do I bild kdelibs?
comment:7 Changed 16 years ago by blb@…
This just came up on the -users mailing list with how to use gcc-4.2 from Xcode.
comment:8 follow-up: 13 Changed 16 years 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.
comment:9 Changed 16 years ago by cjones051073 (Chris Jones)
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
comment:10 Changed 16 years ago by cjones051073 (Chris Jones)
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
comment:12 Changed 16 years 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
comment:13 follow-up: 14 Changed 16 years ago by vaulse@…
Replying to bgdotmail+macports@…:
tried gcc4.2 got -- Configuring incomplete, errors occurred!
I get the same error.
comment:14 Changed 16 years 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.
comment:15 Changed 16 years 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.
comment:16 Changed 16 years ago by bgdotmail+macports@…
I did port sync and rebuilt qt4(+dbus+docs+mysql5+nis+psql+sqlite+ssl ) && phonon and everythng wen ok.
comment:18 Changed 16 years ago by illogic-al@…
submitted ticket #17730 . which should take care of this completely.
comment:20 Changed 16 years 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 16 years ago by jjstickel@…
Attachment: | kdelibs4_portfile.patch added |
---|
patch for kdelibs4 Portfile
comment:21 Changed 16 years ago by jjstickel@…
This change is also necessary for automoc and the other kde4 portfiles.
comment:23 Changed 16 years 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.
comment:24 follow-ups: 26 27 Changed 16 years ago by raimue (Rainer Müller)
The patch seems reasonable. Otherwise it is not possible to build it on Tiger at all.
comment:25 Changed 16 years 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.
comment:26 Changed 16 years ago by illogic-al@…
comment:27 follow-up: 28 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
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).
comment:28 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:30 Changed 15 years ago by illogic-al@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.