LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compile error on i3 (https://www.linuxquestions.org/questions/slackware-14/compile-error-on-i3-4175474687/)

lvdd 08-25-2013 05:52 PM

Compile error on i3
 
Hi,

I have installed Slackware current a few days ago (now running kernel 3.10.9) and am trying to compile i3-master from this page:
http://slackword.net/files/builds/i3...kware-current/

This link has been posted by somebody in a different thread on this forum. The compilation however stops during compiling the man pages and I can not figure out what the problem is. It happens during a "xsltproc" command. I hope somebody can help me on this.

Code:

install -d -m 0755 /tmp/SBo/package-i3/usr/bin
install -m 0755 i3-dump-log/i3-dump-log /tmp/SBo/package-i3/usr/bin/
make -C .. mans
make[1]: Entering directory `/tmp/SBo/i3'
echo A2X man/i3.1;a2x -f manpage --asciidoc-opts="-f man/asciidoc.conf"  man/i3.man
A2X man/i3.1
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /etc/asciidoc/docbook-xsl/manpage.xsl line 13 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
a2x: failed: xsltproc  --stringparam callout.graphics 0        --stringparam navig.graphics 0        --stringparam admon.textlabel 1        --stringparam admon.graphics 0 --nonet        "/etc/asciidoc/docbook-xsl/manpage.xsl" "/tmp/SBo/i3/man/i3.xml"
make[1]: *** [man/i3.1] Error 1
make[1]: Leaving directory `/tmp/SBo/i3'
make: *** [all] Error 2
cp: cannot stat ‘man/*.1’: No such file or directory

I have one docbook.xsl on my system but it is part of the git-documentation.

Code:

find / -name *docbook.xsl*
/usr/doc/git-1.8.3.2/Documentation/docbook.xsl

I have no "docbook.xsl" in my "/etc/asciidoc/docbook-xsl/" directory and downloading it from the above URL and placing it into this dir doesn't help. Oh and I got "asciidoc" from Alienbobs repository. Maybe it is too old?

BTW: the original link above also offers i3 in version 4.5 which I can compile without error. So it seems to be related to the master branch.

BBTW: I haven't done a full Slackware install. I started with a minimal install and added libs and other software as they were requested by the apps or compiles. So I added libxsl, asciidoc and other bits and pieces until I got to this point.

Any help is appreciated

lvdd

lvdd 08-26-2013 08:40 AM

As an update: I installed asciidoc in the current version (8.6.8) by just quickly adjusting the version information AlienBobs script. It installed fine but didn't help with my error above.

Thanks

lvdd

ponce 08-26-2013 08:51 AM

build it using the slackbuilds.org's build script (I just tested it on a slackware-current full install - note the dependencies).
if you're adventurous, you can also try one I updated to 4.6 this morning for my personal use.

lvdd 08-26-2013 09:03 AM

Thanks ponce,

I tried the slackbuild.org script as well and had no problems with it. But I just wanted a newer version of i3 so I was trying the other build-script and it failed.
I have just used your scripts and they compile without any problem. Will install the package tonight and see if it runs well.

So it really seems to be related to the i3 master-branch.

Thanks for the quick reply

lvdd

sycamorex 08-26-2013 09:06 AM

Thanks ponce. Tonight I'll have to look at my slackbuild script and see why it failed.

lvdd 08-26-2013 03:54 PM

Ok, I can confirm that the i3 package built with ponce's build script is installed and as far as I can tell working fine (at least for me).

@sycamorex: Thanks for taking the time to look into this and trying to find the problem with the master-branch. I will try it once you found the problem. When your script is building fine I will mark this thread as solved.

Thanks guys for your help

lvdd

lvdd 08-28-2013 04:24 PM

@sycamorex

Just to let you know.

I have seen there are some changes in the i3.Slackbuild for i3-master and I have tried to build it again but it stops with the same error.

Code:

install -d -m 0755 /tmp/SBo/package-i3/usr/bin
install -m 0755 i3-dump-log/i3-dump-log /tmp/SBo/package-i3/usr/bin/
make -C .. mans
make[1]: Entering directory `/tmp/SBo/i3'
echo A2X man/i3.1;a2x -f manpage --asciidoc-opts="-f man/asciidoc.conf"  man/i3.man
A2X man/i3.1
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"
compilation error: file /etc/asciidoc/docbook-xsl/manpage.xsl line 13 element import
xsl:import : unable to load http://docbook.sourceforge.net/relea...es/docbook.xsl
a2x: failed: xsltproc  --stringparam callout.graphics 0        --stringparam navig.graphics 0        --stringparam admon.textlabel 1        --stringparam admon.graphics 0 --nonet        "/etc/asciidoc/docbook-xsl/manpage.xsl" "/tmp/SBo/i3/man/i3.xml"
make[1]: *** [man/i3.1] Error 1
make[1]: Leaving directory `/tmp/SBo/i3'
make: *** [all] Error 2
cp: cannot stat ‘man/*.1’: No such file or directory

Anything I can provide to give you more detailed information?

Thanks
lvdd

sycamorex 08-28-2013 06:07 PM

Yes, I have been in touch with the developer of i3 who also maintains a Debian i3 package. I haven't finished it yet but following Michael's comments I've cleaned it a bit removing unnecessary bits:

Code:

# instead of ./configure
sed -i "s,local/lib,lib$LIBDIRSUFFIX," common.mk

The only references to "local/lib" in common.mk only applied to NetBSD.

Code:

# make building verbose
sed -i "/^\.SILENT/d" common.mk

was replaced with:

Code:

  make V=1
[CODE]

I also liked how ponce organised docs - so I pinched it from his script (Thank you:))

Now the reason his script worked for you is because it didn't try to compile man pages (just copied pre-delivered ones - nothing wrong with it).
My script attempts to compile the man pages and that's where it failed for you. Michael, i3 developer, said that he'd seen that error before and:

Quote:

I think xmlto is not installed or
something else is wrong with the asciidoc setup.
I think it might be the case as I tried my script on 2 clean FULL -current installs and it built without any problems. I think most (all?) Slackware package maintainers prepare scripts for FULL Slackware installs.

sycamorex 08-28-2013 06:51 PM

Here's a list of libraries that i3 uses on a clean full -current system:
Code:

        linux-vdso.so.1 (0x00007fffbff07000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f2c75e39000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f2c75c1b000)
        libxcb-util.so.0 => /usr/lib64/libxcb-util.so.0 (0x00007f2c75a14000)
        libxcb-keysyms.so.1 => /usr/lib64/libxcb-keysyms.so.1 (0x00007f2c75812000)
        libxcb-icccm.so.4 => /usr/lib64/libxcb-icccm.so.4 (0x00007f2c7560e000)
        libxcb-xinerama.so.0 => /usr/lib64/libxcb-xinerama.so.0 (0x00007f2c7540b000)
        libxcb-randr.so.0 => /usr/lib64/libxcb-randr.so.0 (0x00007f2c75201000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f2c74ec7000)
        libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00007f2c74cbc000)
        libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007f2c749c8000)
        libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x00007f2c747bc000)
        libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007f2c74571000)
        libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f2c74322000)
        libyajl.so.2 => /usr/lib64/libyajl.so.2 (0x00007f2c7411a000)
        libev.so.4 => /usr/lib64/libev.so.4 (0x00007f2c73f0b000)
        libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f2c73cc9000)
        libstartup-notification-1.so.0 => /usr/lib64/libstartup-notification-1.so.0 (0x00007f2c73ac0000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f2c737bd000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2c735a0000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f2c731d7000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f2c76063000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f2c72fd3000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f2c72dce000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f2c72bca000)
        libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f2c729c0000)
        libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f2c727bb000)
        libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0 (0x00007f2c72513000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f2c722d8000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f2c72047000)
        libpng14.so.14 => /usr/lib64/libpng14.so.14 (0x00007f2c71e22000)
        libxcb-shm.so.0 => /usr/lib64/libxcb-shm.so.0 (0x00007f2c71c1f000)
        libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007f2c71a1e000)
        libxcb-render.so.0 => /usr/lib64/libxcb-render.so.0 (0x00007f2c71815000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f2c71603000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00007f2c713ee000)
        libpangoft2-1.0.so.0 => /usr/lib64/../lib64/libpangoft2-1.0.so.0 (0x00007f2c711d9000)
        libgmodule-2.0.so.0 => /usr/lib64/../lib64/libgmodule-2.0.so.0 (0x00007f2c70fd6000)
        libgthread-2.0.so.0 => /usr/lib64/../lib64/libgthread-2.0.so.0 (0x00007f2c70dd5000)
        libharfbuzz.so.0 => /usr/lib64/../lib64/libharfbuzz.so.0 (0x00007f2c70b44000)
        libffi.so.6 => /usr/lib64/../lib64/libffi.so.6 (0x00007f2c7093b000)


lvdd 08-29-2013 10:40 AM

Thanks a lot for the information, sycamorex.

Michael was right - xmlto was missing but it didn't make any difference. The build still fails for me :-(

I also checked the list you provided and I have every single component from that list on my system. So there must be something else missing.

Anyway, I understand that developers work for full-Installs only, since this is the supported installation method. You have confirmed that your scripts are working with full installs, so my (unsupported) install seems to be the culprit.
I am right now using ponce's package and it is working fine for me, so I am satisfied as it is right now.

So, let's drop this issue as it is obviously something on my side. I will mark this as [SOLVED].

Thank you very much for your time and help and keep on working on the i3 packages for slackware :-)


lvdd

sycamorex 08-29-2013 11:12 AM

I would like to thank you for making me revisit the script to clean it up. If you want to pull the git master branch just replace the section that installs man pages in my script with the one that ponce has. It should build fine.


All times are GMT -5. The time now is 09:50 PM.