Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 450133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:50:19+00:00 2026-05-12T21:50:19+00:00

On AIX, I would run: ar -X32 -t libdb2.a and check for output to

  • 0

On AIX, I would run:

ar -X32 -t libdb2.a

and check for output to determine if there is a 32-bit object in the archive. Similarly with -X64 for checking for a 64-bit object. However, what about if I’m on another platform, and need to check the archive to see what it has? Usually I’m on Linux when I need to check, but I could just as easily be on Solaris or HP-UX.

I used to check for shr.o and shr_64.o, since that’s what’s being compiled, but those are starting to show up in actual messages that are in the archives, and thus the reliability of these have dropped to the point where I’m getting false positives.

If anyone has a pointer, preferably something I can do in perl, that’d be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:50:20+00:00Added an answer on May 12, 2026 at 9:50 pm

    I don’t think there is an easy way. If you create two AIX archives, one 32-bit and one 64-bit, as follows:

    $ cat a.c
    int foo (void) { return 42; }
    $ xlc -q32 a.c -c -o a32.o
    $ xlc -q64 a.c -c -o a64.o
    $ ar -X32 cr a32.a a32.o
    $ ar -X64 cr a64.a a64.o
    

    you end up with archives that are not in a readable format by the linux ar:

    $ file a32.a a64.a 
    a32.a: archive (big format)
    a64.a: archive (big format)
    $ ar t a32.a
    ar: a32.a: File format not recognized
    $ ar t a64.a
    ar: a64.a: File format not recognized
    

    I tried using strings to see if anything obvious was in the archives, but found nothing. Your ony remaining option is to build a binutils package targetting AIX (download binutils, configure with option --target=powerpc-ibm-aix5.3, run make and voilà: you’ve got a tool called powerpc-ibm-aix5.3-ar somewhere in that build tree).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an AIX script I would like to run from a .NET application.
I am using AIX and I have a string There is no process to
Is there a version of xlC/VACPP available for AIX 4.3, which does not choke
Is syntax highlighting there on vi?. I am sshing to an AIX box via
I am writing a shell script to run under the KornShell (ksh) on AIX.
swap info command in AIX : lsps -a swap info output in AIX :
I'm trying to make a log analyser using perl. The analyser would run 24/7
I am trying to run a java program on my AIX server. I wrote
There was a bit of a surprise with some code today. I was compiling
I am using SUSE10 (64 bit)/AIX (5.1) and HP I64 (11.3) to compile my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.