SUMMARY: Ximian Gnome on Solaris 9

From: Santos, Ramiro (Ramiro.Santos@commerzbankib.com)
Date: Wed Jun 12 2002 - 04:54:30 EDT


Hi, many thanks to:
David Leach, Doug Otto, Jonathan Jackson, Brett Lanham.

Here is the solution for this problem (I suppose):

> if you're in a bind, and can't wait, you could intercept the library call
> it's making using LD_PRELOAD. ie, if it's calling uname(2) then create a
> shared object with uname(2) and by preloading it you can fool the
installer
> into thinking you're running 5.8.
>
> if it's doing it another way, (ie, looking at sysinfo(2) or something
else)
> you'll basically just need to adapt what i've done below for that call.
>
> I guarantee nothing except that this might screw things up. no
warranties,
> no nothing. if it works, good. if not, too bad. okay?
>
> regards,
>
> david.
>
> A quick and dirty of what I've just said is as follows:
>
> Compile with:
> gcc -o fakeuname.o -c -fPIC -Wall fakeuname.c
> gcc -o libfakeuname.so -shared -W1,export-dynamic fakeuname.o -ldl
>
> fakeuname.c:
> #include <sys/types.h>
> #include <dlfcn.h>
> #include <unistd.h>
> #include <sys/utsname.h>
>
> #if defined(RTLD_NEXT)
> #define REAL_LIBC RTLD_NEXT
> #else
> #define REAL_LIBC ((void *) -1L)
> #endif
>
> static void *(*real_uname)() = 0;
>
> int uname(struct utsname *name)
> {
> if (0 == real_uname )
> real_uname = (void *(*)())dlsym(REAL_LIBC, "uname");
>
> if (0 == real_uname )
> exit (1);
>
> real_uname (name);
> name->release[0] = '5';
> name->release[1] = '.';
> name->release[2] = '7';
> name->release[3] = '\0';
>
> return 0;
> }

This reply was sent by David Leach

> I got around this in a previous version of Ximian (written for Solaris 7
> just as 8 came out). If you look at the installation script it uses a
> couple of switches on 'uname' to get its information. I temporarily
> moved /usr/bin/uname and replaced it with a shell script that handled
> the arguments used by ximian and returned bogus data. It installed and
> was fine after that. I looked for my fake uname script but I don't seem
> to have it anymore. There really isn't much more too it than a 'case'
> section and a couple of echo commands.

This reply was sent by Doug Otto

> You can try to fool uname...I have heard of that working. I installed
> ximian on 8 then upgraded to 9...that worked.

This one was sent by Jonathan Jackson

> You do not have to have the whole Ximian gnome distribution to get
evolution.
> Have you tried installing just the packages neccessary to get evolution
working?
> I've got evolution working fine on my home PC (redhat 7.2) and I never
installed Ximian.
> I did use RPM however. You should be able to find source tarballs for all
the needed
> software. It will probably be more work figuring out the deps but it
should be able
> to be done. Good luck.

and this one by Brett Lanham

Yours sincerely,

Ramiro Santos

ZIT P 7.21 Unix Server Implementation

_______________________________________________________

Contact: Phone: +49-(0)-69-136-43523
           Fax: +49-(0)-69-136-47040
           E-Mail: Ramiro.Santos@CommerzbankIB.com

Address: Commerzbank AG
           Zentraler Servicebereich IT Production
           C/S Services Investment Banking - ZIT P 7.41
           Mainzer Landstr. 151 - DLZ 1, 06.52.0560
           D-60321 Frankfurt / Main
_______________________________________________________
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:27 EDT