[SusE] Commande make

Fermé
webtherider Messages postés 45 Date d'inscription jeudi 7 avril 2005 Statut Membre Dernière intervention 6 juillet 2007 - 13 juin 2007 à 16:08
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 - 20 juin 2007 à 09:28
Bonjour,

Je viens de télécharger un driver pour ma clé USB (wifi), driver que je dois compiler moi-même.

Pour cela j'utilise la commande "make" (procédure d'installation du README) et voici le résultat :
make[1]: Entering directory `/usr/src/linux-2.6.13-15.15-obj/i386/smp'
make[1]: *** Pas de règle pour fabriquer la cible « modules ». Arrêt.
make[1]: Leaving directory `/usr/src/linux-2.6.13-15.15-obj/i386/smp'


Ce n'est pas le seul cas où j'ai ce problème, d'autres compilations m'ont déjà fait ça par le passé.

Que dois-je faire face à ça?

Merci!
A voir également:

4 réponses

envois le contenu de ton makefile

$ more Makefile
ou

$ more makefile

on verra quelle regle manque
0
webtherider Messages postés 45 Date d'inscription jeudi 7 avril 2005 Statut Membre Dernière intervention 6 juillet 2007 9
13 juin 2007 à 20:35
Voilà le résultat de ta requête, merci d'avance pour ton aide!

###########################################################################
# RT2400/RT2500 SourceForge Project - http://rt2x00.serialmonkey.com      #
#                                                                         #
#   This program is free software; you can redistribute it and/or modify  #
#   it under the terms of the GNU General Public License as published by  #
#   the Free Software Foundation; either version 2 of the License, or     #
#   (at your option) any later version.                                   #
#                                                                         #
#   This program is distributed in the hope that it will be useful,       #
#   but WITHOUT ANY WARRANTY; without even the implied warranty of        #
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         #
#   GNU General Public License for more details.                          #
#                                                                         #
#   You should have received a copy of the GNU General Public License     #
#   along with this program; if not, write to the                         #
#   Free Software Foundation, Inc.,                                       #
#   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             #
#                                                                         #
#   Licensed under the GNU GPL                                            #
#   Original code supplied under license from RaLink Inc, 2004.           #
###########################################################################

###########################################################################
#      Module Name: Makefile
#
#      Abstract: Makefile for rt61 kernel module
#
#      Revision History:
#      Who             When             What
#      --------        -----------      -----------------------------
#      MarkW (rt2500)  21st Jan 06      Rewrite of Makefile
#      Amir S (rt2500) 2nd  Feb 06      Update for gmake compat
#      MarkW (rt2500)  3rd  Feb 06      Fixed permissions on directory
#      MichaIL(rt2500) 13th Feb 06      Module installation fixes
#      MarkW (rt2500)  13th Feb 06      Allow install dir override
#      OlivierC        14th May 07      Install firmware file
#      OlivierC        14th May 07      Check old config
###########################################################################



MODULE_NAME := rt73
IF_NAME :=     wlan*

FIRMWARES :=   rt73.bin
FIRM_DIR :=    /lib/firmware

OLD_IF_NAME := ra0
CONFIG_DIR :=  /etc/Wireless/RT73STA
CONFIG_FILE := rt73sta.dat

ifeq ($(PATCHLEVEL),)
 PATCHLEVEL := $(shell uname -r | cut -d. -f2)
endif

$(MODULE_NAME)-objs :=  rtmp_main.o mlme.o connect.o rtusb_bulk.o rtusb_io.o \

0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
13 juin 2007 à 22:14
Salut,

Ben pour moi ça marche, enfin la commande make !
[redfox@localhost rt73-cvs-2007061314]$ ls
CHANGELOG CVS/ FAQ LICENSE Module/ README THANKS
[redfox@localhost rt73-cvs-2007061314]$ cd Module/
[redfox@localhost Module]$ ls
assoc.c Makefile rt2x00debug.h rtmp_info.c rtusb_bulk.c wpa.c
auth.c md5.c rt73.bin rtmp_init.c rtusb_data.c wpa.h
auth_rsp.c md5.h rt73.h rtmp_main.c rtusb_io.c
connect.c mlme.c rt_config.h rtmp_tkip.c sanity.c
CVS/ mlme.h rtmp_def.h rtmp_type.h sync.c
iwpriv_usage.txt oid.h rtmp.h rtmp_wep.c TESTING
[redfox@localhost Module]$ make
make[1]: entrant dans le répertoire « /usr/src/linux-2.6.17-14mdv »

WARNING: Symbol version dump /usr/src/linux-2.6.17-14mdv/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtmp_main.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/mlme.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/connect.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtusb_bulk.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtusb_io.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/sync.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/assoc.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/auth.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/auth_rsp.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtusb_data.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtmp_init.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/sanity.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtmp_wep.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtmp_info.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rtmp_tkip.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/wpa.o
CC [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/md5.o
LD [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rt73.o
Building modules, stage 2.
MODPOST
CC /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rt73.mod.o
LD [M] /home/redfox/Tarball_Redfox/rt73-cvs-2007061314/Module/rt73.ko
make[1]: quittant le répertoire « /usr/src/linux-2.6.17-14mdv »
*** Module rt73.ko built successfully


bon il y a des warnings mais ça passe !

ton Makefile n'est pas complet ... :-))

make[1]: Entering directory `/usr/src/linux-2.6.13-15.15-obj/i386/smp'
c'est quoi le noyau linux-2.6.13-15.15-obj ??

:-))
0
webtherider Messages postés 45 Date d'inscription jeudi 7 avril 2005 Statut Membre Dernière intervention 6 juillet 2007 9
20 juin 2007 à 09:09
Oui effectivement mon Makefile n'est pas complet, j'ai pas eu le temps de tout copier et franchement analyser ce genre de fichier est difficile car long et indigeste.

Je ne sais pas pourquoi le noyau se termine par obj, surtout que j'ai un autre répertoire noyau sans ce "obj" à la fin. Quelle est la variable qui définit ce chemin? Peut-être qu'en la pointant vers l'autre répertoire ça marchera.

Merci!
0
bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
20 juin 2007 à 09:28
Salut,

Peut-être ton noyau ? renseigne toi sur ce noyau qui se termine par "obj" !
surtout que j'ai un autre répertoire noyau sans ce "obj" à la fin. Quelle est la variable qui définit ce chemin ?
J'y connais pas grand chose, mais je suis pas sûr que repointer vers le répertoire de ton 2ème noyau (sans "obj") soit la bonne solution, si tenté que cela soit réalisable.
Je crois que tu dois faire un choix entre le noyau A (sans "obj") et ton noyau B (avec "obj").
Si tu as des problèmes de compilation uniquement sur le noyau B (avec "obj") : alors peut-être faut-il examiner cette piste ...

Si ça peut t'aider.

:-))
0