<?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>2128</bug_id>
          
          <creation_ts>2002-04-26 11:00 0000</creation_ts>
          <short_desc>id3lib does not compile</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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>klausman@gentoo.org</reporter>
          <assigned_to>azarah@gentoo.org</assigned_to>
          <cc>lostlogic@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>klausman@gentoo.org</who>
            <bug_when>2002-04-26 11:00:35 0000</bug_when>
            <thetext>media-libs/id3lib-3.8.0_pre2 does not compile on my Gentoo system. The system
has been brought up-to-date with emerge rsync; emerge -u world.

Versions:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/specs
Configured with: /var/tmp/portage/gcc-3.0.4-r4/work/gcc-3.0.4/configure
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share/gcc-3.0.4 --enable-shared --host=i686-pc-linux-gnu
--build=i686-pc-linux-gnu --target=i686-pc-linux-gnu --enable-threads=posix
--disable-checking --with-local-prefix=/usr/local --with-system-zlib
--enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.0.4

GNU C Library stable release version 2.2.5, by Roland McGrath et al.
Copyright (C) 1992-2001, 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.95.3 20010315 (release).
Compiled on a Linux 2.4.18 system on 2002-04-10.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.9 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug&apos; script to &lt;bugs@gnu.org&gt;.

Error Message:
make[2]: Entering directory
`/var/tmp/portage/id3lib-3.8.0_pre2/work/id3lib-3.8.0pre2/src&apos;
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I..
-I../include/id3 -I../include     -march=i686 -O3 -pipe -Wall -Wno-unused
-Wno-inline -Woverloaded-virtual -Wmissing-declarations  -c tag_file.cpp
rm -f .libs/tag_file.lo
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/id3 -I../include -march=i686 -O3
-pipe -Wall -Wno-unused -Wno-inline -Woverloaded-virtual -Wmissing-declarations
-c  -fPIC -DPIC tag_file.cpp -o .libs/tag_file.lo
tag_file.cpp: In function `size_t RenderV2ToFile(const ID3_TagImpl&amp;, 
   std::fstream&amp;)&apos;:
tag_file.cpp:280: no matching function for call to `std::basic_ofstream&lt;char, 
   std::char_traits&lt;char&gt; &gt;::basic_ofstream(int&amp;)&apos;
/usr/include/g++-v3/bits/std_iosfwd.h:84: candidates are: 
   std::basic_ofstream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_ofstream(const 
   std::basic_ofstream&lt;char, std::char_traits&lt;char&gt; &gt;&amp;)
/usr/include/g++-v3/bits/std_fstream.h:319:                 
   std::basic_ofstream&lt;_CharT, _Traits&gt;::basic_ofstream(const char*, 
   std::_Ios_Openmode = (std::ios_base::out | std::ios_base::trunc)) [with 
   _CharT = char, _Traits = std::char_traits&lt;char&gt;]
/usr/include/g++-v3/bits/std_fstream.h:313:                 
   std::basic_ofstream&lt;_CharT, _Traits&gt;::basic_ofstream() [with _CharT = char, 
   _Traits = std::char_traits&lt;char&gt;]
tag_file.cpp:295: no matching function for call to `std::basic_fstream&lt;char, 
   std::char_traits&lt;char&gt; &gt;::read(unsigned char[8192], int)&apos;
/usr/include/g++-v3/bits/istream.tcc:750: candidates are: 
   std::basic_istream&lt;_CharT, _Traits&gt;&amp; std::basic_istream&lt;_CharT, 
   _Traits&gt;::read(_CharT*, int) [with _CharT = char, _Traits = 
   std::char_traits&lt;char&gt;]
tag_file.cpp:297: no matching function for call to `std::basic_ofstream&lt;char, 
   std::char_traits&lt;char&gt; &gt;::write(unsigned char[8192], size_t&amp;)&apos;
/usr/include/g++-v3/bits/ostream.tcc:370: candidates are: 
   std::basic_ostream&lt;_CharT, _Traits&gt;&amp; std::basic_ostream&lt;_CharT, 
   _Traits&gt;::write(const _CharT*, int) [with _CharT = char, _Traits = 
   std::char_traits&lt;char&gt;]
make[2]: *** [tag_file.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/id3lib-3.8.0_pre2/work/id3lib-3.8.0pre2/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/id3lib-3.8.0_pre2/work/id3lib-3.8.0pre2&apos;
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 3, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/media-libs/id3lib/id3lib-3.8.0_pre2.ebuild .</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-04-26 13:33:29 0000</bug_when>
            <thetext>Hi Az,

It looks like something needs to be done to have this thing compile with gcc-3,
which is apparently not linking into the libstdc++?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lostlogic@gentoo.org</who>
            <bug_when>2002-04-26 16:39:32 0000</bug_when>
            <thetext>I have had issues similar to this with other applications (nothing in portage) 
it appears that gcc-3 doesn&apos;t manage to correctly (or maybe gcc-2 linked too 
liberaly) detect when c++ headers have been included and it needs to link 
against -lstdc++</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>klausman@gentoo.org</who>
            <bug_when>2002-04-27 05:16:02 0000</bug_when>
            <thetext>I ahve tried doing the &quot;manual dance&quot;, i.e. doing the ebuild-steps by hand and
doing the last failing call to c++ by hand and adding &quot;-lstdc++&quot;. Same error.
Either it&apos;s unrelated to that lib or the error is introduced earlier.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-04-28 04:10:23 0000</bug_when>
            <thetext>Its not a linker error, but compiler error.  Something in the code is not
gcc-3 friendly, and I do not have that type of experience.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-05-05 05:55:52 0000</bug_when>
            <thetext>Should be fixed in -r1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>klausman@gentoo.org</who>
            <bug_when>2002-05-05 07:26:06 0000</bug_when>
            <thetext>I can confirm this, the library now compiles. Thanks for the good work!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>