Error when compile httpd 2.2.8 on AIX 5.2

Hi everybody,

I tried to compile httpd-2.8.8 on AIX 5.2. After downloading the Source file I run the configure as following:
>> CC=gcc ./configure --prefix=/usr/local/apache
After that i run the command make, but it failed. Below are last several lines of stdout of the make command:
lo threadproc/unix/procsup.lo threadproc/unix/signals.lo threadproc/unix/thread.lo threadproc/unix/threadpriv.lo time/unix/time.lo time/unix/timestr.lo user/unix/groupinfo.lo user/unix/userinfo.lo -lpthread
collect2: library libgcc_s_pthread not found
make[3]: *** [libapr-1.la] Error 1
make[3]: Leaving directory `/Apache/httpd-2.2.8/srclib/apr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Apache/httpd-2.2.8/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Apache/httpd-2.2.8/srclib'
make: *** [all-recursive] Error 1
Any idea?

Thanks in advance

See here, it if can help.

I could be wrong but this:

seems to be the root of all evil. Maybe a wrongly set LIBPATH or missing library at all? There is a library libpthread.so in AIX 5.3, but you seem to need an equivalent library for the gcc compiler.

bakunin

bakunin, you're correct, thiis library is missing, after that it errors out with status (1) and exit.

Thanks sysgate, thanks bakunin.

I got from the link that given to me by sysgate somebody who encountered same my problem (collect2: library libgcc_s_pthread not found). HERE the thread's link.

As this guy said in his last reply:
I was able to install the missing library manually to gcc (with the help of an IBM AIX guru.)

I don't understand what he mean by installing the missing library manually to gcc?

  • How can I obtain this library?
  • How can I install it?

I appreciate your help guys.

As far as i can see you do not need any AIX guru. I entered "libgcc_s_pthread" into Google and the following hit was the first i saw:

DO NOT REPLY [Bug 40765] - library libgcc_s_pthread not found

There it says:

"libgcc rpm was missing - why didn't ./configure pick this up?"

So get and isntall libgcc.rpm and everything should be fine.

bakunin

Unfortunately, I installed libgcc but still the problem not solved.

If you have installed the package, the file must be somewhere on your disk. Maybe you have to set the correct PATH/LIBPATH/etc. to point to this directory?

bakunin