AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

Solaris to AIX Command Equivalent

  • 1.  Solaris to AIX Command Equivalent

    Posted Tue January 27, 2009 03:31 PM

    Originally posted by: ed_AIX


    Hello,

    In Solaris there is the 'file' command which will tell you if a file is a 32-bit or 64-bit version. Is there an equivalent command in AIX that will tell me if a file is 32-bit or 64-bit? The AIX 'file' command does not report this it seems.

    Thank you.
    #AIX-Forum


  • 2.  Re: Solaris to AIX Command Equivalent

    Posted Thu January 29, 2009 06:15 AM

    Originally posted by: hdkutz


    Hello,
    man dump
    should help you to find out.
    <snip>
    Kernel Type: 64-bit
    -X mode
    Specifies the type of object file dump should examine. The mode must be one of
    the following:
    32
    Processes only 32-bit object files
    64
    Processes only 64-bit object files
    32_64
    Processes both 32-bit and 64-bit object files
    d64
    Examines discontinued 64-bit XCOFF files (magic number == U803XTOCMAGIC).
    The default is to process 32-bit object files (ignore 64-bit objects). The mode
    can also be set with the OBJECT_MODE environment variable. For example,
    OBJECT_MODE=64 causes dump to process any 64-bit objects and ignore 32-bit
    objects. The -X flag overrides the OBJECT_MODE variable.
    <snip>

    Also ldd command will help:
    <snip>
    $ ldd /usr/lib/libldapiconv.a
    /usr/lib/libldapiconv.a needs:
    /usr/lib/libc_r.a(shr.o)
    /usr/lib/libiconv.a(shr4.o)
    /unix
    /usr/lib/libcrypt.a(shr.o)
    /usr/lib/libc.a(shr.o)
    $ ldd /usr/lib/libldapiconv64.a
    /usr/lib/libldapiconv64.a needs:
    /usr/lib/libc_r.a(shr_64.o)
    /usr/lib/libiconv.a(shr4_64.o)
    /unix
    /usr/lib/libcrypt.a(shr_64.o)
    /usr/lib/libc.a(shr_64.o)
    $ which ldd
    /usr/bin/ldd
    <snip>

    HTH,
    ku
    #AIX-Forum