Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139812 - media-libs/libgphoto2-2.2.1 fails to compile with USE="doc"
Summary: media-libs/libgphoto2-2.2.1 fails to compile with USE="doc"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-09 13:37 UTC by Michael Cramer
Modified: 2006-09-02 04:06 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2006-07-09 13:37:09 UTC
make[4]: Entering directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1/camlibs/canon/doc'
cd . && gtkdoc-scan --module=canon --source-dir=../../../camlibs/canon
cd . && gtkdoc-mkdb --module=canon --source-dir=../../../camlibs/canon
if ! test -d html ; then mkdir html ; fi
cd html && gtkdoc-mkhtml canon .././canon-api.sgml
cd . && gtkdoc-mktmpl --module=canon
/usr/bin/openjade:.././canon-api.sgml:55:3:E: cannot find "sgml/library-interface.sgml"; tried ".././sgml/library-interface.sgml", "/usr/share/sgml/sgml/library-interface.sgml"
/usr/bin/openjade:.././canon-api.sgml:56:10:E: end tag for "CHAPTER" which is not finished
/usr/bin/openjade:.././canon-api.sgml:60:3:E: cannot find "sgml/internal-functions.sgml"; tried ".././sgml/internal-functions.sgml", "/usr/share/sgml/sgml/internal-functions.sgml"
/usr/bin/openjade:.././canon-api.sgml:61:10:E: end tag for "CHAPTER" which is not finished
/usr/bin/openjade:.././canon-api.sgml:65:3:E: cannot find "sgml/macros.sgml"; tried ".././sgml/macros.sgml", "/usr/share/sgml/sgml/macros.sgml"
/usr/bin/openjade:.././canon-api.sgml:66:10:E: end tag for "CHAPTER" which is not finished
/usr/bin/openjade:.././canon-api.sgml:70:3:E: cannot find "sgml/serial-communication.sgml"; tried ".././sgml/serial-communication.sgml", "/usr/share/sgml/sgml/serial-communication.sgml"
/usr/bin/openjade:.././canon-api.sgml:71:10:E: end tag for "CHAPTER" which is not finished
/usr/bin/openjade:.././canon-api.sgml:75:3:E: cannot find "sgml/usb-control.sgml"; tried ".././sgml/usb-control.sgml", "/usr/share/sgml/sgml/usb-control.sgml"
/usr/bin/openjade:.././canon-api.sgml:76:10:E: end tag for "CHAPTER" which is not finished
/usr/bin/openjade:.././canon-api.sgml:80:3:E: cannot find "sgml/listing-directories.sgml"; tried ".././sgml/listing-directories.sgml", "/usr/share/sgml/sgml/listing-directories.sgml"
/usr/bin/openjade:.././canon-api.sgml:81:3:E: cannot find "sgml/directory-entries.sgml"; tried ".././sgml/directory-entries.sgml", "/usr/share/sgml/sgml/directory-entries.sgml"
/usr/bin/openjade:.././canon-api.sgml:82:10:E: end tag for "CHAPTER" which is not finished
/usr/bin/openjade:.././canon-api.sgml:86:3:E: cannot find "sgml/power-status.sgml"; tried ".././sgml/power-status.sgml", "/usr/share/sgml/sgml/power-status.sgml"
/usr/bin/openjade:.././canon-api.sgml:87:10:E: end tag for "CHAPTER" which is not finished
/usr/bin/openjade:.././canon-api.sgml:91:3:E: cannot find "sgml/structures.sgml"; tried ".././sgml/structures.sgml", "/usr/share/sgml/sgml/structures.sgml"
/usr/bin/openjade:.././canon-api.sgml:92:10:E: end tag for "CHAPTER" which is not finished
File doesn't exist: ./tmpl/power-status.sgml
File doesn't exist: ./tmpl/file-attributes.sgml
File doesn't exist: ./tmpl/serial-communication.sgml
File doesn't exist: ./tmpl/directory-entries.sgml
File doesn't exist: ./tmpl/listing-directories.sgml
File doesn't exist: ./tmpl/usb-control.sgml
File doesn't exist: ./tmpl/macros.sgml
WARNING: No declaration found for: IS_EOS
File doesn't exist: ./tmpl/structures.sgml
File doesn't exist: ./tmpl/internal-functions.sgml
WARNING: No declaration found for: canonCamModel
File doesn't exist: ./tmpl/library-interface.sgml
100% symbol docs coverage (0 symbols documented, 0 symbols incomplete, 0 not documented)
See canon-undocumented.txt for a list of missing docs.
The doc coverage percentage doesn't include intro sections.
WARNING: No declaration found for: IS_EOS
WARNING: No declaration found for: canonCamModel
=============================================================================
WARNING: 7 unused declarations.
  These can be found in canon-unused.txt.
  They should be added to canon-sections.txt in the appropriate place.
=============================================================================
make[4]: *** [html] Error 1
make[4]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1/camlibs/canon/doc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1/camlibs/canon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1/camlibs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1'
make: *** [all] Error 2

!!! ERROR: media-libs/libgphoto2-2.2.1 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  libgphoto2-2.2.1.ebuild, line 89:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Aaron Peterson 2006-07-09 23:40:29 UTC
I don't have sgml-docbook-4.3 on my system.. but I have 4.4

/usr/bin/openjade:/etc/sgml/sgml-docbook-4.3.cat:1:8:E: cannot open "/usr/share/sgml/docbook/sgml-dtd-4.3/catalog" (No such file or directory)

it dies with or without the doc useflag for me
Comment 2 gent_bz 2006-07-16 22:51:01 UTC
I generally get the reported bug when installing libgphoto2-2.2.1-r1 (and can succesfully emerge with USE="-doc"), but sometimes the merge completes, but a bunch of files are installed to / that should probably go in /usr/share/doc/libgphoto2-2.2.1-r1/

Excerpt from emerge (with a little bit of context) :
>>> /usr/include/gphoto2/gphoto2.h
>>> /usr/include/gphoto2/gphoto2-port-info-list.h
>>> /usr/include/gphoto2/gphoto2-context.h
>>> /usr/include/gphoto2/gphoto2-abilities-list.h
>>> /usr/include/gphoto2/gphoto2-setting.h
>>> /canon/
>>> /canon/canon-directory-entries.html
>>> /canon/serial-communication.html
>>> /canon/structures.html
>>> /canon/library-interface.html
>>> /canon/canon-power-status.html
>>> /canon/directories.html
>>> /canon/index.html
>>> /canon/index.sgml
>>> /canon/canon-structures.html
>>> /canon/macros.html
>>> /canon/internal-functions.html
>>> /canon/canon-serial-communication.html
>>> /canon/power-status.html
>>> /canon/canon-internal-glue-functions.html
>>> /canon/canon-standard-gphoto2-camera-interface.html
>>> /canon/usb-control.html
>>> /canon/canon-listing-directories.html
>>> /canon/canon-utility-macros.html
>>> /canon/canon-usb-communication.html
>>> /gphoto2/
>>> /gphoto2/gphoto2base.html
>>> /gphoto2/license.html
>>> /gphoto2/gphoto2-camera.html
>>> /gphoto2/gphoto2-cameraabilitieslist.html
>>> /gphoto2/gphoto2-cameralist.html
>>> /gphoto2/index.html
>>> /gphoto2/index.sgml
>>> /gphoto2/gphoto2-gphoto2-error-codes.html
>>> /gphoto2/gphoto2-cameralibrary.html
>>> /gphoto2/gphoto2-camerafile.html
>>> /gphoto2/gphoto2objects.html
>>> /gphoto2/gphoto2-camerawidget.html
>>> /gphoto2/gphoto2.html
>>> /gphoto2/gphoto2-camerafilesystem.html
>>> /gphoto2-port/
>>> /gphoto2-port/gphoto2-port-gphoto2-port.html
>>> /gphoto2-port/gphoto2-base.html
>>> /gphoto2-port/index.html
>>> /gphoto2-port/index.sgml
>>> /gphoto2-port/gphoto2-port-gphoto2-port-result.html
>>> /gphoto2-port/gphoto2-port-gphoto2-port-info-list.html
>>> /gphoto2-port/gphoto2-port.html
>>> /gphoto2-port/gphoto2-port-gphoto2-port-library.html
>>> /gphoto2-port/gphoto2-port-gphoto2-port-log.html
>>> Safely unmerging already-installed instance...
etc.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2006-07-18 04:31:48 UTC
I've fixed the problems with installing into the wrong directory for 2.2.1. I've added docbook-sgml-dtd-4.2 as a dependency to hopefully fix up this docbook issue, however, it will probably be more complicated than that. Can people try compiling with USE=doc again with the new ebuild in portage. Thanks.
Comment 4 Michael Cramer 2006-07-18 10:50:21 UTC
i tried the latest version 

# $Header: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.2.1-r1.ebuild,v 1.3 2006/07/18 11:30:43 liquidx Exp $

and i got:
make[4]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1/libgphoto2_port/ptpip'
Making all in doc
make[4]: Entering directory `/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1/libgphoto2_port/doc'
cd . && gtkdoc-scan --module=gphoto2-port --source-dir=../libgphoto2_port
cd . && gtkdoc-mkdb --module=gphoto2-port --source-dir=../libgphoto2_port
if ! test -d html ; then mkdir html ; fi
cd html && gtkdoc-mkhtml gphoto2-port .././gphoto2-port-api.sgml
Can't open ./gphoto2-port-decl.txt at /usr/bin/gtkdoc-mkdb line 3228.
make[4]: *** [sgml] Error 2
make[4]: *** Waiting for unfinished jobs....
/usr/bin/openjade:.././gphoto2-port-api.sgml:91:6:E: cannot find "sgml/gphoto2-port-log.sgml"; tried ".././sgml/gphoto2-port-log.sgml", "/usr/share/sgml/sgml/gphoto2-port-log.sgml"
/usr/bin/openjade:.././gphoto2-port-api.sgml:92:6:E: cannot find "sgml/gphoto2-port-result.sgml"; tried ".././sgml/gphoto2-port-result.sgml", "/usr/share/sgml/sgml/gphoto2-port-result.sgml"
/usr/bin/openjade:.././gphoto2-port-api.sgml:93:6:E: cannot find "sgml/gphoto2-port-info-list.sgml"; tried ".././sgml/gphoto2-port-info-list.sgml", "/usr/share/sgml/sgml/gphoto2-port-info-list.sgml"
/usr/bin/openjade:.././gphoto2-port-api.sgml:94:6:E: cannot find "sgml/gphoto2-port.sgml"; tried ".././sgml/gphoto2-port.sgml", "/usr/share/sgml/sgml/gphoto2-port.sgml"
/usr/bin/openjade:.././gphoto2-port-api.sgml:95:6:E: cannot find "sgml/gphoto2-port-library.sgml"; tried ".././sgml/gphoto2-port-library.sgml", "/usr/share/sgml/sgml/gphoto2-port-library.sgml"
/usr/bin/openjade:.././gphoto2-port-api.sgml:96:11:E: end tag for "CHAPTER" which is not finished
make[4]: *** [html] Error 1
make[4]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1/libgphoto2_port/doc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1/libgphoto2_port'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1/libgphoto2_port'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1'
make: *** [all] Error 2

!!! ERROR: media-libs/libgphoto2-2.2.1-r1 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  libgphoto2-2.2.1-r1.ebuild, line 103:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2006-07-18 16:29:27 UTC
OK, that is weird, can you actually go into:

/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1/libgphoto2_port/doc/sgml

and then check if there is a file called: library-interface.sgml

That is what the error is complaining about. If you can't find it, then there is something wrong with the files extracting into the build dir, if it is there, then gtk-doc is going crazy.
Comment 6 Petr Kocmid 2006-07-28 23:58:45 UTC
I have some another incident with USE="doc" on this however it fairly fits the summary description, so I am adding it here rather than making confusingly new bug with same summary text.

(only relevant information extracted:)
...
Making all in doc
make[4]: Entering directory `/var/tmp/portage/libgphoto2-2.2.1-r1/work/libgphoto2-2.2.1/libgphoto2_port/doc'
cd . && gtkdoc-scan --module=gphoto2-port --source-dir=../libgphoto2_port
cd . && gtkdoc-mkdb --module=gphoto2-port --source-dir=../libgphoto2_port
Can't open ./gphoto2-port-decl.txt at /usr/bin/gtkdoc-mkdb line 3228.
make[4]: *** [sgml] Error 2
...
!!! ERROR: media-libs/libgphoto2-2.2.1-r1 failed.
...

note that unlike Michael who has this too I do not see any problem with openjade.
Comment 7 Ed Catmur 2006-08-04 06:31:32 UTC
Parallel make bug? It compiled OK for me setting MAKEOPTS=-j1.
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2006-08-06 17:33:00 UTC
could very well be a parallel make bug. well, if someone can check that and confirm MAKEOPTS="-j1" really does fix it, please do.
Comment 9 Friedrich Oslage (RETIRED) gentoo-dev 2006-08-20 10:41:24 UTC
I got the same error with MAKEOPTS="-j2". Setting MAKEOPTS="-j1" fixed it for me.
Comment 10 Flávio Albuquerque Camilo 2006-08-31 13:15:16 UTC
(In reply to comment #9)
> I got the same error with MAKEOPTS="-j2". Setting MAKEOPTS="-j1" fixed it for
> me.
> 

  Same here.
Comment 11 Alastair Tse (RETIRED) gentoo-dev 2006-09-02 03:39:38 UTC
thanks for all the reports. i've added -j1 to libgphoto2. looking back, somewhere along the line the -j1 was removed, probably by me. so apologies if it was me.
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-09-02 04:06:45 UTC
probably happened when Daniel merged my patch, also I reported that I removed the MAKEOPTS restriction as it built fine on my box (-j6).

bug #120812 comment #6 and comment #14/15