Bug 3687 - Link failures with gcc4 on Solaris 10
Link failures with gcc4 on Solaris 10
Status: RESOLVED WORKSFORME
Product: Samba 3.0
Classification: Unclassified
Component: winbind
3.0.9
Sparc Solaris
: P3 minor
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-15 13:49 UTC by David S. Collier-Brown
Modified: 2006-04-20 07:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David S. Collier-Brown 2006-04-15 13:49:11 UTC
If gcc4 is unsupported, just close this...  I'm 
using it as a fallback from the newest Sun compilers,
which find more errors than I want to, while actually
trying to correctness-test Jerry Carter's draft of
Using Samba 3rd edition.

--dave

When linking nsswitch/libnss_winbind.so on Solaris 10,
gcc4 complains about Solaris 2.8 files, such as
/opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o

Compiling nsswitch/wbinfo.c^M
Linking bin/wbinfo^M
Compiling nsswitch/wb_common.c with -fPIC^M
Compiling lib/replace1.c with -fPIC^M
Compiling nsswitch/winbind_nss_solaris.c with -fPIC^M
Compiling nsswitch/winbind_nss_linux.c with -fPIC^M
Compiling lib/snprintf.c with -fPIC^M
Linking nsswitch/libnss_winbind.so^M
Text relocation remains                         referenced^M
    against symbol                  offset      in file^M
_init                               0x34        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
main                                0x5c        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
_fini                               0x24        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
_fini                               0x28        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
exit                                0x64        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
_environ                            0x50        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
_environ                            0x54        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
atexit                              0x1c        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
atexit                              0x2c        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
_exit                               0x6c        /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.1/crt1.o^M
ld: fatal: relocations remain against allocatable but non-writable sections^M
collect2: ld returned 1 exit status^M
*** Error code 1^M
Comment 1 Gerald (Jerry) Carter 2006-04-20 07:36:05 UTC
Dave, You might have a bad compiler install.  I have no problems 
with gcc 4.0.2 on Solaris 9.