public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf
@ 2004-02-10 16:12 Richard dot Kreckel at Framatome-ANP dot com
  2004-02-10 16:19 ` [Bug c++/14098] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Richard dot Kreckel at Framatome-ANP dot com @ 2004-02-10 16:12 UTC (permalink / raw)
  To: gcc-bugs

Consider this program:

#include <iostream>
#include <typeinfo>
#include <ext/stdio_sync_filebuf.h>
using namespace std;
typedef __gnu_cxx::stdio_sync_filebuf< char > unix_sync_filebuf_t;
int main()
{
    if ( dynamic_cast< unix_sync_filebuf_t* >( cout.rdbuf() ) ) {
	cout << "It's a C FILE." << endl;
    }
}

$ g++-3.4-20040206 test.cc
/tmp/cckpk27u.o(.text+0x13d): In function `main':
: undefined reference to `typeinfo for __gnu_cxx::stdio_sync_filebuf<char,
std::char_traits<char> >'
collect2: ld returned 1 exit status

Compiling statically fixes the problem:

$ g++-3.4-20040206 test.cc -static  &&  ./a.out
It's a C FILE.

Maybe this could be related to PR14097.

-- 
           Summary: typeinfo issue with __gnu_cxx::stdio_sync_filebuf
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Richard dot Kreckel at Framatome-ANP dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14098


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/14098] typeinfo issue with __gnu_cxx::stdio_sync_filebuf
  2004-02-10 16:12 [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf Richard dot Kreckel at Framatome-ANP dot com
@ 2004-02-10 16:19 ` pinskia at gcc dot gnu dot org
  2004-02-11  4:43 ` [Bug libstdc++/14098] " ljrittle at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-10 16:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-10 16:19 -------
Confirmed, it works on my powerpc-apple-darwin7.2.0 box just fine (which by the way does not have 
weak symbols but shared libraries) but not on my i686-pc-linux-gnu box, this is with 3.5.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|libstdc++                   |c++
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-10 16:19:18
               date|                            |
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14098


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libstdc++/14098] typeinfo issue with __gnu_cxx::stdio_sync_filebuf
  2004-02-10 16:12 [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf Richard dot Kreckel at Framatome-ANP dot com
  2004-02-10 16:19 ` [Bug c++/14098] " pinskia at gcc dot gnu dot org
@ 2004-02-11  4:43 ` ljrittle at gcc dot gnu dot org
  2004-02-11  5:03 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ljrittle at gcc dot gnu dot org @ 2004-02-11  4:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ljrittle at gcc dot gnu dot org  2004-02-11 04:43 -------
This is actually a library bug.  Related to export symbol list on platforms
which implement hidden symbols (i.e. why not seen on darwin).  Working
on fix.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
          Component|c++                         |libstdc++
   Last reconfirmed|2004-02-10 16:19:18         |2004-02-11 04:43:44
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14098


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libstdc++/14098] typeinfo issue with __gnu_cxx::stdio_sync_filebuf
  2004-02-10 16:12 [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf Richard dot Kreckel at Framatome-ANP dot com
  2004-02-10 16:19 ` [Bug c++/14098] " pinskia at gcc dot gnu dot org
  2004-02-11  4:43 ` [Bug libstdc++/14098] " ljrittle at gcc dot gnu dot org
@ 2004-02-11  5:03 ` cvs-commit at gcc dot gnu dot org
  2004-02-11  5:12 ` ljrittle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-11  5:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-11 05:03 -------
Subject: Bug 14098

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ljrittle@gcc.gnu.org	2004-02-11 05:03:13

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/config: linker-map.gnu 

Log message:
	PR libstdc++/14098
	* config/linker-map.gnu: Add typeinfo and typeinfo name for
	__gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2323&r2=1.2324
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/linker-map.gnu.diff?cvsroot=gcc&r1=1.54&r2=1.55



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14098


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libstdc++/14098] typeinfo issue with __gnu_cxx::stdio_sync_filebuf
  2004-02-10 16:12 [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf Richard dot Kreckel at Framatome-ANP dot com
                   ` (2 preceding siblings ...)
  2004-02-11  5:03 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-11  5:12 ` ljrittle at gcc dot gnu dot org
  2004-02-11  6:04 ` [Bug libstdc++/14098] [3.4 only] " cvs-commit at gcc dot gnu dot org
  2004-02-11  6:23 ` ljrittle at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ljrittle at gcc dot gnu dot org @ 2004-02-11  5:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ljrittle at gcc dot gnu dot org  2004-02-11 05:12 -------
Fixed on mainline pending final roll to 3.4.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-02-11 04:43:44         |2004-02-11 05:12:38
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14098


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libstdc++/14098] [3.4 only] typeinfo issue with __gnu_cxx::stdio_sync_filebuf
  2004-02-10 16:12 [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf Richard dot Kreckel at Framatome-ANP dot com
                   ` (3 preceding siblings ...)
  2004-02-11  5:12 ` ljrittle at gcc dot gnu dot org
@ 2004-02-11  6:04 ` cvs-commit at gcc dot gnu dot org
  2004-02-11  6:23 ` ljrittle at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-11  6:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-11 06:04 -------
Subject: Bug 14098

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ljrittle@gcc.gnu.org	2004-02-11 06:04:00

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/config: linker-map.gnu 
	libstdc++-v3/include/ext: pool_allocator.h mt_allocator.h 

Log message:
	PR libstdc++/14098
	* config/linker-map.gnu: Add typeinfo and typeinfo name for
	__gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
	
	PR libstdc++/14097
	* config/linker-map.gnu: Add typeinfo and typeinfo name for
	__gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
	
	* include/ext/pool_allocator.h: Include c++config.h.
	* include/ext/mt_allocator.h: Include c++config.h.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.31&r2=1.2224.2.32
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/linker-map.gnu.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.52.4.1&r2=1.52.4.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/pool_allocator.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.7&r2=1.7.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/mt_allocator.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.8.2.1&r2=1.8.2.2



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14098


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libstdc++/14098] [3.4 only] typeinfo issue with __gnu_cxx::stdio_sync_filebuf
  2004-02-10 16:12 [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf Richard dot Kreckel at Framatome-ANP dot com
                   ` (4 preceding siblings ...)
  2004-02-11  6:04 ` [Bug libstdc++/14098] [3.4 only] " cvs-commit at gcc dot gnu dot org
@ 2004-02-11  6:23 ` ljrittle at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ljrittle at gcc dot gnu dot org @ 2004-02-11  6:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ljrittle at gcc dot gnu dot org  2004-02-11 06:23 -------
Rolled to 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14098


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-11  6:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-10 16:12 [Bug libstdc++/14098] New: typeinfo issue with __gnu_cxx::stdio_sync_filebuf Richard dot Kreckel at Framatome-ANP dot com
2004-02-10 16:19 ` [Bug c++/14098] " pinskia at gcc dot gnu dot org
2004-02-11  4:43 ` [Bug libstdc++/14098] " ljrittle at gcc dot gnu dot org
2004-02-11  5:03 ` cvs-commit at gcc dot gnu dot org
2004-02-11  5:12 ` ljrittle at gcc dot gnu dot org
2004-02-11  6:04 ` [Bug libstdc++/14098] [3.4 only] " cvs-commit at gcc dot gnu dot org
2004-02-11  6:23 ` ljrittle at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).