Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsI'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:/us
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
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: gripePosted on 2005-05-29 at 13:30:14ID: 14105523
Comments are available to members only. Sign up or Log in to view these comments.