From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5790 invoked by alias); 8 Apr 2003 18:04:29 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 5756 invoked from network); 8 Apr 2003 18:04:27 -0000 Received: from unknown (HELO corp148mr2.mcgraw-hill.com) (198.45.18.163) by sources.redhat.com with SMTP; 8 Apr 2003 18:04:27 -0000 Received: by corp148mr2.mcgraw-hill.com (Switch-3.0.3/Switch-3.0.0) with SMTP id h38I3cJW026045; Tue, 8 Apr 2003 14:03:39 -0400 (EDT) X-Lotus-FromDomain: FIS@MCGRAW-HILL From: robert_f_sharp@platts.com To: Nick Clifton cc: binutils@sources.redhat.com Message-ID: <85256D02.0062C3AC.00@corpnj148ls01.mcgraw-hill.com> Date: Tue, 08 Apr 2003 18:04:00 -0000 Subject: Re: ld core dump Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-SW-Source: 2003-04/txt/msg00222.txt.bz2 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 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