Solved [Solved] /usr/ports/x11/kde4 Issues

Folks, I have been attempting to install KDE 4 for days now, but I am running into failure after failure. Many issues I have been able to resolve after searching. With this latest failure, I am not sure how to resolve. This is version 9.2-RELEASE.

Below is the output of make install clean in /usr/ports/x11/kde4:

Code:
===>  Installing for kde-4.10.5_1
===>   kde-4.10.5_1 depends on package: kdeaccessibility>=4.8.0 - not found
===>    Verifying install for kdeaccessibility>=4.8.0 in /usr/ports/accessibility/kdeaccessibility4
===>  Installing for kdeaccessibility-4.10.5
===>   kdeaccessibility-4.10.5 depends on file: /usr/local/kde4/bin/jovie - not found
===>    Verifying install for /usr/local/kde4/bin/jovie in /usr/ports/accessibility/jovie
===>   jovie-4.10.5_1 depends on file: /usr/local/bin/cmake - found
===>   jovie-4.10.5_1 depends on file: /usr/local/bin/moc-qt4 - found
===>   jovie-4.10.5_1 depends on file: /usr/local/bin/qmake-qt4 - found
===>   jovie-4.10.5_1 depends on file: /usr/local/bin/rcc - found
===>   jovie-4.10.5_1 depends on file: /usr/local/bin/uic-qt4 - found
===>   jovie-4.10.5_1 depends on file: /usr/local/lib/qt4/libQtXml.so - found
===>   jovie-4.10.5_1 depends on file: /usr/local/bin/automoc4 - found
===>   jovie-4.10.5_1 depends on file: /usr/local/kde4/lib/libkdecore.so.7 - not found
===>    Verifying install for /usr/local/kde4/lib/libkdecore.so.7 in /usr/ports/x11/kdelibs4
===>   kdelibs-4.10.5_2 depends on file: /usr/local/share/xml/docbook/4.2/docbookx.dtd - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/share/xsl/docbook/html/docbook.xsl - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/bin/cmake - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/libdata/pkgconfig/sm.pc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/libdata/pkgconfig/xcursor.pc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/libdata/pkgconfig/xfixes.pc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/libdata/pkgconfig/xrender.pc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtCore.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtDBus.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtDeclarative.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/bin/designer-qt4 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtGui.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/bin/moc-qt4 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtNetwork.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtOpenGL.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libphonon.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/bin/qmake-qt4 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQt3Support.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtTest.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/bin/rcc - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtScript.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtSql.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtSvg.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/bin/uic-qt4 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtWebKit.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/qt4/libQtXml.so - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/libattica.so.0 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/bin/automoc4 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/share/ontology/core/rdf.ontology - found
===>   kdelibs-4.10.5_2 depends on package: kde4-shared-mime-info>=0 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/libsoprano.so.4 - found
===>   kdelibs-4.10.5_2 depends on file: /usr/local/lib/libstreamanalyzer.so.0 - not found
===>    Verifying install for /usr/local/lib/libstreamanalyzer.so.0 in /usr/ports/deskutils/libstreamanalyzer
===>   libstreamanalyzer-0.7.8_2 depends on executable: pkgconf - found
===>   libstreamanalyzer-0.7.8_2 depends on file: /usr/local/bin/cmake - found
===>   libstreamanalyzer-0.7.8_2 depends on shared library: libavcodec.so - not found
===>    Verifying for libavcodec.so in /usr/ports/multimedia/ffmpeg
===>   ffmpeg-2.1.1_1,1 depends on executable: yasm - found
===>   ffmpeg-2.1.1_1,1 depends on file: /usr/local/bin/as - found
===>   ffmpeg-2.1.1_1,1 depends on executable: texi2html - found
===>   ffmpeg-2.1.1_1,1 depends on file: /usr/local/include/frei0r.h - found
===>   ffmpeg-2.1.1_1,1 depends on file: /usr/local/include/vdpau/vdpau.h - found
===>   ffmpeg-2.1.1_1,1 depends on executable: gmake - found
===>   ffmpeg-2.1.1_1,1 depends on executable: pkgconf - found
===>   ffmpeg-2.1.1_1,1 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   ffmpeg-2.1.1_1,1 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   ffmpeg-2.1.1_1,1 depends on file: /usr/local/libdata/pkgconfig/xfixes.pc - found
===>   ffmpeg-2.1.1_1,1 depends on file: /usr/local/bin/perl5.16.3 - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libaacplus.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libasound.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libopencore-amrnb.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libopencore-amrwb.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libass.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libcdio.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libcelt0.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libfaac.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libfdk-aac.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libfontconfig.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libfreetype.so - found
===>   ffmpeg-2.1.1_1,1 depends on shared library: libgnutls.so - not found
===>    Verifying for libgnutls.so in /usr/ports/security/gnutls
===>   gnutls-2.12.23_2 depends on executable: pkgconf - found
===>   gnutls-2.12.23_2 depends on package: libtool>=2.4 - found
===>   gnutls-2.12.23_2 depends on shared library: libiconv.so.3 - found
===>   gnutls-2.12.23_2 depends on shared library: nettle - found
===>   gnutls-2.12.23_2 depends on shared library: gpg-error - found
===>   gnutls-2.12.23_2 depends on shared library: p11-kit - not found
===>    Verifying install for p11-kit in /usr/ports/security/p11-kit
===>  Building for p11-kit-0.20.1
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1'
Making all in build
gmake[2]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/build'
Making all in certs
gmake[3]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/build/certs'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/build/certs'
gmake[3]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/build'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/build'
gmake[2]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/build'
Making all in common
gmake[2]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/common'
Making all in .
gmake[3]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/common'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/common'
Making all in tests
gmake[3]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/common/tests'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/common/tests'
gmake[2]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/common'
Making all in p11-kit
gmake[2]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/p11-kit'
Making all in .
gmake[3]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/p11-kit'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/p11-kit'
Making all in tests
gmake[3]: Entering directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/p11-kit/tests'
  CCLD     mock-one.la
  CCLD     mock-two.la
  CCLD     mock-three.la
  CCLD     mock-four.la
  CCLD     print-messages
  CCLD     frob-setuid
  CCLD     test-progname
  CCLD     test-util
gmake[3]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/p11-kit/tests'
gmake[2]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1/p11-kit'
gmake[1]: Leaving directory `/usr/ports/security/p11-kit/work/p11-kit-0.20.1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/security/p11-kit.
*** [lib-depends] Error code 1

Stop in /usr/ports/security/gnutls.
*** [install] Error code 1

Stop in /usr/ports/security/gnutls.
*** [lib-depends] Error code 1

Stop in /usr/ports/multimedia/ffmpeg.
*** [install] Error code 1

Stop in /usr/ports/multimedia/ffmpeg.
*** [lib-depends] Error code 1

Stop in /usr/ports/deskutils/libstreamanalyzer.
*** [build-depends] Error code 1

Stop in /usr/ports/x11/kdelibs4.
*** [install] Error code 1

Stop in /usr/ports/x11/kdelibs4.
*** [build-depends] Error code 1

Stop in /usr/ports/accessibility/jovie.
*** [run-depends] Error code 1

Stop in /usr/ports/accessibility/kdeaccessibility4.
*** [install] Error code 1

Stop in /usr/ports/accessibility/kdeaccessibility4.
*** [run-depends] Error code 1

Stop in /usr/ports/x11/kde4.
*** [install] Error code 1

Stop in /usr/ports/x11/kde4.

I have had various issues for days installing this. However, I did not find a work-around for this one. Does anyone have an idea on how to resolve this? Thanks much in advance.
 
Re: /usr/ports/x11/kde4 Issues

I have a work-around for the above, so never mind.

All I had to do was pkg_add -r p11-kit followed by make installonce again. Got past this issue, and now I am onto the next failure.
 
Re: [gave up] /usr/ports/x11/kde4 Issues

I am now throwing in the towel. After using the work-around I posted above, I get failures related to db4 being used that is now deprecated. The documented upgrade instructions to use db5 or db6 look like tons of work. I would not mind doing it all, but it looks like KDE 4 will not work correctly due to using pkg_add for ports that do not compile successfully. I have had to do this for a few ports now (cmake was another one, but there were so many that I forget them all now).

Spending days compiling something that will end up not working anyway does not seem like a good use of my time, so I am calling it quits for now. I'll do all work in the console for now.
 
Re: [gave up] /usr/ports/x11/kde4 Issues

# pkg install kde
Or, similar to install via the binary packages instead of compiling something as huge as KDE4, X11, and all their dependencies?
 
Re: [gave up] /usr/ports/x11/kde4 Issues

Jamil said:
I am now throwing in the towel. After using the work-around I posted above, I get failures related to db4 being used that is now deprecated. The documented upgrade instructions to use db5 or 6 look like tons of work. I would not mind doing it all, but it looks like kde4 will not work correctly due to using pkg_add for ports that do not compile successfully. I have had to do this for a few ports now (cmake was another one, but there were so many that I forget them all now).

Spending days compiling something that will end up not working anyway does not seem like a good use of my time, so I am calling it quits for now. I'll do all work in the console for now...

:)

I feel your pain. I really do. This:

phoenix said:
# pkg install kde

is your best course of action. Ports should be avoided 90% of the time; too many isses such as what you have experienced. It is the worst to endure hours of compiling to end up with nothing (sometimes worse than nothing: more problems). There is no advantage gained using ports -- you will not notice any performance enhancement with ports vice packages -- so unless you absoluteley need non-stock build options it is irrational to use them. And the new package management system is fantastic; much easier to maintain your installations than portmaster. Save yourself some time, headaches, and make life easier with pkgng.
 
Re: [gave up] /usr/ports/x11/kde4 Issues

Okay. I will give the package a try. The only reason I even started with the KDE 4 port was that I successfully compiled all of KDE when I ran FreeBSD years ago (I think it was version 5 or 6). I had no issues whatsoever at that time and did not realize that the port for it was in bad shape now. Secondly, I updated GCC on my system to gcc48 and am using
Code:
CFLAGS+=-march=native -mtune=native
for all compiles. My understanding was that I should see some(?) performance benefit with compiles to CPU native code.

Apologies for formatting. This message may need some work too...
 
Re: [gave up] /usr/ports/x11/kde4 Issues

The KDE port is probably not in bad shape, but you've done some foot-shooting. First, don't set CFLAGS. At all. If you want some possibly improved performance, look at CPUTYPE. Second, don't mess with the default compiler. Either of these should be considered experimental.

That said, KDE is one of the biggest metaports, and if you want that kind of UI, it may be best to install PCBSD from the start.
 
Re: [gave up] /usr/ports/x11/kde4 Issues

Thanks. I may have shot myself with changing the default compiler, but this does not explain all the errors in the port. I really do think kde4 has issues, and I can run through it again to inform the maintainer. For example, following the UPDATING instructions for db4, there are dependencies that fail later in the install after I installed db6 (I think it was). Something in ports was specifically attempting install db4 that fails. This had happened after running portsnap fetch extract. This was after executing portupgrade -a (I also tried portmaster -a when portupgrade -a did not resolve the issue). Heck, I tried over again doing everything documented in UPDATING one by one after each failed. :D This was after restoring from my backup prior to trying something new.

Also, Installing over from the beginning is no issue at all, so I will do this now. I am installing under VMware, so it is just a matter of deleting the VM and starting over. I make backups of the VM prior to any significant steps I attempt. VMware makes the process much simpler, so thank goodness for that at least.
 
Re: [gave up] /usr/ports/x11/kde4 Issues

wblock@ said:
The KDE port is probably not in bad shape, but you've done some foot-shooting. First, don't set CFLAGS. At all. If you want some possibly improved performance, look at CPUTYPE. Second, don't mess with the default compiler. Either of these should be considered experimental.

I took a look at CPUTYPE and remembered why I had decided to update gcc. From looking at /usr/share/mk/bsd.cpu.mk, the highest cpu that may make use of what my CPU offers is core2:

Code:
.  elif ${CPU_TYPE} == "core2"
MACHINE_CPU = ssse3 sse3 sse2 sse i686 mmx i586 i486 i386

I'm currently running two Xeon E5-2680 CPUs. From my reading, I found that newer versions of gcc have improved this to support newer CPUs. This was my rationale for updating to gcc48. I understand that some things may not work, but kde4 wasn't compiling even before I decided to try this...
 
Re: [gave up] /usr/ports/x11/kde4 Issues

There could be multiple things going on. The BDB ports recently changed, and I'm not clear on how that will affect other ports. But security/p11-kit builds here.
 
Re: [gave up] /usr/ports/x11/kde4 Issues

Thanks everyone.

I now have X Windows installed and configured along with KDE. I used pkg_add to do it in the following steps:


I had to add a pkg_add for xorg, because the kde install did not include it as a dependency.

One thing I noticed while installing both xorg and kde4 via pkg_add was several repeating warnings regarding the version of gettext installed and expected. Apparently an older version is installed with 9.2 RELEASE when a newer version is expected. I ignored all these warnings, so I hope nothing blows up due to it.
 
One final point to add to this--

Even though I had both X11 and KDE4 installed and runnable, I had other issues related to how I had to install this. One issue I found right away was that perl was broken on my system. I think this may be due to the package requiring an older version of perl originally included in 9.2 RELEASE. I believe running portsnap updated the perl dependency to a newer version for ports. What ended up happening as a result was that my pkg database contained two different versions of perl when there can only be one.

I had to manually fix all this after the fact, but I did not post any details of how I fixed it. In a nutshell, I executed pkg_info -Ea | more then paged down to perl packages to see that there were two. I then did a make deinstall in ports for the older version followed by make install clean for the newer version. After that, I executed pkgdb -s /old/new/ to correct pkgdb. I replaced old with the package name that pkg_info -Ea | more showed for the older version of perl and replaced new with the later version.

After doing this, I then executed portupgrade -fr perl to ensure no errors/warnings were reported regarding two different versions of perl being installed to the same location. There is a warning telling you to press CTRL-C, and if you see it, do press it to fix this.

This will resolve the perl issue of using pkg_add. There may be other similar issues, but I have not run into these (yet).
 
Re: [gave up] /usr/ports/x11/kde4 Issues

phoenix said:
# pkg install kde
Or, similar to install via the binary packages instead of compiling something as huge as KDE4, X11, and all their dependencies?
Hi!
I am trying to install KDE using pkgng as you proposed, but I am not able to locate the KDE package. I am using FreeBSD 9.2 amd64.

Code:
# pkg install kde4
Updating repository catalogue
pkg: No packages matching 'kde4' available in the repositories

My /usr/local/etc/pkg/repos/FreeBSD.conf look like this

Code:
FreeBSD: {
    url: "pkg+http://pkg.eu.FreeBSD.org/${ABI}/latest",
    mirror_type: "srv",
    enabled: yes
}

The result is the same with both kde and kde4. When I browse http://pkg.freebsd.org/freebsd:9:x86:64/latest/All/ I am not able to find either of them. kde4 exists in the ports tree.
 
I didn't bother with newer pkg support, because it's just one more thing to add to something I was already having issues with. pkg_add worked with no issues for me, and it is supported under release 9.2.

Although after thinking about this more, I am surprised that binary packages were suggested at all considering updates are made all the time for security, stability, etc. The packages are not getting these same updates (at least not for quite some time).
 
Back
Top