Tu peux essaye ceci

cd DIR_INCLUDE                ( chez moi c'est /usr/include )
grep -R SCHED_YIELD
si il trouve un #define SCHED_YIELD tu notes le nom du fichier -->
NOM_DE_FICHIER ( c'est linux/sched.h )   #define SCHED_YIELD
0x10
et tu ajoute un #include NOM_DE_FICHIER

sinon change SCHED_YIELD avec 0x10, mais ca peut changer de valeur.

Dominique



|---------+------------------------------->
|         |           Alain EMPAIN        |
|         |           <[EMAIL PROTECTED]|
|         |           .be>                |
|         |           Sent by:            |
|         |           [EMAIL PROTECTED]|
|         |           unixtech.be         |
|         |                               |
|         |                               |
|         |           09/07/2003 14:40    |
|         |           Please respond to   |
|         |           linux               |
|         |                               |
|---------+------------------------------->
  
>-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |       To:       rtfm <[EMAIL PROTECTED]>                                           
                                    |
  |       cc:       (bcc: Dominique Gallot/BRU/MASTERCARD)                             
                                          |
  |       Subject:  [linux] EtherExpress recompilation : SCHED_YIELD not defined       
                                          |
  
>-------------------------------------------------------------------------------------------------------------------------------|




Bonjour tout le monde,

j'ai des probl�mes avec une Intel EtherExpress PRO/100 S Server Adapter,
qui d�croche brutalement sous haute pression (je testais en faisant les
md5sum
de tout les RPMs de SuSE, en NFS).
J'ai trouv� d'autres cas semblables sur le net (UDP, haute charge..., par
contre scp semble ne pas planter l'interface [mais pas UDP]).

Je suis all� chercher le dernier driver e100 chez Intel (SuSE 8.2:
2.1.19.K3,
dernier: 2.3.13).

Mais la compilation coince car SCHED_YIELD n'est pas d�fini.

             Une suggestion ?

             Merci,

             Alain
------------------------------------------------------------------->%------
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,2)
#ifndef yield /* RH 2.4.18-3 has yield, which is not defined in standard
Linux
>
#define yield()                                 \
        do {                                    \
                current->policy |= SCHED_YIELD; \
                schedule();                     \
        } while (0)
#endif
------------------------------------------------------------------>%-------

--
        Bonne journ�e - Have a good day,

        Alain
+--------------------------------------------------------------------------
|  Dr Alain EMPAIN      Bioinformatique, G�n�tique Mol�culaire B43,
|  Fac. M�d. V�t�rinaire, Univ. de Li�ge, Sart-Tilman / B-4000 Li�ge
|       [EMAIL PROTECTED]
|       WORK:+32 4 366 3821 Fax: +32 4 366 4122   GSM:+32 497 701764
|       HOME:+32 85 512341  -- Rue des Martyrs,7  B-4550 Nandrin


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech






**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à