PDA

View Full Version : [APACHE] Problema compilazione


arpino84
12-09-2007, 15:05
Ciao a tutti.
Sono alle prese con una compilazione di apache sotto linux per minimizzarlo, seguendo la guida pubblicata su :
http://threebit.net/tutorials/apache2_modules/tut1/tutorial1.html

Quando arrivo al passaggio :
./configure --with-apache=$TUTORIAL_HOME/apache2
make

il ./configure non mi da problemi, ma il make invece :
source='mod_tut1.c' object='mod_tut1.lo' libtool=yes \
depfile='.deps/mod_tut1.Plo' tmpdepfile='.deps/mod_tut1.TPlo' \
depmode=gcc3 /bin/sh ./depcomp \
/bin/sh ./libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mod_tut1\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/opt/threebit-tutorials/apache2/include -g -O2 -c -o mod_tut1.lo `test -f 'mod_tut1.c' || echo './'`mod_tut1.c
mkdir .libs
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mod_tut1\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/opt/threebit-tutorials/apache2/include -g -O2 -c mod_tut1.c -MT mod_tut1.lo -MD -MP -MF .deps/mod_tut1.TPlo -fPIC -DPIC -o .libs/mod_tut1.lo
In file included from /opt/threebit-tutorials/apache2/include/ap_config.h:25,
from /opt/threebit-tutorials/apache2/include/httpd.h:43,
from mod_tut1.c:22:
/opt/threebit-tutorials/apache2/include/apr.h:273: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr.h:273: warning: data definition has no type or storage class
In file included from /opt/threebit-tutorials/apache2/include/apr_file_io.h:29,
from /opt/threebit-tutorials/apache2/include/apr_network_io.h:26,
from /opt/threebit-tutorials/apache2/include/httpd.h:53,
from mod_tut1.c:22:
/opt/threebit-tutorials/apache2/include/apr_file_info.h:204: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_file_info.h:204: warning: no semicolon at end of struct or union
/opt/threebit-tutorials/apache2/include/apr_file_info.h:206: warning: data definition has no type or storage class
/opt/threebit-tutorials/apache2/include/apr_file_info.h:219: parse error before '}' token
In file included from /opt/threebit-tutorials/apache2/include/apr_network_io.h:26,
from /opt/threebit-tutorials/apache2/include/httpd.h:53,
from mod_tut1.c:22:
/opt/threebit-tutorials/apache2/include/apr_file_io.h:551: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_file_io.h:747: parse error before "apr_off_t"
In file included from /opt/threebit-tutorials/apache2/include/httpd.h:53,
from mod_tut1.c:22:
/opt/threebit-tutorials/apache2/include/apr_network_io.h:545: parse error before "apr_off_t"
In file included from /opt/threebit-tutorials/apache2/include/apr_buckets.h:32,
from /opt/threebit-tutorials/apache2/include/httpd.h:54,
from mod_tut1.c:22:
/opt/threebit-tutorials/apache2/include/apr_mmap.h:134: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_mmap.h:161: parse error before "apr_off_t"
In file included from /opt/threebit-tutorials/apache2/include/httpd.h:54,
from mod_tut1.c:22:
/opt/threebit-tutorials/apache2/include/apr_buckets.h:242: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:242: warning: no semicolon at end of struct or union
/opt/threebit-tutorials/apache2/include/apr_buckets.h:255: parse error before '}' token
/opt/threebit-tutorials/apache2/include/apr_buckets.h:634: field `b' has incomplete type
/opt/threebit-tutorials/apache2/include/apr_buckets.h:706: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:718: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:754: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:890: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:1168: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:1367: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:1381: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:1431: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/apr_buckets.h:1447: parse error before "apr_off_t"
In file included from /opt/threebit-tutorials/apache2/include/httpd.h:62,
from mod_tut1.c:22:
/usr/include/stdlib.h:567: `free' redeclared as different kind of symbol
/opt/threebit-tutorials/apache2/include/apr_buckets.h:252: previous declaration of `free'
In file included from mod_tut1.c:22:
/opt/threebit-tutorials/apache2/include/httpd.h:848: parse error before "apr_off_t"
/opt/threebit-tutorials/apache2/include/httpd.h:848: warning: no semicolon at end of struct or union
/opt/threebit-tutorials/apache2/include/httpd.h:850: warning: data definition has no type or storage class
/opt/threebit-tutorials/apache2/include/httpd.h:861: parse error before "clength"
/opt/threebit-tutorials/apache2/include/httpd.h:861: warning: data definition has no type or storage class
/opt/threebit-tutorials/apache2/include/httpd.h:864: parse error before "remaining"
/opt/threebit-tutorials/apache2/include/httpd.h:864: warning: data definition has no type or storage class
/opt/threebit-tutorials/apache2/include/httpd.h:866: parse error before "read_length"
/opt/threebit-tutorials/apache2/include/httpd.h:866: warning: data definition has no type or storage class
/opt/threebit-tutorials/apache2/include/httpd.h:997: parse error before '}' token
/opt/threebit-tutorials/apache2/include/httpd.h:945: storage size of `finfo' isn't known
make: *** [mod_tut1.lo] Error 1

e non so pił dove sbattere la testa ... mi date una mano a scovare il perchč mi da errore?!?!?

Merci ... :sofico:

texerasmo
13-09-2007, 10:53
prova lanciare
./configure --prefix=/usr/local/apache

poi il make make install