make error installing Apache

Discuss general troubleshooting concerns.

Moderators: scrumpy, Dave, leihog

make error installing Apache

Postby sal on Tue Sep 01, 2009 5:48 am

Hi, after 1 day of googleling and searching the forum I'm now asking for your help :oops: .
I'm running Engarde on a virtual Machine(32bit) on a 64bit CentOs.
When I try to install a new Apache I always run into the same trouble:

./configure works fine
but as soon as I run make this is what comes up:

...
Making all in os
make[1]: Entering directory `/usr/share/apache2/os'
Making all in unix
make[2]: Entering directory `/usr/share/apache2/os/unix'
make[3]: Entering directory `/usr/share/apache2/os/unix'
/usr/share/apache/build/libtool --silent --mode=compile gcc -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/share/apache2/srclib/pcre -I. -I/usr/share/apache2/os/unix -I/usr/share/apache2/server/mpm/prefork -I/usr/share/apache2/modules/http -I/usr/share/apache2/modules/filters -I/usr/share/apache2/modules/proxy -I/usr/share/apache2/include -I/usr/share/apache2/modules/generators -I/usr/share/apache2/modules/mappers -I/usr/share/apache2/modules/database -I/usr/include/apache -I/usr/share/apache2/modules/proxy/../generators -I/usr/share/apache2/modules/ssl -I/usr/share/apache2/modules/dav/main -prefer-non-pic -static -c unixd.c && touch unixd.lo
In file included from /usr/include/sys/socket.h:35,
from /usr/include/apache/apr.h:120,
from /usr/share/apache2/include/ap_config.h:25,
from unixd.c:17:
:shock: /usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
In file included from /usr/include/signal.h:333,
from /usr/include/sys/wait.h:30,
from /usr/include/apache/apr.h:134,
from /usr/share/apache2/include/ap_config.h:25,
from unixd.c:17:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or directory
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from /usr/include/apache/apr_errno.h:28,
from /usr/include/apache/apr_pools.h:38,
from /usr/include/apache/apr_tables.h:26,
from /usr/include/apache/apr_hooks.h:22,
from /usr/share/apache2/include/ap_config.h:26,
from unixd.c:17:
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
make[3]: *** [unixd.lo] Fehler 1
make[3]: Leaving directory `/usr/share/apache2/os/unix'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/usr/share/apache2/os/unix'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/share/apache2/os'
make: *** [all-recursive] Fehler 1

looks like the trouble starts right here:
usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory

Does anyone have a clue what I can do ?

thanks
sal
sal
 
Posts: 2
Joined: Tue Sep 01, 2009 5:31 am

solved

Postby sal on Tue Sep 01, 2009 1:01 pm

:lol: Ok looks like this is the solution:

cd /usr/include
ln -sf ../src/linux/include/asm-generic asm-generic
ln -sf ../src/linux/include/asm-i386 asm
sal
 
Posts: 2
Joined: Tue Sep 01, 2009 5:31 am


Return to General Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron