compilation apache

Le
jfr
Bonjour,

J'essai d'installer apache (httpd-2.0.53) apache avec une fedora core 3
sur laquelle gcc n'etait pas installé ; Le ./ configure.. m'indique
qu'il manque le compilateur c ; j'ai installé les rpm de la
gcc-3.4.3-22.fc3.

Le ./ configure marche sans problème mais au moment du "make" les choses
se gatent puisque celui-ci rentre dans une boucle infinie et envoie sans
arret une série de message du type suivant (désolé pour la longueur); je
n'arrive pas à comprendre si il s'agit d'un Pb lié à gcc, au manque
d'une librairie, à sa configuration ou à autre chose.
J'ai installé la même version d'apache sur une autre machine sans
poblème, j'ai essayé d'installer une version antérieur de gcc mais
impossible pour des raisons de dépendance

SI quelqu'un peut m'aider ?

JF

Extrait des messages :

-g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCEP0 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/include/private
-I/usr/local/src/httpd-2.0.53/srclib/apr/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib -I.
-version-info 9:6:9 -o gen_uri_delims gen_uri_delims.lo -lrt -lm
-lcrypt -lnsl -lpthread -ldl
> libtool: link: warning: `-version-info' is ignored for programs
> ./gen_uri_delims > uri_delims.h
> /bin/sh /usr/local/src/httpd-2.0.53/srclib/apr/libtool --silent
--mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCEP0 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -I/usr/local/src/httpd-2.0.53/srclib/apr-util/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/include/private
-I/usr/local/src/httpd-2.0.53/srclib/apr/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib -I. -c
apr_uri.c && touch apr_uri.lo
> make[4]: AVERTISSEMENT: changement d'horloge détecté. La
construction peut Ãe incomplète.
-bash: command substitution: line 1: unexpected EOF while looking for
matching `''
-bash: command substitution: line 5: syntax error: unexpected end of file
-bash: make[4]:: command not found
[root@ik58033 httpd-2.0.53]# make[4]: Leaving directory
`/usr/local/src/httpd-2.0.53/srclib/apr-util/uri'
> make[3]: Leaving directory
`/usr/local/src/httpd-2.0.53/srclib/apr-util/uri'
> Making all in xml
> make[3]: Entering directory
`/usr/local/src/httpd-2.0.53/srclib/apr-util/xml'
-bash: command substitution: line 1: unexpected EOF while looking for
matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
checking target system type i686-pc-linux-gnu
-bash: make[4]:: command not found
checking for gcc gcc
[root@ik58033 httpd-2.0.53]# Making all in expat
checking for C compiler default output file name a.out
-bash: Making: command not found
[root@ik58033 httpd-2.0.53]# make[4]: Entering directory
`/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat'
> make[4]: Warning: File `Makefile.in' has modification time 5,7e+07 s
in the future
> running /bin/sh
/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/configure
-with-layout=Apache --enable-mods-shared=most
--srcdir=/usr/local/src/httpd-2.0.53/srclib/apr-util --with-apr=../apr
--libdir=${prefix}/lib --bindir=${prefix}/bin --cache-file=/dev/null
--srcdir=/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat
--prefix=/usr/local/apache2 --exec-prefix=/usr/local/apache2
--libdir=/usr/local/apache2/lib --includedir=/usr/local/apache2/include
--bindir=/usr/local/apache2/bin --no-create --no-recursion
> checking build system type i686-pc-linux-gnu
> checking host system type i686-pc-linux-gnu
> checking target system type i686-pc-linux-gnu
> checking for gcc gcc
> checking for C compiler default output file name a.out
> checking whether the C compiler works yes
> checking whether we are cross compiling no
> checking for suffix of executables
> checking for suffix of object files o
> checking whether we are using the GNU C compiler yes
> checking whether gcc accepts -g yes
> checking for gcc option to accept ANSI C none needed
> checking for a sed that does not truncate output /bin/sed
> checking for egrep grep -E
> checking for ld used by gcc /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld yes
> checking for /usr/bin/ld option to reload object files -r
> checking for BSD-compatible nm /usr/bin/nm -B
> checking whether ln -s works yes
> checking how to recognise dependent libraries pass_all
> checking how to run the C preprocessor gcc -E
> checking for ANSI C header files yes
> checking for sys/types.h yes
> checking for sys/stat.h yes
> checking for stdlib.h yes
> checking for string.h yes
> checking for memory.h yes
> checking for strings.h yes
> checking for inttypes.h yes
> checking for stdint.h yes
> checking for unistd.h yes
> checking dlfcn.h usability yes
> checking dlfcn.h presence yes
> checking for dlfcn.h yes
> checking for g++ no
> checking for c++ no
> checking for gpp no
> checking for aCC no
> checking for CC no
> checking for cxx no
> checking for cc++ no
> checking for cl no
> checking for FCC no
> checking for KCC no
> checking for RCC no
> checking for xlC_r no
> checking for xlC no
> checking whether we are using the GNU C++ compiler no
> checking whether g++ accepts -g no
> checking for g77 no
> checking for f77 no
> checking for xlf no
> checking for frt no
> checking for pgf77 no
> checking for fort77 no
> checking for fl32 no
> checking for af77 no
> checking for f90 no
> checking for xlf90 no
> checking for pgf90 no
> checking for epcf90 no
> checking for f95 no
> checking for fort no
> checking for xlf95 no
> checking for ifc no
> checking for efc no
> checking for pgf95 no
> checking for lf95 no
> checking for gfortran no
> checking whether we are using the GNU Fortran 77 compiler no
> checking whether accepts -g no
> checking the maximum length of command line arguments 32768
> checking command to parse /usr/bin/nm -B output from gcc object ok
> checking for objdir .libs
> checking for ar ar
> checking for ranlib ranlib
> checking for strip strip
> checking if gcc static flag works yes
> checking if gcc supports -fno-rtti -fno-exceptions no
> checking for gcc option to produce PIC -fPIC
> checking if gcc PIC flag -fPIC works yes
> checking if gcc supports -c -o file.o yes
> checking whether the gcc linker (/usr/bin/ld) supports shared
libraries yes
> checking whether -lc should be explicitly linked in no
> checking dynamic linker characteristics GNU/Linux ld.so
> checking how to hardcode library paths into programs immediate
> checking whether stripping libraries is possible yes
> checking if libtool supports shared libraries yes
> checking whether to build shared libraries yes
> checking whether to build static libraries yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> appending configuration tag "F77" to libtool
> checking for gcc (cached) gcc
> checking whether we are using the GNU C compiler (cached) yes
> checking whether gcc accepts -g (cached) yes
> checking for gcc option to accept ANSI C (cached) none needed
> checking for a BSD-compatible install /usr/bin/install -c
> checking for ANSI C header files (cached) yes
> checking fcntl.h usability yes
> checking fcntl.h presence yes
> checking for fcntl.h yes
> checking for unistd.h (cached) yes
> checking for string.h (cached) yes
> checking whether byte ordering is bigendian no
> checking for an ANSI C-conforming const yes
> checking for off_t yes
> checking for size_t yes
> checking for working memcmp yes
> checking for stdlib.h (cached) yes
> checking for unistd.h (cached) yes
> checking for getpagesize yes
> checking for working mmap yes
> checking for memmove yes
> checking for bcopy yes
> configure: creating ./config.status
> CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh config.status
> config.status: creating Makefile
> make[4]: Leaving directory
`/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat'
-bash: command substitution: line 1: unexpected EOF while looking for
matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
make[4]: Entering directory
`/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat'
-bash: make[4]:: command not found
[root@ik58033 httpd-2.0.53]# make[4]: Entering directory
`/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat'
> make[4]: Warning: File `Makefile.in' has modification time 5,7e+07 s
in the future
> running /bin/sh
/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/configure
-with-layout=Apache --enable-mods-shared=most
--srcdir=/usr/local/src/httpd-2.0.53/srclib/apr-util --with-apr=../apr
--libdir=${prefix}/lib --bindir=${prefix}/bin --cache-file=/dev/null
--srcdir=/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat
--prefix=/usr/local/apache2 --exec-prefix=/usr/local/apache2
--libdir=/usr/local/apache2/lib --includedir=/usr/local/apache2/include
--bindir=/usr/local/apache2/bin --no-create --no-recursion
> checking build system type i686-pc-linux-gnu
> checking host system type i686-pc-linux-gnu
> checking target system type i686-pc-linux-gnu
> checking for gcc gcc
> checking for C compiler default output file name a.out
> checking whether the C compiler works yes
> checking whether we are cross compiling no
> checking for suffix of executables
> checking for suffix of object files o
> checking whether we are using the GNU C compiler yes
> checking whether gcc accepts -g yes
> checking for gcc option to accept ANSI C none needed
> checking for a sed that does not truncate output /bin/sed
> checking for egrep grep -E
> checking for ld used by gcc /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld yes
> checking for /usr/bin/ld option to reload object files -r
> checking for BSD-compatible nm /usr/bin/nm -B
> checking whether ln -s works yes
> checking how to recognise dependent libraries pass_all
> checking how to run the C preprocessor gcc -E
> checking for ANSI C header files yes
> checking for sys/types.h yes
> checking for sys/stat.h yes
> checking for stdlib.h yes
> checking for string.h yes
> checking for memory.h yes
> checking for strings.h yes
> checking for inttypes.h yes
> checking for stdint.h yes
> checking for unistd.h yes
> checking dlfcn.h usability yes
> checking dlfcn.h presence yes
> checking for dlfcn.h yes
> checking for g++ no
> checking for c++ no
> checking for gpp no
> checking for aCC no
> checking for CC no
> checking for cxx no
> checking for cc++ no
>
Vos réponses
Trier par : date / pertinence
Rakotomandimby (R12y) Mihamina
Le #1325278
( Thu, 14 Apr 2005 22:20:58 +0200 ) jfr :

Bonjour,

J'essai d'installer apache (httpd-2.0.53) apache avec une fedora core 3
sur laquelle gcc n'etait pas installé ; Le ./ configure.. m'indique
qu'il manque le compilateur c ; j'ai installé les rpm de la
gcc-3.4.3-22.fc3.


Je te conseille plutot d'utiliser le src.rpm de apache 2.0.53.
http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/httpd-2.0.53-6.src.rpm

Un tout petit peu de lecture (mais c'est vraiment peu), et tu pourras t'en
sortir:

http://faq.fcolc.eu.org/administration/fabriquerrpm/view

Si tu as besoin d'options particulière à la compilation, tu peux tout
simplement modifier le fichier spec inclu dans ce src.rpm et puis ça ira.

Sinon je pense que ce qui te manque c'est autoconf/automake et les
"autotools" en tout genre.

--
Les serveurs avec 10Mb/s se louent maintenant pour 50 ou 60 Euros par mois!
La preuve http://www.google.fr/search?q=serveur+dedie
Infogerance de serveur dedie http://aspo.rktmb.org/activites/infogerance
(En louant les services de l'ASPO vous luttez contre la fracture numerique)

Publicité
Poster une réponse
Anonyme