c/3772: gcc links against /usr/local/lib/libgcc_s.so.1

reinhard@cadence.com reinhard@cadence.com
Mon Jul 23 02:06:00 GMT 2001


>Number:         3772
>Category:       c
>Synopsis:       gcc links against /usr/local/lib/libgcc_s.so.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 23 02:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Reinhard Fobbe
>Release:        gcc version 3.0
>Organization:
>Environment:
gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0/specs
Configured with: ../configure 
Thread model: posix
>Description:
Shared libraries created with gcc 3.0 on Solaris 2.7
are linked against /usr/local/lib/libgcc_s.so.1.

This makes the .so file non-portable to machines
that do not have a gcc 3.0 installation.

Best regards,

Reinhard
>How-To-Repeat:
FILE: test.c
---
#include <stdio.h>

int a_func()
{
return 1;
}
---
gcc -fPIC -c test.c
gcc -shared -o test.so test.o

ldd test.so
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libc.so.1 =>     /usr/lib/libc.so.1

        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

ls -l /usr/local/lib/libgcc_s*
lrwxrwxrwx   1 reinhard cds           13 Jul  4 08:46 /usr/local/lib/libgcc_s.so -> libgcc_s.so.1
-rw-r--r--   1 reinhard cds      1077876 Jul  4 08:46 /usr/local/lib/libgcc_s.so.1

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-tar; name="libgcc_s_bug.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="libgcc_s_bug.tar.gz"

H4sIAJzlWzsAA+0bXWwcR3n27MS5S9LYJm1CcdutkzSXyL5/+2InoXbsS2rq2JHtNEGlbNd7e+el
d7vX3T3HaSlNpYDKCw2oEhIqUCHEC6IqDyCBQ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