logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: 2.4.37 issue with make command on AIX
Author
zaphonic



Joined: 13 Feb 2019
Posts: 1
Location: Nottingham

PostPosted: Wed 13 Feb '19 10:53    Post subject: 2.4.37 issue with make command on AIX Reply with quote

Hello everyone, I've been asked to install Apache 2.4.37 for a current application running on AIX 7.1.4

I've installed apache here
/opt/freeware/etc/httpd/conf/
Gcc here
/opt/freeware/lib/gcc-lib/gcc-7.3.0
Pcre here
/usr/local/pcre

Run this command at /opt/freeware/etc/httpd/conf/

./configure --with-included-apr --with-included-apr-util --with-pcre=/usr/local/pcre/pcre-config

This is the summary
configure: summary of build options:

Server Version: 2.4.37
Install prefix: /usr/local/apache2
C compiler: gcc
CFLAGS: -g -O2 -pthread
CPPFLAGS: -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE
LDFLAGS: -Wl,-brtl
LIBS:
C preprocessor: gcc -E

When I run the make command it runs for about 5 minutes and then hit this problem

opt/freeware/etc/httpd/conf/httpd-2.4.37# make
Making all in srclib
Making all in apr
sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
sed -e 's,^\(apr_build.*=\).*$,\1/usr/local/apache2/build,' -e 's,^\(top_build.*=\).*$,\1/usr/local/apache2/build,' < build/apr_rules.mk > build/apr_rules.out
Target "local-all" is up to date.
Target "all" is up to date.
Making all in apr-util
sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out
sed -e 's,^\(apr_build.*=\).*$,\1/usr/local/apache2/build-1,' -e 's,^\(top_build.*=\).*$,\1/usr/local/apache2/build-1,' < build/apr_rules.mk > build/apr_rules.out
Target "local-all" is up to date.
Target "all" is up to date.
Target "all" is up to date.
Making all in os
Making all in unix
/opt/freeware/etc/httpd/conf/httpd-2.4.37/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -I. -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/os/unix -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/include -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/srclib/apr/include -I/usr/local/pcre/include -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/aaa -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/cache -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/core -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/database -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/filters -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/ldap -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/loggers -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/lua -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/proxy -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/http2 -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/session -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/ssl -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/test -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/server -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/md -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/arch/unix -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/dav/main -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/generators -I/opt/freeware/etc/httpd/conf/httpd-2.4.37/modules/mappers -prefer-non-pic -static -c unixd.c && touch unixd.lo
In file included from /opt/freeware/etc/httpd/conf/httpd-2.4.37/include/ap_hooks.h:40,
from /opt/freeware/etc/httpd/conf/httpd-2.4.37/include/ap_config.h:25,
from unixd.c:17:
/opt/freeware/etc/httpd/conf/httpd-2.4.37/include/apr_hooks.h:20:10: fatal error: apu.h: No such file or directory
#include "apu.h"
^~~~~~~
compilation terminated.
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.
make: 1254-004 The error code from the last command is 1.


Stop.


The file where it should creatte apu.h is in the area
-rw-r--r-- 1 root system 4575 Jan 30 11:13 apu.h.in
/opt/freeware/etc/httpd/conf/httpd-2.4.37/include#

It seems the make command can't read the file to create apu.h and I'm very stuck!!!!!

I id speak to Northgate who gave me some instruction which are vague about to install apache but they don't have any AIX experience and therefore can't or won't help and IBM won't help because its freeware.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Wed 13 Feb '19 11:32    Post subject: Reply with quote

Maybe you can grab an idea from this script

https://github.com/JBlond/debian_build_apache24/blob/master/build_apache.sh
Back to top


Reply to topic   Topic: 2.4.37 issue with make command on AIX View previous topic :: View next topic
Post new topic   Forum Index -> Apache