Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache Web Server 2.4.56 with Openssl 3.1 on AIX 7.1 (xlC) |
|
Author |
|
Joey
Joined: 27 Oct 2020 Posts: 11 Location: Czech Republic
|
Posted: Thu 06 Apr '23 14:55 Post subject: Apache Web Server 2.4.56 with Openssl 3.1 on AIX 7.1 (xlC) |
|
|
Hello colleagues,
I have previously built Apache Web Server 2.4.56 with Openssl 1.1.1t on AIX 7.1 using gcc version 6.3.0.
Currently we are pushed to stop using gcc compiler on AIX due to several reasons.
I have a licensed xlC compiler version: 16.1.0
I currently reached the stage of "make" and facing the following errors using xlC compiler:
--------------
"util.c", line 3201.53: 1506-277 (S) Syntax error: possible missing ';' or ','?
"util.c", line 3204.1: 1506-277 (S) Syntax error: possible missing ';' or ','?
"util.c", line 3201.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for _Thread_local.
"util.c", line 3216.41: 1506-045 (S) Undeclared identifier pool.
"util.c", line 3218.17: 1506-045 (S) Undeclared identifier func.
"util.c", line 3219.17: 1506-045 (S) Undeclared identifier data.
"util.c", line 3220.30: 1506-045 (S) Undeclared identifier thread.
"util.c", line 3220.38: 1506-045 (S) Undeclared identifier attr.
"util.c", line 3220.44: 1506-045 (S) Undeclared identifier thread_start.
"util.c", line 3261.5: 1506-045 (S) Undeclared identifier current_thread.
"util.c", line 3269.5: 1506-045 (S) Undeclared identifier current_thread.
"util.c", line 3276.12: 1506-045 (S) Undeclared identifier current_thread.
make[2]: *** [/tmp/build_apache_24/httpd-2.4.56/build/rules.mk:206: util.lo] Error 1
make[2]: Leaving directory '/tmp/build_apache_24/httpd-2.4.56/server'
make[1]: *** [/tmp/build_apache_24/httpd-2.4.56/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/tmp/build_apache_24/httpd-2.4.56/server'
make: *** [/tmp/build_apache_24/httpd-2.4.56/build/rules.mk:75: all-recursive] Error 1
======================================
I suspect the issue is with the xlC compiler.
Did anyone have any experience with this?
Thank you |
|
Back to top |
|
tangent Moderator
Joined: 16 Aug 2020 Posts: 349 Location: UK
|
Posted: Fri 07 Apr '23 23:21 Post subject: |
|
|
Your first compiler error for util.c thows up the following IBM support page - https://www.ibm.com/support/pages/ccn3277-syntax-error-possible-missing-or. It might be worth playing with the compiler NOMARGINS and NOSEQ options to see if this has any effect.
Years ago I was tasked to build Apache with an old licensed copy of an IBM compiler for AIX, and struggled with its vagaries, to the point where I challenged why we couldn't just use gcc, as a globally accepted free software compiler under the GNU General Public License. The cost implications won out in the end; you might want to push back using a similar argument. |
|
Back to top |
|
covener
Joined: 23 Nov 2008 Posts: 59
|
Posted: Sat 08 Apr '23 0:57 Post subject: |
|
|
Are you using CC=xlc_r ? |
|
Back to top |
|
Joey
Joined: 27 Oct 2020 Posts: 11 Location: Czech Republic
|
Posted: Fri 22 Nov '24 14:18 Post subject: |
|
|
Thank you@Covener:
I have links pointing to xlc as compiler
@Tangent: Thank you so much for your feedback:
I have tried that, but did not work.
I also found some solutions like:
https://community.spiceworks.com/t/apache-httpd-server-installation-issue/837130/3
and more.
I also invested my time in trying the option:
--enable-layout=BLFS
BUT was fruitless.
Here is my BUILD log output from a previous compile , which was successful for Version 2.4.58 using XLC++ compiler version 16.1.0
.....................
Making install in worker
make[3]: Entering directory '/tmp/build_apache_24/httpd-2.4.58/server/mpm/worker'
make[4]: Entering directory '/tmp/build_apache_24/httpd-2.4.58/server/mpm/worker'
mkdir /applications/apache/2.4.58.0/modules
rm -f /applications/apache/2.4.58.0/modules/mod_mpm_worker.so
/applications/apache/2.4.58.0/apr-1/build/libtool --silent --mode=install install mod_mpm_worker.la /applications/apache/2.4.58.0/modules/
make[4]: Leaving directory '/tmp/build_apache_24/httpd-2.4.58/server/mpm/worker'
make[3]: Leaving directory '/tmp/build_apache_24/httpd-2.4.58/server/mpm/worker'
Making install in prefork
............
and here is the current BUILD log from version 2.4.62 the current failing at "make install" using XLC++ compiler version 16.1.0
Making install in worker
make[3]: Entering directory '/tmp/build_apache_24/httpd-2.4.62/server/mpm/worker'
make[4]: Entering directory '/tmp/build_apache_24/httpd-2.4.62/server/mpm/worker'
mkdir /applications/apache/2.4.62.0/modules
rm -f /applications/apache/2.4.62.0/modules/mod_mpm_worker.so
/applications/apache/2.4.62.0/apr-1/build/libtool --silent --mode=install install mod_mpm_worker.la /applications/apache/2.4.62.0/modules/
find: bad status-- /applications/apache/2.4.62.0/modules/mod_mpm_worker.so
install: File mod_mpm_worker.so was not found.
.......................
It appears the find is run somewhere else hard-coded.
Any idea if there maybe is an export of some path I'm missing here, which is causing the "find: bad status-- "??
Thank you@Covener:
I have links pointing to xlc as compiler
Thank you in advance for your feedbacks
Regards
Joey |
|
Back to top |
|
mrdj1024
Joined: 03 Apr 2023 Posts: 55 Location: Bridgeton,NJ,USA
|
Posted: Sat 23 Nov '24 15:34 Post subject: |
|
|
Hello from America!, unfortunately, I am not able to help with your problem, but I noticed that you are using an old outdated version of OpenSSL, there have been many major security fixes and improvements since the 1.1 branch, so I encourage you to use at least OpenSSL 3.0 if you can!
Mod notes: used Google Translate to convert the text |
|
Back to top |
|
Joey
Joined: 27 Oct 2020 Posts: 11 Location: Czech Republic
|
Posted: Sat 23 Nov '24 18:29 Post subject: |
|
|
@mrdj1024,
I think you responded to the wrong post
[CZ : Myslím, že jste odpověděli na špatný post] |
|
Back to top |
|
|
|
|
|
|