#101 Make failure

open
nobody
None
5
2013-10-10
2013-10-06
Mike
No

Compiling gtkextra-3.0.X, on Slackware 13.37, ./configure runs ok, make does a lot of work and then trips at this stage :-

make[3]: Entering directory /home/mjb/Proj/pic-linux/gtkextra-3.0.5/docs/tutorial' if test -w .; then \ (cd .; \ db2html gtkextra-tutorial.sgml; \ test -d html && rm -r html; \ mv gtkextra-tutorial html; \ mkdir html/images; \ cp images/*.* html/images); \ fi Using catalogs: /etc/sgml/catalog Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html Working on: /home/mjb/Proj/pic-linux/gtkextra-3.0.5/docs/tutorial/gtkextra-tutorial.sgml mv: cannot statgtkextra-tutorial': No such file or directory
mkdir: cannot create directory html/images': No such file or directory cp: targethtml/images' is not a directory
make[3]: [html] Error 1
make[3]: Leaving directory /home/mjb/Proj/pic-linux/gtkextra-3.0.5/docs/tutorial' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/home/mjb/Proj/pic-linux/gtkextra-3.0.5/docs'
make[1]:
[all-recursive] Error 1
make[1]: Leaving directory `/home/mjb/Proj/pic-linux/gtkextra-3.0.5'
make: *** [all] Error 2

Running "db2html ..." manually: There is no html directory there before, or after, this command.

Wild guess that db2html hasn't worked ...

db2html --version
DocBook-utils version 0.6.14 (jw version 1.1)

If the version of db2html is not appropriate, shouldn't ./configure have picked up on this and complained?

Is it possible to bypass the documentation stage as a workaround?

Discussion

  • Fredy Paquet

    Fredy Paquet - 2013-10-07

    As workaround, you could try running configure --disable-docs

    The documentation is available online.

     
  • Mike

    Mike - 2013-10-07

    ~~~~~
    ./configure --disable-docs
    configure: WARNING: unrecognized options: --disable-docs
    checking for a BSD-compatible install... /usr/bin/ginstall -c
    checking whether build environment is sane...
    ...
    config.status: executing depfiles commands
    config.status: executing libtool commands
    configure: WARNING: unrecognized options: --disable-docs
    ~~~~

    I can't see any reference to such an option in the config* files?

    Of course, I should have originally said "Running 'db2html ...' manually: There is no gtkextra-tutorial directory there before, or after, this command."

    I do know which way mv works, honestly.

     
    Last edit: Mike 2013-10-07
  • Mike

    Mike - 2013-10-07

    Blunt instrument approach :-

    Moved docs/tutorial/Makefile to Makefile.original

    and replaced with

    all:
            echo skipped
    
    install:
            echo skipped
    
    clean:
            echo skipped
    

    This seems to have cleared whatever the problem was, although it's not a very good solution.

     
    Last edit: Mike 2013-10-07
  • Fredy Paquet

    Fredy Paquet - 2013-10-08

    Sorry, i meant --disable-gtk-doc
    But anyhow, your blunt instrument approach has the same effect.

    I'm running the same tools version here on CentOS 6.4 without trouble:

    [frera:/home/fredy] db2html --version
    DocBook-utils version 0.6.14 (jw version 1.1)

     
  • Mike

    Mike - 2013-10-08

    Just for completeness ...

    ./configure --disable-gtk-doc

    make

    Gives ...

    Making all in tutorial
    make[3]: Entering directory `/home/mjb/Proj/pic-linux/src/gtkextra-3.0.5/docs/tutorial'
    if test -w .; then \
      (cd .; \
       db2html gtkextra-tutorial.sgml; \
       test -d html && rm -r html; \
       mv gtkextra-tutorial html; \
       mkdir html/images; \
       cp images/*.* html/images); \
    fi
    Using catalogs: /etc/sgml/catalog
    Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html
    Working on: /home/mjb/Proj/pic-linux/src/gtkextra-3.0.5/docs/tutorial/gtkextra-tutorial.sgml
    mv: cannot stat `gtkextra-tutorial': No such file or directory
    mkdir: cannot create directory `html/images': No such file or directory
    cp: target `html/images' is not a directory
    make[3]: *** [html] Error 1
    make[3]: Leaving directory `/home/mjb/Proj/pic-linux/src/gtkextra-3.0.5/docs/tutorial'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/mjb/Proj/pic-linux/src/gtkextra-3.0.5/docs'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/mjb/Proj/pic-linux/src/gtkextra-3.0.5'
    make: *** [all] Error 2
    ~~~~~~
    
    It's going to be one of those days :(
    
    I think the problem is that db2html DOES NOT CREATE a "gtkextra-tutorial" directory. It in fact dumps the .html files right there in docs/tutorial/*.html ...
    
    Time for RTFM RTFM RTFM ....
    

    The jw script is basically called like this:

       jw mydoc.sgml
    
       where mydoc.sgml is a SGML file.
    
       The command line above uses default options: it converts from DocBook (the default frontend) to HTML (the default back-
       end), *** does not put the result in a subdirectory *** (unless specified otherwise in the style sheets), etc.
    
    There seems to be a variation in the way that db2html/jw/docbook operates between systems that's causing this, or with access to style sheets?
    
    (It works fine for the REFERENCE subdirectory, that gets an html dir with contents)
    

    ls reference/
    Makefile Makefile.in gtkextra-docs.sgml gtkextra-sections.txt html resources.sgml version.xml
    Makefile.am compiling.sgml gtkextra-overrides.txt gtkextra.types pics tmpl xml

    ls tutorial/
    Makefile Makefile.mjb book1.html c229.html c248.html gtkextra-tutorial.sgml x191.html x39.html
    Makefile.am Makefile.not c14.html c233.html c27.html images x205.html x52.html
    Makefile.in Makefile.orig c19.html c241.html c32.html x114.html x215.html
    ~~~~~

     
  • Fredy Paquet

    Fredy Paquet - 2013-10-10

    Hello Mike

    What version of GtkExtra did you use ?
    - The latest distribution file .tar.gz
    - Pulled from the git repo

    As i'm updating all the time with from Git repo, i rarley see packaging bugs.

     
    • Mike

      Mike - 2013-10-10

      It was the latest distribution tar.gz from Sourceforge (but I also tried 3.0.4 in case)

       

Log in to post a comment.