| Autor | Nachricht | 
  
    |  | 
        
					| Titel: Solved*Can't build any ati driver w/ kernel 2.6.17-kanotix-1  Verfasst am: 20.06.2006, 19:55 Uhr |  | 
  
    | 
        
          | 
  
 Anmeldung: 05. Jun 2006
 Beiträge: 19
 Wohnort: Muppet Theater
 
 |  | 
        
          | I am running Easter RC4.  I saw the new kernel, figured I would try it.  I used the kanotix-update-gui to install the kernel, which went great.  my network connection wasn't on auto, so the script couldn't do the ati driver right then.  I turned on my network connection, then updated the fglrx script, and ran it.  I got an error saying that it couldn't build the driver. 
 I searched the forums, and found a nother post where sombody said that the latest driver wasn't working, and Devil suggested editing the install script to use an older driver.  I tried the three previous versions of the ati driver, and they all failed to build.
 
 Next I tried my older 2.6.16-kanotix-1 kernel.  Booted it up, and the ran the fgrlx install script.  Everything built and installed just fine.
 
 Any one else notice this?
 |  
          | 
 Zuletzt bearbeitet von noahsark am 21.06.2006, 05:51 Uhr, insgesamt ein Mal bearbeitet
 |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel: RE: Can  Verfasst am: 20.06.2006, 21:39 Uhr |  | 
  
    | 
        
          | 
 
 Anmeldung: 20. Okt 2005
 Beiträge: 278
 
 
 |  | 
        
          | No problems for me. 
 -Crust
 |  
          |  |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel: RE: Can  Verfasst am: 20.06.2006, 22:09 Uhr |  | 
  
    | 
        
          | 
  
 Anmeldung: 05. Jun 2006
 Beiträge: 19
 Wohnort: Muppet Theater
 
 |  | 
        
          | Did you try the kernel I mentioned, or were you using a different one (I thought I saw you posted elsewhere that you were running 2.6.17-slh-up-1)?  hmmm, maybe it's just me since it worked for you.   I'll see about getting more details about why it's failing.  thanks for the reply  |  
          | _________________
 "Watch it!! ~I'm~ the beautiful assistant."
 |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel: RE: Can  Verfasst am: 20.06.2006, 22:16 Uhr |  | 
  
    | 
        
          | Team Member 
  
  
 Anmeldung: 03. Mai 2005
 Beiträge: 1544
 Wohnort: out there somewhere
 
 |  | 
        
          | No problem for me either I just used the gui to update my kernel and to see if any problems as I haven't used it in a while and I recommend it alot to others and wanted to make sure it still works :) 
 You can try this
 
 K-menu - > Control Center -> Kanotix -> Display -> Drivers -> Log on as Administrator -> ATI (fglrx)
 
 Put a check in front of both  ->  Remove Modlines -> Install or Reinstall
 
 and follow thru
 
 Host/Kernel/OS  "KanotixBox" running Linux 2.6.17-kanotix-1 i686 [ KANOTIX 2006 Easter  ]
 CPU Info        AMD Athlon XP 2400+ 256 KB cache flags( - ) clocked at [ 2000.448 MHz ]
 Videocard       ATI Radeon R350 [Radeon 9800 Pro]  X.Org 7.0.0  [ 1024x768 @85hz ]
 Network cards   VIA VT6102 [Rhine-II], at port: e400
 Processes 91 | Uptime 16min | Memory 578.535/756.379MB | HDD Maxtor 6Y160P0 Size 163GB (66%used) | GLX Renderer RADEON 9800 Pro Generic | GLX Version 2.0.5814 (8.25.18) | Client Shell | Infobash v2.50rc12
 |  
          | _________________
 h2's d-u script
 h2's rdiff-backup script
 |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel: RE: Can  Verfasst am: 20.06.2006, 22:31 Uhr |  | 
  
    | 
        
          | 
  
 Anmeldung: 05. Jun 2006
 Beiträge: 19
 Wohnort: Muppet Theater
 
 |  | 
        
          | The install script sure isn't working for me (install-fglrx-debian.sh).  I tried again and wrote down the errors when I viewed the log file of the failed build for fglrx-kernel-sources.  Errors are: 
 /usr/src/modules/fglrx/firegl_public.c : 228  Error: syntax error before string constant
 
 make[2]: /usr/src/modules/fglrx/firegl_public.o Error 1
 
 make[1]: _module_/usr/src/modules/fglrx/ Error 2
 
 make: build error 2
 
 And then the scrip exits after I leave the log viewer and choose to continue.  I'll give your suggestion a try.  Thanks.
 |  
          | _________________
 "Watch it!! ~I'm~ the beautiful assistant."
 |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel:  Verfasst am: 20.06.2006, 22:47 Uhr |  | 
  
    | 
        
          | 
  
 Anmeldung: 05. Jun 2006
 Beiträge: 19
 Wohnort: Muppet Theater
 
 |  | 
        
          | Ok, I tried it your way, Piper and still got the same message.  This time I am including the complete log file that the program said I should look at for more details as to why the build failed.  It all worked pefectly with the 2.6.16-kanotix-1 kernel.  Is it possible I need to reinstall the 2.6.17 kernel?  Now granted, I don't NEED the new kernel, but now I want to know what's wrong and how to fix it. 
 
 Code: 
dh_testroot
 rm -f configure-stamp
 rm -f fglrx.ko fglrx.mod.c *.o libfglrx_ip.a
 rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
 rm -rf .tmp_versions
 rm -rf patch
 dh_clean
 rm /usr/src/modules/fglrx/debian/control
 rm /usr/src/modules/fglrx/debian/dirs
 if [ -f /usr/src/modules/fglrx/debian/control.template ]; then \
 cat /usr/src/modules/fglrx/debian/control.template > /usr/src/modules/fglrx/debian/control; \
 fi
 if [ -f postinst ]; then \
 mv postinst fglrx-kernel-2.6.17-kanotix-1.postinst; \
 fi
 dh_testdir
 touch configure-stamp
 dh_testdir
 /usr/bin/make -C /usr/src/linux-headers-2.6.17-kanotix-1 SUBDIRS=/usr/src/modules/fglrx modules
 make[1]: Entering directory `/usr/src/linux-headers-2.6.17-kanotix-1'
 CC [M]  /usr/src/modules/fglrx/agp3.o
 CC [M]  /usr/src/modules/fglrx/nvidia-agp.o
 CC [M]  /usr/src/modules/fglrx/agpgart_be.o
 /usr/src/modules/fglrx/agpgart_be.c: In function '__fgl_agp_init':
 /usr/src/modules/fglrx/agpgart_be.c:8175: warning: 'pm_register' is deprecated (declared at include/linux/pm_legacy.h:16)
 /usr/src/modules/fglrx/agpgart_be.c: In function '__fgl_agp_cleanup':
 /usr/src/modules/fglrx/agpgart_be.c:8185: warning: 'pm_unregister_all' is deprecated (declared at include/linux/pm_legacy.h:21)
 /usr/src/modules/fglrx/agpgart_be.c: At top level:
 /usr/src/modules/fglrx/agpgart_be.c:6079: warning: 'ati_gart_base' defined but not used
 CC [M]  /usr/src/modules/fglrx/i7505-agp.o
 CC [M]  /usr/src/modules/fglrx/firegl_public.o
 In file included from /usr/src/modules/fglrx/firegl_public.c:162:
 /usr/src/modules/fglrx/firegl_public.h:268:5: warning: "FIREGL_VMA_INFO" is not defined
 /usr/src/modules/fglrx/firegl_public.c:228: error: syntax error before string constant
 /usr/src/modules/fglrx/firegl_public.c:228: warning: type defaults to 'int' in declaration of 'MODULE_PARM'
 /usr/src/modules/fglrx/firegl_public.c:228: warning: function declaration isn't a prototype
 /usr/src/modules/fglrx/firegl_public.c:228: warning: data definition has no type or storage class
 In file included from /usr/src/modules/fglrx/drm_proc.h:41,
 from /usr/src/modules/fglrx/firegl_public.c:333:
 /usr/src/modules/fglrx/drmP.h:561:5: warning: "__HAVE_VBL_IRQ" is not defined
 /usr/src/modules/fglrx/drmP.h:664:5: warning: "__HAVE_VBL_IRQ" is not defined
 /usr/src/modules/fglrx/drmP.h:936:5: warning: "__HAVE_SG" is not defined
 /usr/src/modules/fglrx/firegl_public.c:409:5: warning: "FIREGL_VMA_INFO" is not defined
 /usr/src/modules/fglrx/firegl_public.c:428:5: warning: "FIREGL_VMA_INFO" is not defined
 /usr/src/modules/fglrx/firegl_public.c: In function 'firegl_stub_open':
 /usr/src/modules/fglrx/firegl_public.c:534: warning: assignment discards qualifiers from pointer target type
 /usr/src/modules/fglrx/firegl_public.c: In function 'firegl_stub_register':
 /usr/src/modules/fglrx/firegl_public.c:605: warning: assignment from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c: At top level:
 /usr/src/modules/fglrx/firegl_public.c:3630: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3631: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3632: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3633: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3634: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3635: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3636: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3637: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3639: warning: initialization from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c:3649: warning: function declaration isn't a prototype
 /usr/src/modules/fglrx/firegl_public.c: In function 'test_inter_module_interface':
 /usr/src/modules/fglrx/firegl_public.c:3654: warning: assignment from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c: In function '__ke_agp_allocate_memory_phys_list':
 /usr/src/modules/fglrx/firegl_public.c:3979: warning: passing argument 3 of 'im_fglrx_agp_stub->allocate_memory_phys_list' makes integer from pointer without a cast
 /usr/src/modules/fglrx/firegl_public.c: In function '__ke_agp_bind_memory':
 /usr/src/modules/fglrx/firegl_public.c:4018: warning: passing argument 1 of 'im_fglrx_agp_stub->bind_memory' from incompatible pointer type
 /usr/src/modules/fglrx/firegl_public.c: In function '__ke_agp_unbind_memory':
 /usr/src/modules/fglrx/firegl_public.c:4031: warning: passing argument 1 of 'im_fglrx_agp_stub->unbind_memory' from incompatible pointer type
 make[2]: *** [/usr/src/modules/fglrx/firegl_public.o] Error 1
 make[1]: *** [_module_/usr/src/modules/fglrx] Error 2
 make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-kanotix-1'
 make: *** [build] Error 2
 
 |  
          |  |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel:  Verfasst am: 20.06.2006, 23:00 Uhr |  | 
  
    | 
        
          | 
 
 Anmeldung: 17. Dez 2003
 Beiträge: 16809
 
 
 |  | 
        
          | apt-get update apt-get install gcc-4.1
 update-scripts-kanotix.sh
 
 then try again.
 |  
          |  |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel:  Verfasst am: 20.06.2006, 23:07 Uhr |  | 
  
    | 
        
          | 
 
 Anmeldung: 09. Jan 2006
 Beiträge: 1720
 
 
 |  | 
        
          | This lines 
 In file included from /usr/src/modules/fglrx/firegl_public.c:162:
 /usr/src/modules/fglrx/firegl_public.h:268:5: warning: "FIREGL_VMA_INFO" is not defined ## Type not declared
 
 causes this
 
 /usr/src/modules/fglrx/firegl_public.c:228: error: syntax error before string constant
 
 look at line 228 and beforeof in file /usr/src/modules/fglrx/firegl_public.c, what type of string int const or other type should served by /usr/src/modules/fglrx/firegl_public.h.
 
 either one of thes 2 files contains the bug.
 
 gcc4.xx is more strickt than gcc 3.xx in type-handling
 |  
          |  |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel:  Verfasst am: 21.06.2006, 00:50 Uhr |  | 
  
    | 
        
          | 
 
 Anmeldung: 20. Okt 2005
 Beiträge: 278
 
 
 |  | 
        
          | noahsark, 
 I am using the up kernel.  I don't know if that could be the difference.
 
 -Crust
 |  
          |  |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
    |  | 
        
					| Titel:  Verfasst am: 21.06.2006, 06:11 Uhr |  | 
  
    | 
        
          | 
  
 Anmeldung: 05. Jun 2006
 Beiträge: 19
 Wohnort: Muppet Theater
 
 |  | 
        
          | My strange tale comes to an end.  I tried to add gcc 4.1 as Kano instructed, but it was already up to date.  Scripts were up to date.  Running install-fglrx-debian produced same error code as posted above.  I tried using all 4 driver versions in the script. 
 Next, I 'updated' my installation using easter RC4 disc, thinking that would get me back to scratch in terms of kernel and packages.  It seemed to do just that.  REALLY nice feature Kano!  Now, I built and installed versions 8.24.8 and 8.25.18 w/ 2.6.16-kanotix-1 kernel using the install script.  All well.  Then I upgraded the kernel to 2.6.17-kanotix-1 using kanotix-gui.  That went fine and ati driver version 8.25.18 seemed to install w/out problems.  However, when I got to X, glxinfo showed that ther was no dri and mesa was being used instead.
  So, I tried to the 8.24.8 driver.  It failed to build, yielding the same errors posted above.  At this point, it looked as if the problem might be the kernel, since things worked OK w/ 2.6.16. 
 However, schnorrer thought the problem was related to GCC, and Kano had suggested the upgrade to gcc 4.1.  Even though that didn't help last time, I decided to try again in interest of completeness.  So, I booted up on the 2.6.17-kanotix-1 kernel and installed gcc 4.1.  Attempting to install the 8.24.8 ati driver failed again with the same build errors as before.  So, I tried the 8.25.18 driver, and much to my surprise, it worked AND dri is functioning in X.
 
 At this point I decided to stop while I was ahead. Thanks all for your help.
 |  
          | _________________
 "Watch it!! ~I'm~ the beautiful assistant."
 |  
         
	        |  |  | 
  
    |  | 
  
    |  | 
  
  
    |  |