AIX

AIX

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

 View Only
  • 1.  AIX 5.2 - libc.a issues...

    Posted Tue February 28, 2006 10:30 AM

    Originally posted by: SystemAdmin


    When I tried to compile OpenSSL, the compiler hung. So, I build a simplier testcase that produce this problem.

    snip
    1. gcc -0 aix_ppc32.o aix_ppc32.s
    snip

    Then I ran the debugger and got this.

    snip
    (gdb) backtrace
    #0 0xd022cf18 in wait()
    #1 0xffffffff in ?? () from (unknown load module)
    snip

    The wait() is found in the AIX's libc.a file.

    I also had another issue where the Sed got hung. With this simplier testcase used by GNU Sed,

    snip
    1. export install_sh='/usr/local/src/sed-4.1.5/config/install-sh'
    2. sed -e "install_sh=$install_sh" > zz_blank.txt
    snip

    When I ran the debugger, I got this.

    snip
    (gdb) backtrace
    #0 0xd01e62c8 in read()
    #1 0xffffffff in ?? () from (unknown load module)
    snip

    The read() is found in the AIX's libc.a file.

    Why do we have this problem? What's the solution to these problems. I am unable to build a web server (GNU softwares) on it's own without hacking some of the files.

    Thanks...


  • 2.  Re: AIX 5.2 - libc.a issues...

    Posted Tue February 28, 2006 11:05 AM

    Originally posted by: SystemAdmin


    I'd suggest that you post to the AIX Toolbox listserver at:

    aixtoolbox-list@lists.sourceforge.net

    The main site for the toolbox has moved to sourceforge.net. See the announcment at:
    http://sourceforge.net/projects/aixtoolbox

    http://lists.sourceforge.net/lists/listinfo/aixtoolbox-list

    An archive is now located at:
    http://sourceforge.net/mailarchive/forum.php?forum_id=43909

    The developers at IBM who ported this code normally can provide quick answers to this type of question.


  • 3.  Re: AIX 5.2 - libc.a issues...

    Posted Tue February 28, 2006 01:02 PM

    Originally posted by: SystemAdmin


    AIX Toolbox, I haven't been using them. So, I don't see how does this apply.


  • 4.  Re: AIX 5.2 - libc.a issues...

    Posted Tue February 28, 2006 01:18 PM

    Originally posted by: SystemAdmin


    I don't really want RPMs because it's not as organized. I rather that everything go into the /usr/local/ directory than anywhere else.


  • 5.  Re: AIX 5.2 - libc.a issues...

    Posted Tue February 28, 2006 02:31 PM

    Originally posted by: SystemAdmin


    Since they port gcc and the other packages to AIX, the AIX toolbox team has experience in porting that many of us don't, and they answer forum questions similar to this one.


  • 6.  Re: AIX 5.2 - libc.a issues...

    Posted Tue February 28, 2006 11:07 AM

    Originally posted by: SystemAdmin


    The other thing that you might do is to make sure you are not using the AIX ksh when doing this compile.

    Solution to slow build of apache and gcc

    We found it was taking from two to three hours to run the configure script for apache. After searching we found that the solution was to change the environment variable CONFIG_SHELL to point to a different shell than the default ksh. When this was done, the multi-hour run of ./configure was done in 3 minutes.

    Solution:

    From the Mozilla site for AIX it says:
    export CONFIG_SHELL=/opt/freeware/bin/bash
    export CONFIGURE_ENV_ARGS=/opt/freeware/bin/bash
    ./configure

    From testing, I found I could also use ksh93 and get similar results.
    export CONFIG_SHELL=/usr/bin/ksh93
    ./configure

    Why does this happen? What has been reported is that ksh uses /tmp files for redirection, piping, shelling, etc., while the other shells actually use memory for these purposes.

    ls -l | grep -E "Feb 15"
    showed that while running with ksh I had 50 or so files active at any time, while with the other shells there was very little activity.

    topas
    showed that I had 100% usage of hdisk0.


  • 7.  Re: AIX 5.2 - libc.a issues...

    Posted Tue February 28, 2006 01:07 PM

    Originally posted by: SystemAdmin


    How interesting... Yea, I noticed Apache took a while. Um, I shall experiment with that for OpenSSL, Apache, PHP, cURL, unixODBC, bison, flex, m4, etc.

    Thanks for the information...