NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/40199: no 32-bit ldd on amd64 or sparc64



>Number:         40199
>Category:       toolchain
>Synopsis:       no 32-bit ldd on amd64 or sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 16 13:00:00 +0000 2008
>Originator:     Jared D. McNeill
>Release:        NetBSD 5.99.5
>Organization:
        
>Environment:
        
        
System: NetBSD black.invisible.ca 5.99.5 NetBSD 5.99.5 (GENERIC) #39: Mon Dec 
15 20:56:04 EST 2008 
jmcneill%black.invisible.ca@localhost:/export/home/jmcneill/branches/HEAD/src/sys/arch/amd64/compile/GENERIC
 amd64
Architecture: x86_64
Machine: amd64
>Description:
        /usr/bin/ldd on amd64 and sparc64 does not handle 32-bit binaries.
        Some 3rd party software requires a functional ldd to build.
>How-To-Repeat:
        $ uname -srm
        NetBSD 5.99.5 amd64
        $ ldd /usr/pkg32/bin/wine 
        ldd: /usr/pkg32/bin/wine: unrecognized file format
>Fix:
        Workaround: Copy ldd from a 32-bit machine and install as
        /usr/pkg32/bin/ldd.i386:

        $ file /usr/pkg32/bin/ldd.i386
        /usr/pkg32/bin/ldd.i386: ELF 32-bit LSB executable, Intel 80386, 
version 1 (SYSV), dynamically linked (uses shared libs), for NetBSD 4.0, not 
stripped

        $ /usr/pkg32/bin/ldd.i386 /usr/pkg32/bin/wine 
        /usr/pkg32/bin/wine:
        -lc.12 => /usr/lib/i386/libc.so.12
        -lossaudio.0 => /usr/lib/i386/libossaudio.so.0
        -li386.1 => /usr/lib/i386/libi386.so.1
        -lwine.1 => /usr/pkg32/lib/libwine.so.1
        -lpthread.0 => /usr/lib/i386/libpthread.so.0

        Then fix any packages that call ldd to honour ${LDD} and set
        LDD=/usr/pkg32/bin/ldd.i386 in mk.conf

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index