Bonjour,
Je suis sous linux Fedora core 5, apache 2.0.55
Voila je désire compiler un module d'authentification utilisant mysql et ceci pour apache
Mon fichier de code qui me permet de le faire :
-L/usr/local/mysql/lib => le path d'install de mon mysql pour le rep lib et où se trouve mon fichier libmysqlclient.a a inclure dans la compilation
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 #!/bin/sh /usr/local/apache/bin/apxs -c \ -L/usr/local/mysql/lib \ -I/usr/local/mysql/include \ -llibmysqlclient.a \ mod_auth_mysql.c
-I/usr/local/mysql/include => le path d'install de mon mysql pour le rep include
mod_auth_mysql.c => la librairie source à transformer en module dso (mod_auth_mysql.so)
et lui me sort que des erreurs
Qu'elle est l'erreur dans mon fichier de conf : parce que la je seche dur dur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 root@admin mod_auth_mysql]# ../install_mod_auth_mysql /usr/local/apache-2.2/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache-2.2/include -I/usr/local/apache-2.2/include -I/usr/local/apache-2.2/include -I/usr/local/mysql/include -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo mod_auth_mysql.c:107:25: error: mysql/mysql.h: No such file or directory mod_auth_mysql.c:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token mod_auth_mysql.c: In function 'mod_auth_mysql_cleanup': mod_auth_mysql.c:153: error: 'mysql_handle' undeclared (first use in this function) mod_auth_mysql.c:153: error: (Each undeclared identifier is reported only once mod_auth_mysql.c:153: error: for each function it appears in.) mod_auth_mysql.c: In function 'open_db_handle': mod_auth_mysql.c:289: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysql_conn' mod_auth_mysql.c:289: error: 'mysql_conn' undeclared (first use in this function) mod_auth_mysql.c:300: error: 'mysql_handle' undeclared (first use in this function) mod_auth_mysql.c:312: error: 'db_host' undeclared (first use in this function) mod_auth_mysql.c: In function 'is_virtual_in_db': mod_auth_mysql.c:348: error: 'MYSQL_RES' undeclared (first use in this function) mod_auth_mysql.c:348: error: 'result' undeclared (first use in this function) mod_auth_mysql.c:359: error: 'mysql_handle' undeclared (first use in this function) mod_auth_mysql.c:376: error: 'MYSQL_ROW' undeclared (first use in this function) mod_auth_mysql.c:376: error: expected ';' before 'data' mod_auth_mysql.c:377: error: 'data' undeclared (first use in this function) mod_auth_mysql.c: In function 'get_db_pw': mod_auth_mysql.c:408: error: 'MYSQL_RES' undeclared (first use in this function) mod_auth_mysql.c:408: error: 'result' undeclared (first use in this function) mod_auth_mysql.c:418: error: 'mysql_handle' undeclared (first use in this function) mod_auth_mysql.c:443: error: 'MYSQL_ROW' undeclared (first use in this function) mod_auth_mysql.c:443: error: expected ';' before 'data' mod_auth_mysql.c:444: error: 'data' undeclared (first use in this function) mod_auth_mysql.c: In function 'get_db_grp': mod_auth_mysql.c:470: error: 'MYSQL_RES' undeclared (first use in this function) mod_auth_mysql.c:470: error: 'result' undeclared (first use in this function) mod_auth_mysql.c:471: error: 'MYSQL_ROW' undeclared (first use in this function) mod_auth_mysql.c:471: error: expected ';' before 'data' mod_auth_mysql.c:486: error: 'mysql_handle' undeclared (first use in this function) mod_auth_mysql.c:517: error: 'data' undeclared (first use in this function) apxs:Error: Command failed with rc=65536 . [root@admin mod_auth_mysql]#
merci à vous
Partager