OVH Cloud OVH Cloud

fhttpd et problème à la compilation.

2 réponses
Avatar
Debellez
Bonjour, je sèche.

J'aimerai installer fhttpd-0.4.2 dispo ici :
http://www.fhttpd.org/www/download.html

Ma config :
-> debian-31r1a-i386-netinst nue de base
-> noyeau 2.4.27-2-386

à la compilation voici les erreurs :
************************************************************************
cc1: attention : "-felide-constructors" is valid for C++ but not for C/ObjC
cc1: attention : "-felide-constructors" is valid for C++ but not for C/ObjC
log.cc: Dans la fonction membre « int
ApplicationInstance::SendLogMessage(ControlFTPServerApp*,
ApplicationRequest*, ApplicationInstance*, timeval*, int, char*, char*,
int,
int) » :
log.cc:260: attention : unused variable `int*lp0'
log.cc:252: attention : `int rln0' might be used uninitialized in this
function
log.cc:252: attention : `int rln1' might be used uninitialized in this
function
log.cc:252: attention : `int paramc' might be used uninitialized in this
function
sockobj.cc: Dans la fonction membre « int WriteBuffer::writeout(int) » :
sockobj.cc:881: attention : `int maxsendconnections' might be used
uninitialized in this function
fhttpd.cc:3350: attention : ISO C++ forbids declaration of `main' with no
type
fhttpd.cc: Dans la fonction membre « char*
ControlFTPServer::translatename(ServerConnection*, char*, char*, int*) »
:
fhttpd.cc:408: attention : `int baselen' might be used uninitialized in
this
function
sockobj.o(.text+0x3e): In function `fatal(char*, ...)':
/root/fhttpd-0.4.2/sockobj.h:305: warning: `sys_errlist' is deprecated; use
`strerror' or `strerror_r' instead
sockobj.o(.text+0x35): In function `fatal(char*, ...)':
/root/fhttpd-0.4.2/sockobj.cc:123: warning: `sys_nerr' is deprecated; use
`strerror' or `strerror_r' instead
cc1: attention : "-felide-constructors" is valid for C++ but not for C/ObjC
servproc.c: Dans la fonction « linefromtime »:
servproc.c:407: attention : implicit declaration of function `gmtime'
servproc.c:407: attention : affectation transforme un entier en pointeur
sans transtypage
servproc.c:409: error: dereferencing pointer to incomplete type
servproc.c:410: error: dereferencing pointer to incomplete type
servproc.c:410: error: dereferencing pointer to incomplete type
servproc.c:410: error: dereferencing pointer to incomplete type
servproc.c:410: error: dereferencing pointer to incomplete type
servproc.c:411: error: dereferencing pointer to incomplete type
servproc.c:411: error: dereferencing pointer to incomplete type
servproc.c: Dans la fonction « readrequest »:
servproc.c:679: attention : format int, arg time_t (arg 3)
servproc.c: Dans la fonction « makeid »:
servproc.c:1382: attention : implicit declaration of function `time'
make: *** [servproc.o] Erreur 1
************************************************************************

Je pense ne pas utiliser les bons compilateurs ou les bonnes librairies.
Voici ce que l'éditeur dit à ce sujet :

If you will see any errors, it may be a problem with options, compiler or
installed libraries. Please note that on Linux fhttpd won't work if
compiled with some old, buggy versions of glibc2 (<=2.0.6) that probably
are still in use somewhere.

Je crois pourtant avoir mis à jour les librairies et les compilateurs:
apt-get install g++-3.4
apt-get install gpp-3.4
apt-get install cpp-3.4

Voici une partie du fichier Makefile
Faut il changer les valeurs ici ?

# Default compilers and linker
CC = gcc
CXX = g++
LD = $(CXX)

La partie concernant Linux :

## for Linux (libc 5):
#
#COPTS = -Wall -O3 -felide-constructors -DLS_OPTIONS_IGNORE -
DPSEUDOPOLL\
# -DMMAPPAGESIZE=65536 -DSIGARGS="int sig" -DSIGACTARGS="int sig"\
# -DGLOBAL_TIMEZONE # -DFLOCK

## for Linux (glibc2/libc 6):
#
COPTS = -Wall -O3 -felide-constructors -DLS_OPTIONS_IGNORE\
-DNEED_CRYPT_H -DCMSG_DATA_IS_A_MACRO \
-DMMAPPAGESIZE=65536 -DSIGARGS="int sig" -DSIGACTARGS="int sig"\
-D__s32=int\
-DGLOBAL_TIMEZONE -DGLIBC -DERRNO_DEFINED # -DFLOCK
LFLAGS= -lcrypt

Merci aux personnes qui m'accorderont un peu de leur temps et de leur
savoir...

je suis vraiment bloqué !

Cordialement.

2 réponses

Avatar
shal
Debellez wrote:
Bonjour, je sèche.

J'aimerai installer fhttpd-0.4.2 dispo ici :
http://www.fhttpd.org/www/download.html

Ma config :
-> debian-31r1a-i386-netinst nue de base
-> noyeau 2.4.27-2-386

à la compilation voici les erreurs :
************************************************************************
servproc.c:407: attention : implicit declaration of function `gmtime'

servproc.c:1382: attention : implicit declaration of function `time'



Dans le fichier /root/fhttpd-0.4.2/sockobj.cc rajouter :
#include <time.h>



Merci aux personnes qui m'accorderont un peu de leur temps et de leur
savoir...


de rien

Avatar
Debellez
Dans le fichier /root/fhttpd-0.4.2/sockobj.cc rajouter :
#include <time.h>


Merci, ca fonctione à présent.