[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Statically linked GNU bash - AIX 5.2

Asked by gripe in IBM AIX Unix

Tags: aix, ld, 8

I've been trying for a few hours to compile a statically linked bash on AIX 5.2 and am running into headaches. I am using GCC 3.3.2. I also have installed the automake and autoconf utilities from IBM's rpm repository. (automake 1.7.9 and autoconf 2.58)

I can compile bash without issue if I use the default configuration (./configure) but when I attempt to use the configure flag --enable-static-link it bombs. An odd thing is that when i do a default configure it seems to find a bunch of (pretty standard) library functions that it doesn't find when I use --enable-static-link. For instance: (This is just a subset, there seems to be many more)

Straight configure:

checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes

--enable-static-link:

checking for getcwd... no
checking for getegid... no
checking for geteuid... no
checking for getgid... no
checking for getuid... no

In addition, I get this error when configure runs with --enable-static-link (and not with straight configure):

checking for shared library run path origin... ld: 0711-317 ERROR: Undefined symbol: fstatfs64
ld: 0711-317 ERROR: Undefined symbol: statfs64
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

Eventually configure dies with the following message:

checking size of char... configure: error: cannot compute sizeof (char), 77
See `config.log' for more details.

(I will post the complete output of config.log in the next entry)

My LD_LIBRARY_PATH & LIBPATH are set as:

/opt/freeware/lib:/lib:/usr/lib:/usr/local/lib/

I'm not much of a C programmer and know next to nothing about configure scripts, but I'm guessing from the difference in output that there is a bug in the configure script. Has anyone ever encountered this or managed to successfully statically link bash on AIX? Any help greatly appreciated.

High grades for quick answers! :)

Thanks

 
Related Solutions
Keywords: Statically linked GNU bash - AIX 5.2
 
Loading Advertisement...
 
[+][-]05/29/05 01:30 PM, ID: 14105523Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/29/05 01:51 PM, ID: 14105561Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: IBM AIX Unix
Tags: aix, ld, 8
Sign Up Now!
Solution Provided By: cpc2004
Participating Experts: 1
Solution Grade: A
 
[+][-]05/29/05 02:57 PM, ID: 14105731Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/29/05 03:27 PM, ID: 14105790Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/29/05 04:32 PM, ID: 14105950Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81