-   Slackware (
-   -   Cannot find kerberos libraries/include files after Slackbuild install on 14.0 (

quiescere 05-21-2013 04:00 PM

Cannot find kerberos libraries/include files after Slackbuild install on 14.0
I'm trying to compile libreoffice (because eating broken glass is not painful enough) and the configure script keeps failing with the following error:

configure: error: could not find function 'krb5_sendauth' required for Kerberos 5
I installed the krb5 package, version 1.9.4, via the script on The libgsasl slackbuild also fails with the a similar error in the compilation stage:

gss-extra.h:30:21: fatal error: gssapi.h: No such file or directory
I did try putting simlinks from /usr/lib/kerberos to /usr/kerberos/lib and from /usr/include/kerberos to /usr/kerberos/include, but that accomplished nothing.

Searching around on the web suggests that the krb5_sendauth function is found via com_err.h, and that file along with gssapi.h are definitely present with sane permissions in /usr/kerberos/include.

Any recommendations?

Alien Bob 05-21-2013 04:17 PM

LibreOffice does not need kerberos. You can disable it in the source configuration step with "--without-krb5".
See for more options.


TommyC7 05-22-2013 05:08 AM

Hi quiescere,

I recently installed LibreOffice on my Slackware64-current system without downloading the dependencies externally (I had most of them installed for other programs and I saw no point in externally fetching them or the other like...2 dependencies I didn't have so I installed them directly onto the system).

Other than that, the only dependencies I can think of that's not a part of a default Slackware installation was:
liborcus (use 0.3.0), libwps, libwpg, libvisio, mythes, hyphen, lp_solve, cppunit, graphite2, libexttextcat, liblangtag, libmspub, mdds, perl-Archive-Zip, vigra, lxml and ucpp (these are dependencies for my configuration options below).

Off the top of my head, vigra, lxml, cppunit and perl-Archive-Zip are on (maybe a few others are too).

The rest you have to build yourself (most are just basic ./configure ; make ; make install programs except things like lp_solve, you can find more information in their documentation).

Here are the configure options I used (except I used ./ --some-option instead of ./configure --some-option) to help you out:

--with-system-libs --with-system-ucpp --with-x --with-external-hyph-dir=/opt/share/hyphen --with-lang="$LANGUAGES"
--with-parallelism="$number_of_jobs" --disable-fetch-external --disable-ext-mysql-connector --disable-ccache --disable-gconf
--disable-online-update --disable-dependency-tracking --disable-sdremote-bluetooth --disable-kde --disable-kdeab
--disable-rpath --disable-gnome-vfs --disable-gstreamer --disable-zenity --disable-epm --disable-postgresql-sdbc
--disable-sdremote --disable-ext-report-builder --disable-ext-wiki-publisher --disable-scripting-beanshell
--disable-scripting-javascript --without-krb5 --without-java --without-afms --without-fonts --without-myspell-dicts
--without-gssapi --without-junit --without-unix-wrapper --enable-python=system

A few notes:

1. This was LibreOffice version

2. I had a lot of stuff installed into /opt/<package name> and then lndir'd it up back to /opt (hence --with-external-hyph-dir is set to /opt/share/hyphen).

3. Because I don't do any external fetching and I never installed Python 3.3 and so I had to export a few variables before I started the build in order to use Python shipped with Slackware (and really old versions of Python might not work, mine was version 2.7 but I heard 2.5 is enough for LibreOffice).


a) export PYTHON=$(python -c "import sys, os; print os.path.join('python%s' % sys.version[:3])"
b) export PYTHON_CFLAGS=$($PYTHON-config --cflags)
c) export PYTHON_LIBS=$($PYTHON-config --libs)

4. You can actually leave --with-lang empty or not have it at all, I just chose to have a few other languages installed.

5. You need the help pack tarball (libreoffice-help-<VERSION>.tar.?z*), but if you don't want the help pack installed as a part of the install, then use --without-helppack-integration.

6. I had to grab: 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
and move it into /path/to/where/libreoffice/was/unpacked/libreoffice-

(I thought xmlsec1 was a dependency so I tried installing it, but that didn't stop libreoffice from bugging me to move that tarball to the src/ directory :/ and LO still built without xmlsec1 installed anyways)

7. I also had to remove these images: /path/to/where/libreoffice/was/unpacked/libreoffice- (where ? is the wildcard for a single character).

8. With the given configuration options I used, I needed these patches:

(Other configuration options may require other patches. According to #libreoffice-dev Google might not help, but using git log on the development branch of LibreOffice on the file that failed to make should).

9. After the build is done, you're going to have a lot of "gid_Module_<stuff>" files in your build root, but these can be removed (if you keep them you'll get these same files installed under / and I don't think you'd want that).

10. For cleaning up, I got a bunch of random crap in my /tmp (a few files ending in .tmp, 4 directories, ooopackaging, LibreOffice and LibreOffice_SDK and one more directory composed of random hexadecimal characters).

quiescere 05-22-2013 05:20 PM

That . . . is amazingly thorough and helpful. Thank you very much!


Alien Bob 05-22-2013 05:39 PM


Originally Posted by quiescere (Post 4956810)
That . . . is amazingly thorough and helpful. Thank you very much!


... or you grab the build script I mentioned earlier:
However simply running it and waiting for the package will not teach you as much as TommyC7's post.


All times are GMT -5. The time now is 11:11 AM.