Topic
8 replies Latest Post - ‏2011-02-10T21:58:30Z by SystemAdmin
GAW3_aaziz_rehan
GAW3_aaziz_rehan
1 Post
ACCEPTED ANSWER

Pinned topic compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

‏2010-11-04T13:01:38Z |
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 2011-02-10T21:58:30Z at 2011-02-10T21:58:30Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    134 Posts
    ACCEPTED ANSWER

    Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

    ‏2010-11-05T00:18:37Z  in response to GAW3_aaziz_rehan
    Do you need to compile this particular version? Your subject line says you are compiling 2.0.64 but the body of your message says you are compiling 2.2.17.
    Is the version of gcc correct for your version of AIX?
    You haven't specified your "configure" parameters. This can make a difference.
    I've successfully compiled 2.2.14 downloaded from the Apache website on AIX6.1.
    I also used gmake instead of IBM's make.

    I note that you have one error referring to apr. The following is probably not relevant but I offer it anyway.

    I was not able to use the --with-included-apr option. On starting the application it displayed messages about missing symbols associated with APR. I solved this particular problem by downloading apr and apr-utils from the Apache website, building them and then rerunning configure.

    FYI if anybody needs to build Apache and PHP on AIX 6.1 I have a document explaining all the issues that I came across and the solutions.
    • asia5119
      asia5119
      1 Post
      ACCEPTED ANSWER

      Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

      ‏2011-01-17T02:13:27Z  in response to SystemAdmin
      Hi pfarrell, I encountered the same problem when compiling 2.2.17 on AIX 6.1 or AIX 7.1. Could you send your document explaining all the issues to me one copy? My email box:asia5119@163.com. Thanks in advance!
      • SystemAdmin
        SystemAdmin
        134 Posts
        ACCEPTED ANSWER

        Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

        ‏2011-02-10T21:58:30Z  in response to asia5119
        I apologise for not responding to your posting earlier. I suspect that the solution posted by haubi may be closer to your requirements. However, please find attached the document you requested.
  • PeterBecker
    PeterBecker
    1 Post
    ACCEPTED ANSWER

    Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

    ‏2010-12-29T11:47:14Z  in response to GAW3_aaziz_rehan
    I got the same errors after installing TL 12, before that I was on AIX 5.3.03 and my build worked.
    I found 2 work-arounds for this error:
    1) don't use debug info (remove -g option)
    2) initialize all static data
  • SystemAdmin
    SystemAdmin
    134 Posts
    ACCEPTED ANSWER

    Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

    ‏2011-01-11T08:58:38Z  in response to GAW3_aaziz_rehan
    Try to use the GNU Linker instead of the AIX linker (ld command). You can find it in the binutils GNU package.
  • SystemAdmin
    SystemAdmin
    134 Posts
    ACCEPTED ANSWER

    Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

    ‏2011-01-17T02:58:45Z  in response to GAW3_aaziz_rehan
    To asia5119@163.com: document sent
    • mfaisald
      mfaisald
      1 Post
      ACCEPTED ANSWER

      Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

      ‏2011-02-09T16:45:55Z  in response to SystemAdmin
      I am trying to compile 2.0.64 on AIX 6.1 TL5 and getting the following error. Could you please send me the doc as well at diskperf@yahoo.com

      I have gcc-4.2.0-3
      ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 561) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr-util/.libs/libaprutil-0.ahttp://apr_sha1.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 770) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr/.libs/libapr-0.ahttp://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 1351) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr/.libs/libapr-0.ahttp://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 1354) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr/.libs/libapr-0.ahttp://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 1357) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr/.libs/libapr-0.ahttp://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 1360) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr/.libs/libapr-0.ahttp://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 1020) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr/.libs/libapr-0.ahttp://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.
      ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 458) in object /nimfs1/apache/apace2064/httpd-2.0.64/srclib/apr/.libs/libapr-0.ahttp://apr_atomic.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: 1254-004 The error code from the last command is 1.
      Stop.
      make: 1254-004 The error code from the last command is 1.
      Stop.
      make: 1254-004 The error code from the last command is 1.
      Stop.
  • haubi
    haubi
    4 Posts
    ACCEPTED ANSWER

    Re: compile apache httpd-2.0.64 with gcc on AIX 5.3 TL 12

    ‏2011-02-09T19:50:37Z  in response to GAW3_aaziz_rehan
    This is a bug in gcc, creating invalid debug information for uninitialized static symbols: http://gcc.gnu.org/PR46072

    Since AIX5.3 TL12 and apparently AIX6.1 TL5 do have an updated linker (/usr/ccs/bin/ld) that now checks the validity of that debug information too, this gcc bug actually becomes a problem.

    A workaround is to compile without debug information at all.
    Can't say how to do that for apache, but usually this is done by setting the environment variable CFLAGS and eventually CXXFLAGS to the value "-O2" prior to the build.

    However, there is an unconfirmed patch in that gcc bug report that seems to work...

    HTH,
    /haubi/