On 15/05/09 09:50, CJ Keist wrote:
>
> Has anyone been successfully in installing Sunray Server 4.1 on CentOS 5.3 
> kernel version 2.6.29.1?  I am following the fixes to install on Linux at 
> the URL:
>
> http://wiki.sun-rays.org/index.php/SRSS-4.1-28_on_Linux-2.6.26
>
> I do get the same package failures listed there.  But when I do the first 
> make command I get the following error:
>
>
> [c...@linux1 srss_4.1]# make -C /usr/src/SUNWut/utadem
> make: Entering directory `/usr/src/SUNWut/utadem'
> make -C /lib/modules/2.6.29.1/build SUBDIRS=/usr/src/SUNWut/utadem modules
> make[1]: Entering directory `/usr/src/linux-2.6.29.1'
>   CC [M]  /usr/src/SUNWut/utadem/utadem.o
> /usr/src/SUNWut/utadem/utadem.c: In function ?daemon_ioctl?:
> /usr/src/SUNWut/utadem/utadem.c:1782: error: ?struct task_struct? has no 
> member named ?uid?
> make[2]: *** [/usr/src/SUNWut/utadem/utadem.o] Error 1
> make[1]: *** [_module_/usr/src/SUNWut/utadem] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.29.1'
> make: *** [default] Error 2
> make: Leaving directory `/usr/src/SUNWut/utadem'
>
> Any suggestions on how to fix this?
>
>

I just got the SRSS kernel moduels to compile on a 2.6.29 kernel by
first patching the modules with the patches from
http://wiki.sun-rays.org/index.php/SRSS-4.1-50_on_Linux-2.6.18_.._-2.6.28-rc6-git1
and then replacing all occurrences of current->uid with
current->cred->uid.

So the line in question (utadem.c:1782)
ret = do_newsession(conn, current->uid);

would need to be replaced with something like

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
                ret = do_newsession(conn, current->uid);
#else
                ret = do_newsession(conn, current->cred->uid);
#endif

Do the same for all other lines containing current->uid and the modules
will then compile fine.

Regards

Truls Asheim <[email protected]>
Systems Administrator
Department of Computer Science, University of Copenhagen
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to