<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>6760</bug_id>
          
          <creation_ts>2002-08-20 03:55 0000</creation_ts>
          <short_desc>error on gstreamer with USE=&quot;doc&quot;</short_desc>
          <delta_ts>2003-02-04 19:42:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>spider@gentoo.org</reporter>
          <assigned_to>nick@capital-internet.net</assigned_to>
          <cc>andreas.w.simon@gmail.com</cc>
    
    <cc>mathewalexander@surewest.net</cc>

      

      
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2002-08-20 03:55:30 0000</bug_when>
            <thetext>make[3]: Entering directory
`/mnt/reiser/portage/gstreamer-0.4.0-r1/work/gstreamer-0.4.0/docs/manual&apos;
fig2dev -Lpng filter-element-multi.fig filter-element-multi.png
make[3]: fig2dev: Command not found
make[3]: *** [filter-element-multi.png] Error 127



I cant figure out whats wrong with my gstreamer :/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-08-22 23:41:40 0000</bug_when>
            <thetext>is transfig emerged spider?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rigo@MED1A.nl</who>
            <bug_when>2002-08-27 04:16:11 0000</bug_when>
            <thetext>epm -ql transfig

&lt;SNIP&gt;
/usr/X11R6/bin/fig2dev
/usr/X11R6/bin/fig2ps2tex
/usr/X11R6/bin/fig2ps2tex.sh
&lt;/SNIP&gt;

Seemant is right, fig2dev is what you need Spider,

Rigo</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2002-08-27 16:15:26 0000</bug_when>
            <thetext>Yes, I&apos;ve got fig2dev installed :/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2002-09-03 13:55:14 0000</bug_when>
            <thetext>seems I can&apos;t get this to work. 

reassigning to bug-wranglers
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2002-09-20 06:36:08 0000</bug_when>
            <thetext>*** Bug 8089 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>g2boojum@gentoo.org</who>
            <bug_when>2002-09-22 20:44:18 0000</bug_when>
            <thetext>Interesting.  I get a different fig2dev error:

make[3]: Entering directory
`/var/tmp/portage/gstreamer-0.4.0-r1/work/gstreamer-0.4.0/docs/manual&apos;
fig2dev -Lpng bin-element-ghost.fig bin-element-ghost.png
fig2dev -Lpng bin-element.fig bin-element.png
Unknown device: png16m
Unknown device: png16m
fig2dev: broken pipe (GhostScript aborted?)

*Sigh*  Looks like gs is compiled w/o png16m support.  Tossing to raker
now that he&apos;s a gs expert!  (/me crosses fingers)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2002-09-22 22:07:07 0000</bug_when>
            <thetext>this now works for me with gstreamer 0.4.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andreas.w.simon@gmail.com</who>
            <bug_when>2002-09-23 04:10:28 0000</bug_when>
            <thetext>With gstreamer version 0.4.1 I get the same
error as Grant Goodyear in Comment #6.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2002-09-23 14:42:32 0000</bug_when>
            <thetext>I am running the latest ghostscript (7.05.5 - currently masked) and I get 
through the png conversions without a problem.

I get an error here though...
&lt;snip&gt;
fig2dev -Lpng queue.fig queue.png
fig2dev -Lpng sink-element.fig sink-element.png
fig2dev -Lpng src-element.fig src-element.png
fig2dev -Lpng state-diagram.fig state-diagram.png
fig2dev -Lpng thread.fig thread.png
rm -f *.html
rm -f -r gstreamer-manual
mkdir gstreamer-manual
cp magic-png magic
xsltproc ./../xsl/html.xsl gstreamer-manual.xml
warning: failed to load external 
entity &quot;file:///usr/share/sgml/docbook/yelp/docbook.0/xhtml/chunk.xsl&quot;
compilation error: file ./../xsl/html.xsl line 10 element import
xsl:import : unable to load 
http://docbook.sourceforge.net/release/xsl/1.50.0/xhtml/chunk.xsl
make[3]: *** [gstreamer-manual] Error 5
make[3]: Leaving directory `/var/tmp/portage/gstreamer-0.4.1/work/gstreamer-
0.4.1/docs/manual&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gstreamer-0.4.1/work/gstreamer-
0.4.1/docs&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gstreamer-0.4.1/work/gstreamer-
0.4.1&apos;
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -123, Exitcode 2
!!! compile failed
&lt;/snip&gt;

warning: failed to load external 
entity &quot;file:///usr/share/sgml/docbook/yelp/docbook.0/xhtml/chunk.xsl&quot;

This file is actually on the system 
as /usr/share/sgml/docbook/yelp/docbook/html/chunk.xsl

I modified html.xsl in the gstreamer source to reference the proper chunk.xsl 
file.  It now gets past that point.

It is now failing on lots of declarations of what seem to be xml elements 
created by the gstreamer people and then a final bang here...

&lt;snip&gt;
./html2xml.py ../libs/html
make[4]: Leaving directory `/var/tmp/portage/gstreamer-0.4.0-r1/work/gstreamer-
0.4.0/docs/gst&apos;
./html2xml.py ../gst/html
sed &apos;s@base=&quot;&quot;@base=&quot;/usr/share/gtk-doc/html/gstreamer-libs&quot;@g&apos; html.devhelp &gt; 
gstreamer-libs.devhelp
perl -i -p -e &apos;s/name=&quot;html&quot;/name=&quot;gstreamer-libs&quot;/&apos; gstreamer-libs.devhelp
rm html.devhelp
sed &apos;s@base=&quot;&quot;@base=&quot;/usr/share/gtk-doc/html/gstreamer&quot;@g&apos; html.devhelp &gt; 
gstreamer.devhelp
sed: can&apos;t read html.devhelp: No such file or directory
make[3]: *** [gstreamer.devhelp] Error 2
make[3]: Leaving directory `/var/tmp/portage/gstreamer-0.4.0-r1/work/gstreamer-
0.4.0/docs/devhelp&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gstreamer-0.4.0-r1/work/gstreamer-
0.4.0/docs&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gstreamer-0.4.0-r1/work/gstreamer-
0.4.0&apos;
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -123, Exitcode 2
!!! compile failed
&lt;/snip&gt;

html.devhelp has shown up missing on both the 0.4.0-r1 and the 0.4.1 ebuilds... 

I then patched ${S}/docs/devhelp/Makefile.in.  I commented out the html.devhelp 
refrences and just let perl process the gstreamer-libs.devhelp.  The ebuild now 
finishes installing and emerges successfully.

I have added the patch and new ebuild as gstreamer-0.4.1-r1.  Please emerge the 
lateset ghostscript (7.05.5) and the latest gstreamer (0.4.1-r1) and test.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andreas.w.simon@gmail.com</who>
            <bug_when>2002-09-23 16:00:22 0000</bug_when>
            <thetext>gstreamer-0.4.1-r1 and ghostscript-7.05.5 fixed  that &quot;doc&quot; bug here. Thanks. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2002-09-27 08:51:02 0000</bug_when>
            <thetext>Cool.  The ebuild has been unmasked.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blocke@gentoo.org</who>
            <bug_when>2002-10-19 11:58:28 0000</bug_when>
            <thetext>
May be unrelated but I now get a sandbox violation with the doc USE setting with
0.4.1-r2:

mkdir -p --
/var/tmp/portage/gstreamer-0.4.1-r2/image//usr/share/gtk-doc/html/gstreamer-libs
-- Installing ./html/book1.html
-- Installing ./html/gstreamer-libs-gstcolorspace.html
-- Installing ./html/gstreamer-libs-gstgetbits.html
-- Installing ./html/gstreamer-libs-gstidct.html
-- Installing ./html/gstreamer-libs-gstputbits.html
-- Installing ./html/gstreamer-libs-gstriff.html
-- Installing ./html/gstreamer-libs-gstvideoscale.html
-- Installing ./html/gstreamer-libs.html
-- Installing ./html/index.sgml
-- Fixing Crossreferences
ACCESS DENIED  open_wr:   /usr/share/gtk-doc/html/gstreamer-libs/book1.html.new
Can&apos;t open /usr/share/gtk-doc/html/gstreamer-libs/book1.html: Permission denied
at /usr/bin/gtkdoc-fixxref line 134.
make[3]: Leaving directory
`/var/tmp/portage/gstreamer-0.4.1-r2/work/gstreamer-0.4.1/docs/libs&apos;
make[2]: Leaving directory
`/var/tmp/portage/gstreamer-0.4.1-r2/work/gstreamer-0.4.1/docs/libs&apos;


Package installs fine if sandbox is turned off.  Should I file a seperate bug or
is this related to recent work?



</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2002-10-21 16:55:08 0000</bug_when>
            <thetext>I have just done a &apos;USE=&quot;doc&quot; emerge gstreamer&apos; without a problem.  I am on an
up to date gcc-3.2 system.

What version of gcc and portage are you using?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2002-10-21 18:16:09 0000</bug_when>
            <thetext>hm.. documentation generation seems to work now, but :::
-- Installing ./html/gstreamer-libs-gstvideoscale.html
-- Installing ./html/gstreamer-libs.html
-- Installing ./html/index.sgml
-- Fixing Crossreferences
ACCESS DENIED  open_wr:  
/usr/share/gtk-doc/html/gstreamer-libs/gstreamer-libs-gstriff.html.new
Can&apos;t open /usr/share/gtk-doc/html/gstreamer-libs/gstreamer-libs-gstriff.html:
Permission denied at /usr/bin/gtkdoc-fixxref line 134.
make[3]: Leaving directory
`/mnt/build/portage/gstreamer-0.4.1-r2/work/gstreamer-0.4.1/docs/libs&apos;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andreas.w.simon@gmail.com</who>
            <bug_when>2002-10-27 04:01:19 0000</bug_when>
            <thetext>The png conversion bug is there again.
This is on a freshly installed system with
gstreamer 0.4.1-r2 and ghostscript 7.05.5.

Part from the output:
make[3]: Entering directory
`/var/tmp/portage/gstreamer-0.4.1-r2/work/gstreamer-0.4.1/docs/manual&apos;
fig2dev -Lpng bin-element.fig bin-element.png
fig2dev -Lpng bin-element-ghost.fig bin-element-ghost.png
Unknown device: png16m
fig2dev: broken pipe (GhostScript aborted?)
command was: gs -q -dSAFER -sDEVICE=png16m -r80 -g577x192
-sOutputFile=bin-element.png -
make[3]: *** [bin-element.png] Error 1
make[3]: *** Waiting for unfinished jobs....
Unknown device: png16m
fig2dev: broken pipe (GhostScript aborted?)
command was: gs -q -dSAFER -sDEVICE=png16m -r80 -g577x192
-sOutputFile=bin-element-ghost.png</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2002-10-30 12:44:20 0000</bug_when>
            <thetext>&gt;&gt;&gt; media-libs/gstreamer-0.4.1-r2 merged.
&gt;&gt;&gt; Recording media-libs/gstreamer in &quot;world&quot; favorites file...
&lt;snip&gt;
ns1 portage # emerge -s ghostscript libpng
Searching...
[ Results for search key : ghostscript ]
[ Applications found : 1 ]

*  app-text/ghostscript
      Latest version available: 7.05.5
      Latest version installed: 7.05.5
      Homepage: http://www.easysw.com/
      Description: ESP Ghostscript -- an enhanced version of GNU Ghostscript 
with better printer support

Searching...
[ Results for search key : libpng ]
[ Applications found : 1 ]

*  media-libs/libpng
      Latest version available: 1.2.4
      Latest version installed: 1.2.4
      Homepage: http://www.libpng.org/
      Description: libpng

My conversions went without any errors...

emerge rsync
emerge libpng
emerge clean
emerge ghostscript
Maybe ghostscript is not aware of png&apos;s abilities?
--- Unknown device: png16m ---
This is just a guess.  If it doesn&apos;t work for you please don&apos;t flame me :)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andreas.w.simon@gmail.com</who>
            <bug_when>2002-10-30 16:52:28 0000</bug_when>
            <thetext>Although I have media-libs/libpng-1.2.5 installed,
ghostscript&apos;s configure test does not see it:

....
checking for local png library source... no
checking for png_check_sig in -lpng... no
configure: disabling png output devices
....

and hence build without png support.
Here the respective part of config.log:

configure:4245: checking for local png library source
configure:4260: result: no
configure:4262: checking for png_check_sig in -lpng
configure:4295: i686-pc-linux-gnu-gcc -o conftest -march=athlon-xp -O3
-mfpmath=sse -pipe   conftest.c -lpng  -lm  &gt;&amp;5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `deflate&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `inflate&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `inflateInit_&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `crc32&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `deflateInit2_&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `inflateReset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `deflateReset&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `inflateEnd&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libpng.so: undefined reference
to `deflateEnd&apos;
collect2: ld returned 1 exit status


From the ChangeLog of libpng I read that libpng
stoped since version 1.2.5 to link against zlib.
This is the cause of missing libpng support of gs
when using the newest png lib.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nick@capital-internet.net</who>
            <bug_when>2002-10-30 18:58:53 0000</bug_when>
            <thetext>I have added a patch to ghostscript-7.05.5 which should allow libpng to be
detected properly.
Please test and let me know.  I have verified it working even with the newest..
still marked unstable... libpng-1.2.5

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andreas.w.simon@gmail.com</who>
            <bug_when>2002-10-31 04:02:52 0000</bug_when>
            <thetext>Yes, the patch works fine. :-) </thetext>
          </long_desc>
      
    </bug>

</bugzilla>