gcc-3.3 i kernel 2.4. i 2.5.

2003-06-16 Wątek bieniu
heja again

problem jest z gcc-3.3 i kompilacja kerneli 2.4. i 2.5. w moim przypadku
2.4.20
nalezy zmienic 2 pliki (tam gdzie + to nalezy ustawic):
czyli w pierwszym z __u8 short slot_tablelen; na __u8 slot_tablelen; w
nastepnyh plikach ta sama zasada

--- linux-2.4.20-orig/drivers/ide/ide-cd.h 2002-12-10 17:46:28 +0900
+++ linux-2.4.20/drivers/ide/ide-cd.h 2003-05-16 00:59:53 +0900
@@ -437,7 +437,7 @@

 byte curlba[3];
 byte nslots;
- __u8 short slot_tablelen;
+ __u8 slot_tablelen;
 };

-
i

--- linux-2.4.20-orig/net/core/rtnetlink.c 2002-12-09 16:38:46 +0900
+++ linux-2.4.20/net/core/rtnetlink.c 2003-05-16 01:31:20 +0900
@@ -394,7 +394,7 @@
  * Malformed skbs with wrong lengths of messages are discarded silently.
  */

-extern __inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
+__inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
 {
 int err;
 struct nlmsghdr * nlh;

-
dla scsi (ja nie uzywam ale znalazlem tez liste zmian:

--- linux-2.4.20-orig/drivers/scsi/aic7xxx/aic7xxx_osm.c 2002-08-03 09:39:44
+0900
+++ linux-2.4.20/drivers/scsi/aic7xxx/aic7xxx_osm.c 2003-05-16 01:21:40
+0900
@@ -417,25 +417,25 @@
 MODULE_LICENSE(Dual BSD/GPL);
 #endif
 MODULE_PARM(aic7xxx, s);
-MODULE_PARM_DESC(aic7xxx, period delimited, options string.
- verbose Enable verbose/diagnostic logging
- no_probe Disable EISA/VLB controller probing
- no_reset Supress initial bus resets
- extended Enable extended geometry on all controllers
- periodic_otag Send an ordered tagged transaction periodically
- to prevent tag starvation. This may be
- required by some older disk drives/RAID arrays.
- reverse_scan Sort PCI devices highest Bus/Slot to lowest
- tag_info:tag_str Set per-target tag depth
- seltime:int Selection Timeout(0/256ms,1/128ms,2/64ms,3/32ms)
-
- Sample /etc/modules.conf line:
- Enable verbose logging
- Disable EISA/VLB probing
- Set tag depth on Controller 2/Target 2 to 10 tags
- Shorten the selection timeout to 128ms from its default of 256
-
- options aic7xxx='\verbose.no_probe.tag_info:{{}.{}.{..10}}.seltime:1\'
+MODULE_PARM_DESC(aic7xxx, period delimited, options string.\n\
+ verbose Enable verbose/diagnostic logging\n\
+ no_probe Disable EISA/VLB controller probing\n\
+ no_reset Supress initial bus resets\n\
+ extended Enable extended geometry on all controllers\n\
+ periodic_otag Send an ordered tagged transaction periodically\n\
+ to prevent tag starvation. This may be\n\
+ required by some older disk drives/RAID arrays. \n\
+ reverse_scan Sort PCI devices highest Bus/Slot to lowest\n\
+ tag_info:tag_str Set per-target tag depth\n\
+ seltime:int Selection Timeout(0/256ms,1/128ms,2/64ms,3/32ms)\n\
+\n\
+ Sample /etc/modules.conf line:\n\
+ Enable verbose logging\n\
+ Disable EISA/VLB probing\n\
+ Set tag depth on Controller 2/Target 2 to 10 tags\n\
+ Shorten the selection timeout to 128ms from its default of 256\n\
+\n\
+ options
aic7xxx='\verbose.no_probe.tag_info:{{}.{}.{..10}}.seltime:1\'\n\
 );
 #endif


pozdrawiam
bieniu


- Original Message -
From: bieniu [EMAIL PROTECTED]
To: debian-user-polish@lists.debian.org
Sent: Monday, June 16, 2003 12:26 PM
Subject: problem z kompilacja kernela


 heja

 przy make bzImage

 mam problemy oto blad:

  -o vmlinux
 net/network.o(.text+0xf4e5): In function `rtnetlink_rcv':
 : undefined reference to `rtnetlink_rcv_skb'
 make: *** [vmlinux] Error 1

 pogooglalem troche i problem jest chyba z gcc-3.3 poniewaz mam wersje
 unstable debianka
 no i czy ktos sobie z tym poradzil ?? jakies pomysly ?? helllp

 pisali ze mozna to ominac przy edycji network.c

 You've just hit the gcc thinks it's smarter than you are bug.
 
 net/core/rtnetlink.c:extern __inline__ int rtnetlink_rcv_skb(struct
 sk_buff
 *skb)
 
 gcc 3.3 decides to not believe you want this function inlined.
 probably
 the right fix for this is to make this function static inline (you can
 drop the `__' around inline, it's not necessary).  This is also the
 case
 for linux 2.5.
 

 ale to nie pomaga nadal blad  czy ktosmoze pomoc ???

 pozdrawiam
 bieniu

 --
 debian user


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]






ODP: gcc-3.3 i kernel 2.4. i 2.5.

2003-06-16 Wątek Stefan Starzynski
 problem jest z gcc-3.3 i kompilacja kerneli 2.4. i 2.5. w moim przypadku
 2.4.20
 nalezy zmienic 2 pliki (tam gdzie + to nalezy ustawic):
 czyli w pierwszym z __u8 short slot_tablelen; na __u8 slot_tablelen; w
 nastepnyh plikach ta sama zasada

 --- linux-2.4.20-orig/drivers/ide/ide-cd.h 2002-12-10 17:46:28 +0900
 +++ linux-2.4.20/drivers/ide/ide-cd.h 2003-05-16 00:59:53 +0900
 @@ -437,7 +437,7 @@

ciach
Huraa ! bieniu z nieba mi spadłeś  ;-)
Stefan



Re: gcc-3.3 i kernel 2.4. i 2.5.

2003-06-16 Wątek Michał Politowski
On Mon, 16 Jun 2003 16:36:07 +0200, Stefan Starzynski wrote:
  problem jest z gcc-3.3 i kompilacja kerneli 2.4. i 2.5. w moim przypadku
  2.4.20
  nalezy zmienic 2 pliki (tam gdzie + to nalezy ustawic):
  czyli w pierwszym z __u8 short slot_tablelen; na __u8 slot_tablelen; w
  nastepnyh plikach ta sama zasada
 
  --- linux-2.4.20-orig/drivers/ide/ide-cd.h 2002-12-10 17:46:28 +0900
  +++ linux-2.4.20/drivers/ide/ide-cd.h 2003-05-16 00:59:53 +0900
  @@ -437,7 +437,7 @@
 
 ciach
 Huraa ! bieniu z nieba mi spadłeś  ;-)

Z debian-devel:

On Sun,  8 Jun 2003 18:22:48 +1000, Herbert Xu wrote:
 Bernd Eckenfels [EMAIL PROTECTED] wrote:
  
  i have a 2.4.20-xfs running here with 3.3. Only minor syntactic problems (a
  few line continuations, a few __u8 short - __u8 and one remove of the 
  extern
  before __inline__ and the kernel works.
 
 Careful there, those __u8 short's should be converted to __u16, not __u8.
 
 In any case, kernel-source 2.4.20-8 should build with gcc 3.3.  The latest
 i386 kernel images in unstable are indeed built with 3.3

-- 
Michał Politowski -- [EMAIL PROTECTED]
Warning: this is a memetically modified message