LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-05-2015, 06:42 PM   #1
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Rep: Reputation: 45
Slackware from Scratch problem


While attempting to follow Nobidino's list for SFS, all went well until trying to compile kmod.
The following error message appears:

[QUOTE]Making all in man
XSLT modprobe.d.5
I/O error : Attempt to load network entity http://docbook.sourceforge.net/relea...es/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/relea...es/docbook.xsl
make[2]: *** [modprobe.d.5] Error 4
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2 [\QUOTE]

Tried googling, but no joy
Looking at the Makefile (under the man directory) it appears that xsltproc is supposed to bring
"docbook.xsl" from it's internet site. This confuses me because SFS should have no connection
to the internet at this time.

If anyone can point me to a resolution for the above error, I would appreciate it.

Worsel
 
Old 08-05-2015, 07:31 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
What if you download the file and then change your hosts file so that domain points to 127.0.0.1 and then host the file locally in the same directory structure?

You might also be able to change the source to point to a local copy of the file, but this could be really involved (or it could be a simple sed change).
 
Old 09-03-2015, 05:39 PM   #3
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
Sorry to be late getting back to this, but other things interferred.

I tried your suggestions, bassmadrigal, but couldn't get any of them to work.

As a workaround, I disabled making the documentation. This allowed kmod to compile.
So I think this thread is solved.

Thanks for the suggestions.

Nadrek
 
Old 09-05-2015, 03:46 AM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I haven't looked at the makefile in question, but as far as xsltproc is concerned, you should be able to make an entry in the /etc/xml/catalog file that redirects the docbook namespace URI to a local file.
Here's what is in my Slackware64 14.1 /etc/xml/catalog file (note that /etc/xml/docbook is another XML catalog file!):
Code:
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook XML" catalog="file:///etc/xml/docbook"/>
  <delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML" catalog="file:///etc/xml/docbook"/>
  <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/" catalog="file:///etc/xml/docbook"/>
  <delegateURI uriStartString="http://www.oasis-open.org/docbook/" catalog="file:///etc/xml/docbook"/>
  <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1.2/" catalog="file:///etc/xml/docbook"/>
  <delegateURI uriStartString="http://www.oasis-open.org/docbook/xml/4.1.2/" catalog="file:///etc/xml/docbook"/>
  <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/" catalog="file:///etc/xml/docbook"/>
  <delegateURI uriStartString="http://www.oasis-open.org/docbook/xml/4.2/" catalog="file:///etc/xml/docbook"/>
  <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.3/" catalog="file:///etc/xml/docbook"/>
  <delegateURI uriStartString="http://www.oasis-open.org/docbook/xml/4.3/" catalog="file:///etc/xml/docbook"/>
  <delegateSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.4/" catalog="file:///etc/xml/docbook"/>
  <delegateURI uriStartString="http://www.oasis-open.org/docbook/xml/4.4/" catalog="file:///etc/xml/docbook"/>
  <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/1.78.1" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-1.78.1"/>
  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/1.78.1" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-1.78.1"/>
  <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/current" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-1.78.1"/>
  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-1.78.1"/>
</catalog>
After you futz around with XML catalogs for a while, it eventually will make sense; your brain will itch a bit during the process.
 
1 members found this post helpful.
Old 09-06-2015, 02:33 AM   #5
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
one question concerning the building of kmod: are-you sure linuxdoc-tools is complete? The right size of the package is around 6.9 Mo. The package can be built without being complete, until it's not complete you can have that kind of problem.
A solution to your problem can be : add "--disable-manpages" to configure, and rebuild it later.

Last edited by nobodino; 09-06-2015 at 02:39 AM.
 
Old 09-10-2015, 12:43 AM   #6
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Original Poster
Rep: Reputation: 45
To Richard Cranium:
I had already noticed the brain itch problem with xml.

To Nobidino:
That was what I did. After I was able to boot SFS, I went back and re-compiled kmod. It worked nicely.

Thanks

Nadrek
 
  


Reply



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
Slackware from Scratch(?) ReaperX7 Slackware 40 12-30-2015 12:32 AM
[SOLVED] Building Slackware from scratch nobodino Slackware 82 07-03-2015 05:32 AM
Slackware from Scratch? dhave Slackware 10 02-07-2005 04:04 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration