Topic
  • No replies
wilsonwf
wilsonwf
1 Post

Pinned topic compiling apache httpd-2.2.17 with gcc on AIX 5.3

‏2010-11-03T18:34:06Z |
I am trying to compile apache httpd-2.2.17 with gcc on AIX 5.3 TL 12. I am getting the following errors:

ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 1325) in object locks/unix/.libs/proc_mutex.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 1328) in object locks/unix/.libs/proc_mutex.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 1331) in object locks/unix/.libs/proc_mutex.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 1340) in object locks/unix/.libs/proc_mutex.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 1343) in object locks/unix/.libs/proc_mutex.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 718) in object network_io/unix/.libs/sendrecv.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 677) in object random/unix/.libs/apr_random.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 728) in object threadproc/unix/.libs/signals.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 911) in object time/unix/.libs/time.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
collect2: ld returned 12 exit status
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Updated on 2010-11-09T16:36:38Z at 2010-11-09T16:36:38Z by TRB
  • SystemAdmin
    SystemAdmin
    196 Posts

    Re: compiling apache httpd-2.2.17 with gcc on AIX 5.3

    ‏2010-11-04T17:38:05Z  
    Sounds like the object file is somehow messed up. I don't have any definitive answers (hopefully someone else will), but given how frustrating it can be to be stuck like you are, I'd thought I'd make a couple of suggestions. I've heard of similar symptoms when
    a) the filesystem has been mounted with the cio option
    b) gcc has been misconfigured. It's been a long time since I've played with gcc (back in university days). I have heard that --without-gnu-as and --without-gnu-ld are needed when building gcc for AIX, but it'd be best to reconfirm that.

    Hope that helps.
  • SystemAdmin
    SystemAdmin
    196 Posts

    Re: compiling apache httpd-2.2.17 with gcc on AIX 5.3

    ‏2010-11-04T17:41:19Z  
    That seems to suggest that those object files have become corrupted. I would suggest trying to reduce optimization levels to see if that makes a difference. I would also suggest to post the question at the general AIX forum at http://www.ibm.com/developerworks/aix/

    Alternatively, have you tried building it with XLC? if you don't have a license, you can always download an evaluation copy from
    http://www.ibm.com/developerworks/downloads/r/xlcplusaix/?S_CMP=rnav
  • TRB
    TRB
    2 Posts

    Re: compiling apache httpd-2.2.17 with gcc on AIX 5.3

    ‏2010-11-08T21:16:59Z  
    That seems to suggest that those object files have become corrupted. I would suggest trying to reduce optimization levels to see if that makes a difference. I would also suggest to post the question at the general AIX forum at http://www.ibm.com/developerworks/aix/

    Alternatively, have you tried building it with XLC? if you don't have a license, you can always download an evaluation copy from
    http://www.ibm.com/developerworks/downloads/r/xlcplusaix/?S_CMP=rnav
    This is perhaps a GCC bug.
    See this link:

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072

    -tony
  • TRB
    TRB
    2 Posts

    Re: compiling apache httpd-2.2.17 with gcc on AIX 5.3

    ‏2010-11-09T16:36:38Z  
    • TRB
    • ‏2010-11-08T21:16:59Z
    This is perhaps a GCC bug.
    See this link:

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072

    -tony
    I don't have an AIX 5.3 system available, but I do have a 6.1 system,
    which has GCC gcc-4.2.0-3 installed on it.

    I was able to successfully build apache 2.2.15.

    Here is the parameters I gave to "./configure" which was used to build it:

    CC=gcc ./configure \
    --prefix=/home/trbennet/apache2 \
    --with-mpm=worker \
    --without-berkeley-db \
    --enable-dav=static \
    --enable-dav_fs=static \
    --enable-dav-lock=static \
    --enable-logio=static \
    --enable-static-rotatelogs \
    --with-included-apr \
    --enable-static-support

    Hope this helps.

    -tony