public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: robert_f_sharp@platts.com
To: Nick Clifton <nickc@redhat.com>
Cc: binutils@sources.redhat.com
Subject: Re: ld core dump
Date: Tue, 08 Apr 2003 18:04:00 -0000	[thread overview]
Message-ID: <85256D02.0062C3AC.00@corpnj148ls01.mcgraw-hill.com> (raw)



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@redhat.com> on 08/04/2003 16:30:54
                                                              
                                                              
                                                              
 To:      Robert F Sharp/ST/FIS@FIS                           
                                                              
 cc:      binutils@sources.redhat.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






             reply	other threads:[~2003-04-08 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08 18:04 robert_f_sharp [this message]
2003-04-09 15:38 ` Nick Clifton
  -- strict thread matches above, loose matches on Subject: below --
2003-04-10 18:03 robert_f_sharp
2003-04-03 18:44 robert_f_sharp
2003-04-08 15:31 ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85256D02.0062C3AC.00@corpnj148ls01.mcgraw-hill.com \
    --to=robert_f_sharp@platts.com \
    --cc=binutils@sources.redhat.com \
    --cc=nickc@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).