LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-21-2013, 03:00 PM   #1
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 13.1
Posts: 52

Rep: Reputation: 15
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:
Code:
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 slackbuilds.org. The libgsasl slackbuild also fails with the a similar error in the compilation stage:
Code:
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?
 
Old 05-21-2013, 03:17 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,308

Rep: Reputation: Disabled
LibreOffice does not need kerberos. You can disable it in the source configuration step with "--without-krb5".
See http://taper.alienbase.nl/mirrors/pe...ice.SlackBuild for more options.

Eric
 
1 members found this post helpful.
Old 05-22-2013, 04:08 AM   #3
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 438

Rep: Reputation: Disabled
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 SlackBuilds.org (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 ./autogen.sh --some-option instead of ./configure --some-option) to help you out:
Code:
--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 4.0.3.3.

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).

Code:
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
from http://dev-www.libreoffice.org/src/
and move it into /path/to/where/libreoffice/was/unpacked/libreoffice-4.0.3.3/src

(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-4.0.3.3/vcl/qa/cppunit/graphicfilter/data/jpg/pass/CVE-2004-0200-?.jpg (where ? is the wildcard for a single character).

8. With the given configuration options I used, I needed these patches:
http://cgit.freedesktop.org/libreoff...92f2edcd9810fd
http://cgit.freedesktop.org/libreoff...0574b20aceca7c
http://cgit.freedesktop.org/libreoff...7412ce38bb13e6

(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).
 
1 members found this post helpful.
Old 05-22-2013, 04:20 PM   #4
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 13.1
Posts: 52

Original Poster
Rep: Reputation: 15
That . . . is amazingly thorough and helpful. Thank you very much!

—quiescere.
 
Old 05-22-2013, 04:39 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,308

Rep: Reputation: Disabled
Quote:
Originally Posted by quiescere View Post
That . . . is amazingly thorough and helpful. Thank you very much!

—quiescere.
... or you grab the build script I mentioned earlier: http://taper.alienbase.nl/mirrors/pe...ice.SlackBuild
However simply running it and waiting for the package will not teach you as much as TommyC7's post.

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what include files and libraries do i need to run gtkglext in codeblocks terrorofdeath Linux - Newbie 12 05-13-2013 03:08 PM
Where to find include files to C? henrik9 Programming 5 04-13-2006 11:30 AM
cannot find mysql include files lsimon4180 Linux - Software 5 03-25-2005 02:41 PM
X libraries or include files not found bishal Linux - Software 3 07-06-2004 01:03 PM
g++ does not find include files StressedLemming Linux - Newbie 2 11-30-2003 06:12 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration