This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld core dump



Hi Nick
Thank you for your response. I was hoping that it would simply be a case of been
there, got the tee shirt but no such luck. Just to let you know where I am up
to. I think it was linking against the 32 bit library so I pointed it to the 64
bit library (/usr/lib/libsocket.so -> /usr/lib/sparcv9/libsocket.so) , still no
luck. I have included the latest output. The one thing that attracts my
attention is the output, sparc, not as it should be, sparcv9. Is it trying to
link libnss_winbind.so as a 32bit (sparc?) oject?

bash-2.05$ make
Using FLAGS =  -O -m64 -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DLOGFILEBASE="/usr/local/tools/samba/var"
-DCONFIGFILE="/usr/local/tools/samba/lib/smb.conf"
-DLMHOSTSFILE="/usr/local/tools/samba/lib/lmhosts"
-DSWATDIR="/usr/local/tools/samba/swat" -DSBINDIR="/usr/local/tools/samba/sbin"
-DLOCKDIR="/usr/local/tools/samba/var/locks"
-DCODEPAGEDIR="/usr/local/tools/samba/lib/codepages"
-DDRIVERFILE="/usr/local/tools/samba/lib/printers.def"
-DBINDIR="/usr/local/tools/samba/bin"
-DPIDDIR="/usr/local/tools/samba/var/locks"
-DLIBDIR="/usr/local/tools/samba/lib" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/usr/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/tools/samba/private/smbpasswd"
-DTDB_PASSWD_FILE="/usr/local/tools/samba/private/smbpasswd.tdb"
Using FLAGS32 =  -O -m64 -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DLOGFILEBASE="/usr/local/tools/samba/var"
-DCONFIGFILE="/usr/local/tools/samba/lib/smb.conf"
-DLMHOSTSFILE="/usr/local/tools/samba/lib/lmhosts"
-DSWATDIR="/usr/local/tools/samba/swat" -DSBINDIR="/usr/local/tools/samba/sbin"
-DLOCKDIR="/usr/local/tools/samba/var/locks"
-DCODEPAGEDIR="/usr/local/tools/samba/lib/codepages"
-DDRIVERFILE="/usr/local/tools/samba/lib/printers.def"
-DBINDIR="/usr/local/tools/samba/bin"
-DPIDDIR="/usr/local/tools/samba/var/locks"
-DLIBDIR="/usr/local/tools/samba/lib" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/usr/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/tools/samba/private/smbpasswd"
-DTDB_PASSWD_FILE="/usr/local/tools/samba/private/smbpasswd.tdb"
Using LIBS = -lsec -lgen -lsocket -lnsl
Linking nsswitch/libnss_winbind.so
collect2: ld terminated with signal 11 [Segmentation Fault]
/usr/local/tools/binutils/bin/ld: skipping incompatible /usr/lib/libsocket.so
when searching for -lsocket
/usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
`nsswitch/winbind_nss.po' is incompatible with sparc output
/usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
`nsswitch/wb_common.po' is incompatible with sparc output
/usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
`nsswitch/winbind_nss_solaris.po' is incompatible with sparc output
make: *** [nsswitch/libnss_winbind.so] Error 1


# file sparcv9/libgen.so.1
sparcv9/libgen.so.1:    ELF 64-bit MSB dynamic lib SPARCV9 Version 1,
dynamically linked, not stripped
# file sparcv9/libnsl.so.1
sparcv9/libnsl.so.1:    ELF 64-bit MSB dynamic lib SPARCV9 Version 1,
dynamically linked, not stripped
# file sparcv9/libsocket.so.1
sparcv9/libsocket.so.1: ELF 64-bit MSB dynamic lib SPARCV9 Version 1,
dynamically linked, not stripped
# file sparcv9/libsec.so.1
sparcv9/libsec.so.1:    ELF 64-bit MSB dynamic lib SPARCV9 Version 1,
dynamically linked, not stripped


bash-2.05$ file *.po
wb_common.po:   ELF 64-bit MSB relocatable SPARCV9 Version 1
winbind_nss.po: ELF 64-bit MSB relocatable SPARCV9 Version 1
winbind_nss_solaris.po: ELF 64-bit MSB relocatable SPARCV9 Version 1

Robert S.





Nick Clifton <nickc at redhat dot com> on 08/04/2003 16:30:54
                                                              
                                                              
                                                              
 To:      Robert F Sharp/ST/FIS at FIS                           
                                                              
 cc:      binutils at sources dot redhat dot com                         
                                                              
                                                              
                                                              
 Subject: Re: ld core dump                                    
                                                              





Hi Robert,

> bash-2.05$ /usr/local/tools/binutils/bin/as -v
> GNU assembler version 2.13.2.1 (sparc-sun-solaris2.9) using BFD version
2.13.2.1
>
> Compiling nsswitch/wb_common.c with -fPIC
> Compiling nsswitch/winbind_nss_solaris.c with -fPIC
> Linking nsswitch/libnss_winbind.so
> collect2: ld terminated with signal 11 [Segmentation Fault]
> /usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
> `nsswitch/winbind_nss.po' is incompatible with sparc output
> /usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
> `nsswitch/wb_common.po' is incompatible with sparc output
> /usr/local/tools/binutils/bin/ld: warning: sparc:v9 architecture of input file
> `nsswitch/winbind_nss_solaris.po' is incompatible with sparc output
> make: *** [nsswitch/libnss_winbind.so] Error 1
>
> ld core dumps and does not go any futher, have I supplied enough info, anybody
> have an idea why ld core dumps?

Sorry - there is not really enough information to go on here.

Do you know why the linker is complaining about the architecture
mismatches ?  (This may be at the root of the bug).  ie are the input
files really 'sparcv9' and is the output file really 'sparc' ?

Are you able to reduce the problem to a small, reproducible test case?

What is the complete command line that you are using ?

Cheers
        Nick







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]