<?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>70445</bug_id>
          
          <creation_ts>2004-11-08 03:13 0000</creation_ts>
          <short_desc>Circulare dep between &quot;vcdimager&quot; and &quot;libcdio&quot;</short_desc>
          <delta_ts>2005-01-28 17:23:51 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>63929</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>motaboy@gentoo.org</reporter>
          <assigned_to>media-video@gentoo.org</assigned_to>
          <cc>fuzzyray@gentoo.org</cc>
    
    <cc>polynomial-c@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>motaboy@gentoo.org</who>
            <bug_when>2004-11-08 03:13:45 0000</bug_when>
            <thetext>kiso-0.7 needs libcdio-0.70. So I made a new ebuild for this.

The problem that I&apos;ve encountered is that it wants to link against the already installed libcdio libs. This is wrong and also gives errors becuase, from this version, libcdio is no more compatible with the old ones, (now it&apos;s called libcdio.so.2.0 instead of so.1.0).

I&apos;ve fixed libtool running &quot;elibtoolize --reverse-deps&quot;.

For this reason some programs like &apos;vcdimager&apos; needs to be rebuilt, revdep-rebuild work and all the program I&apos;ve rebuilt, compiled and worked well with this version too.

I hope this is right, please take a look at the attached ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>motaboy@gentoo.org</who>
            <bug_when>2004-11-08 03:14:40 0000</bug_when>
            <thetext>Created an attachment (id=43524)
libcdio-0.70.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chriswhite@gentoo.org</who>
            <bug_when>2004-11-11 13:03:55 0000</bug_when>
            <thetext>Helped if I change this bug.  Fixed and in portage :Ps</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2004-11-12 21:10:13 0000</bug_when>
            <thetext>Hi,

I was only able to install libcdio once. After installation revdep-rebuild claimed to rebuild libcdio due to missing libiso9660.so.0:

  broken /usr/bin/cd-info (requires libiso9660.so.0 libiso9660.so.0)

but rebuilding fails with this:

/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -march=athlon-xp -mcpu=athlon-xp -O3-pipe -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare   -o cd-info  cd-info.o util.o ../lib/libiso9660.la ../lib/libcdio.la -lpopt  -lvcdinfo -lvcd -liso9660 -lcdio -lm   -lm
i686-pc-linux-gnu-gcc -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -o .libs/cd-info cd-info.o util.o  /usr/lib/libpopt.so /usr/lib/libvcdinfo.so /usr/lib/libvcd.so ../lib/.libs/libiso9660.so ../lib/.libs/libcdio.so -lm
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: libiso9660.so.0, needed by /usr/lib/libvcdinfo.so, not found (try using -rpath or -rpath-link)
/usr/lib/libvcd.so: undefined reference to `iso9660_dir_init_new_su@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_pathtable_l_add_entry@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_dir_calc_record_size@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_pathtable_get_size@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_pathtable_init@ISO9660_0&apos;
/usr/lib/libvcdinfo.so: undefined reference to `iso9660_fs_stat@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_pathtable_m_add_entry@ISO9660_0&apos;
/usr/lib/libvcdinfo.so: undefined reference to `iso9660_find_fs_lsn@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_pathname_valid_p@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_set_evd@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_strncpy_pad@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_set_pvd@ISO9660_0&apos;
/usr/lib/libvcdinfo.so: undefined reference to `iso9660_fs_readdir@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_dirname_valid_p@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_xa_init@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_dir_add_entry_su@ISO9660_0&apos;
/usr/lib/libvcd.so: undefined reference to `iso9660_pathname_isofy@ISO9660_0&apos;
collect2: ld returned 1 exit status
make[2]: *** [cd-info] Error 1
make[2]: Leaving directory `/home/portage/tmp/portage/libcdio-0.70/work/libcdio-0.70/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage/tmp/portage/libcdio-0.70/work/libcdio-0.70&apos;
make: *** [all] Error 2

please reopen

Poly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>motaboy@gentoo.org</who>
            <bug_when>2004-11-13 02:03:30 0000</bug_when>
            <thetext>I think that the problem is a sort of ciclycal deps between &quot;vcdimager&quot; and &quot;libcdio&quot; as if you look in the configure og libcdio you&apos;ll see:

checking for libvcdinfo &gt;= 0.7.20... yes
checking VCDINFO_CFLAGS...
checking VCDINFO_LIBS... -lvcdinfo -lvcd -liso9660 -lcdio -lm

so looks like libcdio searches for vcdimager, and at the same time we have to vcdimager needs libiso9660 that is provided by libcdio.

So there are 2 problems:

1) libcdio ebuild doesn&apos;t have vcdimager in DEPEND. 
2) this is a cyclical dep and the unique solution I can see to avoid it is to disable the vcdimager needs in libcdio with the configure flags: --disable-vcd-info 

media-video herd: any thoughts?

Lars: Thanks for reporting this.
If you want to fix it now you can try removing (emerge -C) libcdio and vcdimager and them reemerging them.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2004-11-13 13:14:11 0000</bug_when>
            <thetext>Hi,

Simone removing licdio and vcdimager and remerge helped. revdep only complained about xine-lib but I&apos;m gonna rebuild this right now.

Poly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>butters@opengames.net</who>
            <bug_when>2004-11-18 10:25:19 0000</bug_when>
            <thetext>I had this problem just now.  After looking at this bug I remerged vcdimager then libcdio and it merged cleanly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wfpearson@gmail.com</who>
            <bug_when>2004-11-22 18:43:02 0000</bug_when>
            <thetext>Also having trouble building libcdio after emerge -C libcdio vcdimager. Following error occurs, I tuned down my cflags and the build is still crapping out in the same place. 

creating cd-drive
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib/ -I../include/       -march=athlon-xp -O2 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT cd-info.o -MD -MP -MF &quot;.deps/cd-info.Tpo&quot; -c -o cd-info.o cd-info.c; \
then mv -f &quot;.deps/cd-info.Tpo&quot; &quot;.deps/cd-info.Po&quot;; else rm -f &quot;.deps/cd-info.Tpo&quot;; exit 1; fi
cd-info.c: In function `init&apos;:
cd-info.c:808: warning: passing arg 1 of `cddb_log_set_handler&apos; from incompatible pointer type
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -march=athlon-xp -O2 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s -o cd-info  cd-info.o util.o ../lib/libiso9660.la ../lib/libcdio.la -lpopt -lcddb    -lm
i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s -o .libs/cd-info cd-info.o util.o  ../lib/.libs/libiso9660.so ../lib/.libs/libcdio.so /usr/lib/libpopt.so /usr/lib/libcddb.so -lm
i686-pc-linux-gnu-gcc: /usr/lib/libcddb.so: No such file or directory
make[2]: *** [cd-info] Error 1
make[2]: Leaving directory `/var/tmp/portage/libcdio-0.70/work/libcdio-0.70/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libcdio-0.70/work/libcdio-0.70&apos;
make: *** [all] Error 2

!!! ERROR: dev-libs/libcdio-0.70 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Not sure if I should have opened a new bug or not, I hope it fits here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wfpearson@gmail.com</who>
            <bug_when>2004-11-22 20:00:39 0000</bug_when>
            <thetext>I figured out the problem, for some reason I had to rebuild libcddb in order to build libcdio. I had libcddb installed but for some reason some of the necessary libraries were missing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>luckyduck@gentoo.org</who>
            <bug_when>2005-01-27 13:07:55 0000</bug_when>
            <thetext>since your problems are fixed i&apos;m closing this one, feel free to reopen if i&apos;m taking things wrong.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>motaboy@gentoo.org</who>
            <bug_when>2005-01-28 17:05:31 0000</bug_when>
            <thetext>The bug is in comment #4 and it&apos;s not fixed as it&apos;s a circular dep. Changing the bug&apos;s title.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>luckyduck@gentoo.org</who>
            <bug_when>2005-01-28 17:23:51 0000</bug_when>
            <thetext>i&apos;m sorry, actually it seems that i had taken things wrong. ;) ok, i think your suggestion if proberbly the best possibility. i&apos;ve removed the circular dep with --disable-vcd-info .</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>43524</attachid>
            <date>2004-11-08 03:14 0000</date>
            <desc>libcdio-0.70.ebuild</desc>
            <filename>libcdio-0.70.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCmluaGVyaXQgbGlidG9vbAoKREVTQ1JJUFRJT049IkEgbGlicmFyeSB0byBlbmNhcHN1
bGF0ZSBDRC1ST00gcmVhZGluZyBhbmQgY29udHJvbCIKSE9NRVBBR0U9Imh0dHA6Ly93d3cuZ251
Lm9yZy9zb2Z0d2FyZS9saWJjZGlvLyIKU1JDX1VSST0ibWlycm9yOi8vZ251LyR7UE59LyR7UH0u
dGFyLmd6IgoKTElDRU5TRT0iR1BMLTIiClNMT1Q9IjAiCktFWVdPUkRTPSJ+YWxwaGEgfmFtZDY0
IH5pYTY0IH5wcGMgfnBwYzY0IH5zcGFyYyB+eDg2IgpJVVNFPSJjZGRiIgoKREVQRU5EPSJkZXYt
dXRpbC9wa2djb25maWcKCWRldi1saWJzL3BvcHQKCWNkZGI/ICggPj1tZWRpYS1saWJzL2xpYmNk
ZGItMC45LjQgKSIKCnNyY19jb21waWxlKCkgewoJZWxpYnRvb2xpemUgLS1yZXZlcnNlLWRlcHMK
ICAgICAgICAKCWVjb25mICQodXNlX2VuYWJsZSBjZGRiKSB8fCBkaWUKCSMgaGFkIHByb2JsZW0g
d2l0aCBwYXJhbGxlbCBtYWtlIChwaG9zcGhhbkBnZW50b28ub3JnKQoJZW1ha2UgLWoxIHx8IGRp
ZQp9CgpzcmNfaW5zdGFsbCgpIHsKCW1ha2UgREVTVERJUj0iJHtEfSIgaW5zdGFsbCB8fCBkaWUK
CWRvZG9jIEFVVEhPUlMgQ2hhbmdlTG9nIElOU1RBTEwgTkVXUyBSRUFETUUgVEhBTktTCn0K
</data>        

          </attachment>
    </bug>

</bugzilla>