public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: other/9691: Shared libraries don't work with g++
@ 2003-05-14 19:46 Dara Hazeghi
  0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-05-14 19:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/9691; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: Christian.Corti@studserv.uni-stuttgart.de, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: other/9691: Shared libraries don't work with g++
Date: Wed, 14 May 2003 12:45:27 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=9691
 
 Hello,
 
 I'd be rather surprised if such a major bug went unnoticed for long.  
 Still NetBSD/mips aren't the most common platforms. Would it be  
 possible for you to check whether this problem still occurs with a  
 current gcc (ie 3.3)? Thanks,
 
 Dara
 


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

* Re: other/9691: Shared libraries don't work with g++
@ 2003-05-15  4:38 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-05-15  4:38 UTC (permalink / raw)
  To: Christian.Corti, gcc-bugs, gcc-prs, nobody

Synopsis: Shared libraries don't work with g++

State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Thu May 15 04:38:25 2003
State-Changed-Why:
    See Dara's question

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9691


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

* other/9691: Shared libraries don't work with g++
@ 2003-02-13 12:16 Christian.Corti
  0 siblings, 0 replies; 3+ messages in thread
From: Christian.Corti @ 2003-02-13 12:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9691
>Category:       other
>Synopsis:       Shared libraries don't work with g++
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 13 12:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Christian Corti
>Release:        gcc 3.2.1
>Organization:
>Environment:
DECstation 5000/260 MIPS R4400; NetBSD 1.6;
binutils 2.13.2.1
>Description:
g++ can't create working or use shared libraries.
Programs linked against such libraries will crash on loading with a segmentation
fault.
My test program compiled with 'g++-3.2 -o test test.cc':
#include <iostream>
main()
{
  std::cout << "Hello!\n";
}

Output of 'ldd test'
test:
        -lm.0 => /usr/lib/libm.so.0
        -lstdc++.5 => /usr/local/lib/libstdc++.so.5
        -lc.12 => /usr/lib/libc.so.12
        -lgcc_s.1 => /usr/local/lib/libgcc_s.so.1

Output of 'gcc-3.2 -v'
Configured with: ../gcc-3.2.1/configure --host=mipsel-dec-netbsd1.6
--program-suffix=-3.2 --with-ld=/usr/local/bin/ld
--with-as=/usr/local/bin/as

Output of '/usr/local/bin/ld -v':
GNU ld version 2.13.2.1

Output of '/usr/local/bin/as -v':
GNU assembler version 2.13.2.1 (mipsel-dec-netbsd1.6) using
BFD version 2.13.2.1

Output of 'gdb test test.core'
[...]
#0  0x5ffe5b30 in _rtld_relocate_objects () from /usr/libexec/ld.elf_so

Creating a statically linked version of this program works,
i.e. "g++-3.2 -static -o test test.cc" produces a working
'test' program.

The same problem occurs with binutils 2.11.2.
binutils 2.9.1 can't be used for compiling gcc 3.2.1 on
mipsel as this will lead to an assembler error during
compilation of one of the libgcc files.

I tried g++ 3.2.1 on a SUN 4/260 (sun4) with SunOS 4.1.1
and it is broken too. gcc 3.2.1 however works fine on all
platforms.
>How-To-Repeat:
Any program compiled with g++ will crash on loading.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-05-15  4:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 19:46 other/9691: Shared libraries don't work with g++ Dara Hazeghi
  -- strict thread matches above, loose matches on Subject: below --
2003-05-15  4:38 bangerth
2003-02-13 12:16 Christian.Corti

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).