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
System: NetBSD 5.99.5 NetBSD 5.99.5 (GENERIC) #39: Mon Dec 
15 20:56:04 EST 2008
Architecture: x86_64
Machine: amd64
        /usr/bin/ldd on amd64 and sparc64 does not handle 32-bit binaries.
        Some 3rd party software requires a functional ldd to build.
        $ uname -srm
        NetBSD 5.99.5 amd64
        $ ldd /usr/pkg32/bin/wine 
        ldd: /usr/pkg32/bin/wine: unrecognized file format
        Workaround: Copy ldd from a 32-bit machine and install as

        $ 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 

        $ /usr/pkg32/bin/ldd.i386 /usr/pkg32/bin/wine 
        -lc.12 => /usr/lib/i386/
        -lossaudio.0 => /usr/lib/i386/
        -li386.1 => /usr/lib/i386/
        -lwine.1 => /usr/pkg32/lib/
        -lpthread.0 => /usr/lib/i386/

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


Home | Main Index | Thread Index | Old Index