Forum Linux.général [nufw] problème compilation nufw & mysql

Posté par  .
Étiquettes : aucune
0
12
nov.
2008
bonjour a tous,

je rencontre un autre soucis avec la compilation de nufw avec mysql

mon mysql est : mysql-5.0.67-linux-x86_64-glibc23.tar.gz

installé à la main dans /opt/

le ./configure passe bien : ./configure --prefix=/opt/nufw2217 --with-mysql-log --with-ldap

c'est au make qu'il foire :


make[4]: entrant dans le répertoire « /opt/SOURCES/nufw-2.2.17/src/nuauth/modules/log_mysql »
if /bin/sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/gl
ib-2.0/include -I../../../../src/nuauth/ -I../../../../src/include/ `mysql_config --include` -DCONFIG_DIR=\"/opt/nufw2217/etc\" -DMODULE_DIR=\"/opt/nufw221
7/lib\" -g -O2 -D_POSIX_C_SOURCE=199506L -D_ISOC99_SOURCE -D_GNU_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -Wall -Wextra -Wno-unused-parameter -O2 -MT mysql.l
o -MD -MP -MF ".deps/mysql.Tpo" -c -o mysql.lo mysql.c; \
then mv -f ".deps/mysql.Tpo" ".deps/mysql.Plo"; else rm -f ".deps/mysql.Tpo"; exit 1; fi
Ajout du processus fils 0x0bd0e150 (mysql.lo) PID 15338 à la chaîne.
Processus fils actif 0x0bd0e150 (mysql.lo) PID 15338
gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../../../src/nuauth/ -I../../../..
/src/include/ -I/opt/mysql/include -DCONFIG_DIR=\"/opt/nufw2217/etc\" -DMODULE_DIR=\"/opt/nufw2217/lib\" -g -O2 -D_POSIX_C_SOURCE=199506L -D_ISOC99_SOURCE -D
_GNU_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -Wall -Wextra -Wno-unused-parameter -O2 -MT mysql.lo -MD -MP -MF .deps/mysql.Tpo -c mysql.c -fPIC -DPIC -o .libs/my
sql.o
In file included from mysql.c:24:
./log_mysql.h:20:25: error: mysql/mysql.h: No such file or directory
mysql.c:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mysql.c:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mysql.c: In function 'mysql_close_current':
mysql.c:112: error: 'MYSQL' undeclared (first use in this function)
mysql.c:112: error: (Each undeclared identifier is reported only once
mysql.c:112: error: for each function it appears in.)
mysql.c:112: error: 'ld' undeclared (first use in this function)
mysql.c:112: warning: implicit declaration of function 'get_mysql_handler'
mysql.c:114: warning: implicit declaration of function 'mysql_close'
mysql.c: In function 'mysql_close_open_user_sessions':
mysql.c:159: error: 'MYSQL' undeclared (first use in this function)
mysql.c:159: error: 'ld' undeclared (first use in this function)
mysql.c:165: warning: implicit declaration of function 'mysql_conn_init'
mysql.c:180: warning: implicit declaration of function 'mysql_real_query'
mysql.c:182: warning: implicit declaration of function 'mysql_error'
mysql.c:182: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
mysql.c: At top level:
mysql.c:334: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mysql.c:412: error: expected ')' before '*' token
mysql.c:459: error: expected ')' before '*' token
mysql.c:623: error: expected ')' before '*' token
mysql.c:695: error: expected ')' before '*' token
mysql.c:761: error: expected ')' before '*' token
mysql.c:836: error: expected ')' before '*' token
mysql.c:867: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
mysql.c: In function 'user_packet_logs':
mysql.c:901: error: 'MYSQL' undeclared (first use in this function)
mysql.c:901: error: 'ld' undeclared (first use in this function)
mysql.c:909: warning: implicit declaration of function 'log_state_open'
mysql.c:915: warning: implicit declaration of function 'log_state_established'
mysql.c:926: warning: implicit declaration of function 'log_state_close'
mysql.c:934: warning: implicit declaration of function 'log_state_drop'
mysql.c: At top level:
mysql.c:945: error: expected ')' before 'row'
mysql.c: In function 'destroy_user_connections':
mysql.c:1006: error: 'MYSQL' undeclared (first use in this function)
mysql.c:1006: error: 'ld' undeclared (first use in this function)
mysql.c:1010: error: 'MYSQL_ROW' undeclared (first use in this function)
mysql.c:1010: error: expected ';' before 'row'
mysql.c:1043: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
mysql.c:1054: error: 'MYSQL_RES' undeclared (first use in this function)
mysql.c:1054: error: 'result' undeclared (first use in this function)
mysql.c:1054: warning: implicit declaration of function 'mysql_store_result'
mysql.c:1055: error: 'row' undeclared (first use in this function)
mysql.c:1055: warning: implicit declaration of function 'mysql_fetch_row'
mysql.c:1056: warning: implicit declaration of function 'build_conntrack_msg_from_mysql'
mysql.c:1061: warning: implicit declaration of function 'mysql_free_result'
mysql.c: In function 'user_session_logs':
mysql.c:1097: error: 'MYSQL' undeclared (first use in this function)
mysql.c:1097: error: 'ld' undeclared (first use in this function)
mysql.c:1112: warning: implicit declaration of function 'quote_string'
mysql.c:1112: warning: initialization makes pointer from integer without a cast
mysql.c:1113: warning: initialization makes pointer from integer without a cast
mysql.c:1155: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
mysql.c: In function 'g_module_check_init':
mysql.c:1182: warning: implicit declaration of function 'mysql_server_init'
mysql.c: In function 'g_module_unload':
mysql.c:1199: warning: implicit declaration of function 'mysql_server_end'
Récupération du statut de sortie du processus fils 0x0bd0e150 PID 15338
make[4]: *** [mysql.lo] Erreur 1
Suppression du processus fils 0x0bd0e150 PID 15338 de la chaîne.
make[4]: quittant le répertoire « /opt/SOURCES/nufw-2.2.17/src/nuauth/modules/log_mysql »
Récupération du statut de sortie du processus fils 0x1cd722c0 PID 15326
make[3]: *** [all-recursive] Erreur 1
Suppression du processus fils 0x1cd722c0 PID 15326 de la chaîne.
make[3]: quittant le répertoire « /opt/SOURCES/nufw-2.2.17/src/nuauth/modules »
Récupération du statut de sortie du processus fils 0x1ede0110 PID 15320
make[2]: *** [all-recursive] Erreur 1
Suppression du processus fils 0x1ede0110 PID 15320 de la chaîne.
make[2]: quittant le répertoire « /opt/SOURCES/nufw-2.2.17/src/nuauth »
Récupération du statut de sortie du processus fils 0x16dc60c0 PID 15309
make[1]: *** [all-recursive] Erreur 1
Suppression du processus fils 0x16dc60c0 PID 15309 de la chaîne.
make[1]: quittant le répertoire « /opt/SOURCES/nufw-2.2.17/src »
Récupération du statut de sortie du processus fils 0x03e93d90 PID 15303
make: *** [all-recursive] Erreur 1
Suppression du processus fils 0x03e93d90 PID 15303 de la chaîne.


j'ai essayé ceci :

make -d --include-dir=/opt/mysql/include
et ceci
make CFLAGS=-I/opt/mysql/include

rien ni fait toujours pareil

un pro de la compile aurait une chtite idée ?

merci d'avance

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.