Apache Installation issue


 
Thread Tools Search this Thread
Operating Systems AIX Apache Installation issue
# 1  
Old 06-18-2010
Question Apache Installation issue

HI Guys,

I got the below error while trying to install the apache2.2.15. from the error I can interpret that some of the .h files are missing. I guess those are C library header files.. Can you help me with it.

Code:

bash-3.00# make
Making all in srclib
Making all in apr
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include  -o strings/apr_cpystrn.lo -c strings/apr_cpystrn.c && touch strings/apr_cpystrn.lo
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include  -o strings/apr_strtok.lo -c strings/apr_strtok.c && touch strings/apr_strtok.lo
        /bin/sh /installables/Apache/httpd-2.2.15/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I./include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include/arch/unix -I/installables/Apache/httpd-2.2.15/srclib/apr/include  -o strings/apr_snprintf.lo -c strings/apr_snprintf.c && touch strings/apr_snprintf.lo
In file included from /usr/include/fcntl.h:188,
                 from ./include/apr_portable.h:44,
                 from strings/apr_snprintf.c:23:
/usr/include/unistd.h:915: error: parse error before '[' token
/usr/include/unistd.h:916: error: parse error before 'rid_t'
In file included from /usr/include/sys/cred.h:49,
                 from /usr/include/sys/thread.h:43,
                 from /usr/include/sys/ptrace.h:28,
                 from /usr/include/sys/proc.h:48,
                 from /usr/include/sys/pri.h:43,
                 from /usr/include/sys/sched.h:38,
                 from /usr/include/sched.h:51,
                 from /usr/include/pthread.h:50,
                 from ./include/apr_portable.h:47,
                 from strings/apr_snprintf.c:23:
/usr/include/sys/secattr.h:49: error: parse error before 'rid_t'
/usr/include/sys/secattr.h:60: error: parse error before '}' token
/usr/include/sys/secattr.h:65: error: parse error before 'authnum_t'
/usr/include/sys/secattr.h:71: error: parse error before '}' token
/usr/include/sys/secattr.h:106: error: field 'sc_attr' has incomplete type
In file included from /usr/include/sys/thread.h:43,
                 from /usr/include/sys/ptrace.h:28,
                 from /usr/include/sys/proc.h:48,
                 from /usr/include/sys/pri.h:43,
                 from /usr/include/sys/sched.h:38,
                 from /usr/include/sched.h:51,
                 from /usr/include/pthread.h:50,
                 from ./include/apr_portable.h:47,
                 from strings/apr_snprintf.c:23:
/usr/include/sys/cred.h:331: error: parse error before 'rid_t'
/usr/include/sys/cred.h:346: error: parse error before '}' token
In file included from /usr/include/sys/ptrace.h:28,
                 from /usr/include/sys/proc.h:48,
                 from /usr/include/sys/pri.h:43,
                 from /usr/include/sys/sched.h:38,
                 from /usr/include/sched.h:51,
                 from /usr/include/pthread.h:50,
                 from ./include/apr_portable.h:47,
                 from strings/apr_snprintf.c:23:
/usr/include/sys/thread.h:877: error: parse error before 'cred_ext_t'
/usr/include/sys/thread.h:878: error: conflicting types for 'reserved'
/usr/include/sys/secattr.h:58: error: previous declaration of 'reserved' was here
/usr/include/sys/thread.h:879: error: parse error before '}' token
In file included from ./include/apr_portable.h:47,
                 from strings/apr_snprintf.c:23:
/usr/include/pthread.h:587: error: parse error before '*' token
/usr/include/pthread.h:590: error: parse error before '*' token
/usr/include/pthread.h:594: error: parse error before '*' token
/usr/include/pthread.h:597: error: parse error before '*' token
/usr/include/pthread.h:600: error: parse error before '*' token
/usr/include/pthread.h:603: error: parse error before '*' token
/usr/include/pthread.h:606: error: parse error before '*' token
/usr/include/pthread.h:609: error: parse error before '*' token
/usr/include/pthread.h:612: error: parse error before '*' token
/usr/include/pthread.h:615: error: parse error before '*' token
/usr/include/pthread.h:618: error: parse error before '*' token
/usr/include/pthread.h:622: error: parse error before '*' token
/usr/include/pthread.h:625: error: parse error before '*' token
/usr/include/pthread.h:629: error: parse error before '*' token
/usr/include/pthread.h:633: error: parse error before '*' token
/usr/include/pthread.h:644: error: parse error before '*' token
/usr/include/pthread.h:648: error: parse error before '*' token
/usr/include/pthread.h:671: error: parse error before '*' token
/usr/include/pthread.h:674: error: parse error before '*' token
/usr/include/pthread.h:677: error: parse error before '*' token
/usr/include/pthread.h:680: error: parse error before '*' token
/usr/include/pthread.h:683: error: parse error before '*' token
/usr/include/pthread.h:691: error: parse error before '*' token
/usr/include/pthread.h:694: error: parse error before '*' token
/usr/include/pthread.h:697: error: parse error before '*' token
/usr/include/pthread.h:700: error: parse error before '*' token
/usr/include/pthread.h:708: error: parse error before '*' token
/usr/include/pthread.h:712: error: parse error before '*' token
/usr/include/pthread.h:715: error: parse error before '*' token
/usr/include/pthread.h:911: error: parse error before 'cred_ext_t'
/usr/include/pthread.h:913: error: parse error before '}' token
make: The error code from the last command is 1.

# 2  
Old 06-18-2010
You are trying to compile using the gcc-compiler. This is not wrong, but i suppose a binary compiled with the OS vendors compiler (in this case xlc) to be somewhat on the safer side. This is just a general observation and i am not aware of any specific issues compiling Apache 2.2.15 with gcc under AIX, though.

You can download a compiled version of Apache 2.2.15 for AIX already packaged into an rpm from here.

I hope this helps.

bakunin
# 3  
Old 06-22-2010
Thx Bakunin... I have a confusion while downloading packages.. this is there for a long time now I take this as a opportunity .. In the link provided by you..

I see 3 RPMS mentioned and then one more Source RPM is also provided.. What is the difference among them please ? Smilie


Downloads

RPMs:

* httpd-2.2.15-1.aix5.1.ppc.rpm
* httpd-devel-2.2.15-1.aix5.1.ppc.rpm
* httpd-manual-2.2.15-1.aix5.1.ppc.rpm
* mod_ssl-2.2.15-1.aix5.1.ppc.rpm

Source RPM:

* httpd-2.2.15-1.src.rpm
# 4  
Old 07-02-2010
To install apache form rpm source you must have compiler and same time.

Bye
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Help troubleshooting new Apache installation on HPUX 11.31

Hi Guys! I have a very odd problem while installing Apache in an HPUX 11.31, What I did was downloaded the latest webserver suite from hp software, installed using swinstall, everything was extracted properly. The apache version was 2.2.15 Now the issue comes when I run it, it starts... (3 Replies)
Discussion started by: feliper
3 Replies

2. UNIX for Dummies Questions & Answers

Changing the Apache Installation directory in Linux

Hi All, I have installed apache using yum on centos. I know that the default installation directory is /var/www/html. Now I want to change the installation directory to /mnt/ebs. How can I do this ? (5 Replies)
Discussion started by: Palak Sharma
5 Replies

3. Solaris

Apache Server installation

Hi, can we install two diferent versions of apache on same server for different applications? (1 Reply)
Discussion started by: madhudeva
1 Replies

4. Solaris

Apache 2.2.21 installation on solaris 10

Hi , I am new to the unix environment. I need to install apache 2.2.21 on my machine. I have tried configuring apache from /etc/apache2 directory. But now I want to install it under a separate user. Can anybody tell me the step by step procedure to install it under separate user,please ?... (1 Reply)
Discussion started by: bikas89
1 Replies

5. Solaris

Apache installation error

Hi, I'm getting the below error when trying to run configure from apache 2.0.64. configure: error: C preprocessor "/lib/cpp" fails sanity check I navigated through the forum and found some users experiencing this problem and the solution was to install kernel-headers. But i'm not able to... (1 Reply)
Discussion started by: prithvirao17
1 Replies

6. Ubuntu

Mysql apache installation

on ubuntu lamp server how to install mysql and apache? any instructions? (1 Reply)
Discussion started by: srinathk
1 Replies

7. Solaris

apache and php installation..

hi i need to install apache and php on my solaris server .. can u tell me the procedure... tell me as soon as possible.. (4 Replies)
Discussion started by: senkerth
4 Replies

8. Solaris

Apache 2 doesnt create SMF service at installation

Hello everybody, I intended to use Apache 2 first time on my S10 U7 box. But the package (V2) is not ok for the developpers and they need 2.2.12 somehow. I removed Apache 1.3 and installed 2.2.12 with the stream package which I downloaded from Sunfreeware.com It's running perfectly if I start... (2 Replies)
Discussion started by: shadowfaxxxx
2 Replies

9. Solaris

apache installation

I have installed sunsolaris 10 in sparc machine.In that how to run apache bydefault apache is installed on /etc file. I have logged in as a root changed the directory to cd /etc/apache2/ from there i have copied httpd.conf-example to httpd.conf #cp httpd.conf-example httpd.conf after... (6 Replies)
Discussion started by: ambavaram
6 Replies

10. UNIX for Dummies Questions & Answers

Apache 2.0 installation

Hi all! I've got big problems while installing Apache 2.0 on my HPUX 11 machine. I have configured the installation script with "./configure --prefix=/opt/apache" and run "make". All things looking good. But when i execute "make install" i have two errors, first: and second and the... (1 Reply)
Discussion started by: coredump2003
1 Replies
Login or Register to Ask a Question