From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3c45b63c13e9b5e0 X-Google-Attributes: gid111c93,public From: Stuart Midgley Subject: Re: DU BINARIES (Mathematica) on Linux alpha ? Date: 1999/10/25 Message-ID: <3813AD52.26A7AC3E@physics.uwa.edu.au> X-Deja-AN: 540139103 References: <7upvp0$aso$1@nserve1.acs.ucalgary.ca> To: Serguei Patchkovskii , Andrei Malyshev X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------1670B62BD27373A3173467DD" Organization: Department of Physics, UWA Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha This is a multi-part message in MIME format. --------------1670B62BD27373A3173467DD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have been trying to get Mathematica up and running on my 164UX RH6.0 machine for abour 3 months now. I can actually get the front end to load up, but when it tries to communicate with the Math Kernel, it hangs... Anyway, by looking around and speaking to a few people (who have NOT gotten it to work correctly) there might be a few patches to the KERNEL you can apply. I will include a copy of an email with James. Unfortunately I have not been able to get it to work correctly... This bug with siocgifconf etc seem to be around with several DU binaries and it would be good to get a real C/Kernel developer to attempt to sort it out. Stu. Serguei Patchkovskii wrote: > > Andrei Malyshev (andrei@merkul.ioffe.rssi.ru) wrote: > : The kernel (math) seems to run quite happily under Linux with DU ver 4.x > : libs/loader but the FrontEnd dumps core while trying to initialize default > : notebook (or template). > > Given that the Mathematica Unix frontend regularly dumps core for no > apparent reason even on systems it is officially supported for, it is > no big surprise you get core on a system it isn't. After trying to > get *any* kind of mileage out of the frontend on Suns, I simply switched > to doing everything I had to at the kernel command like prompt ... > > Not exactly helpful, I know ... > > Cheers, > > /Serge.P > > -- > home page: http://www.cobalt.chem.ucalgary.ca/ps/ -- <---------------------------------------------------------------------> Stuart Midgley | stuart@physics.uwa.edu.au Department of Physics | +61 8 9380 7898 Work University of Western Australia | +61 8 9380 1014 Fax Nedlands WA 6907 | 0413 565920 Mob --------------1670B62BD27373A3173467DD Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from wotho.pd.uwa.edu.au (root@wotho.pd.uwa.edu.au [130.95.156.81]) by canoepolo.pd.uwa.edu.au (8.9.0/8.9.0) with ESMTP id VAA26545 for ; Wed, 15 Sep 1999 21:06:27 +0800 (WST) Received: from DENALI.ntsi.com (newtechsolutions.com [199.103.215.130]) by wotho.pd.uwa.edu.au (8.9.1/8.9.1/Debian/GNU) with ESMTP id VAA26420 for ; Wed, 15 Sep 1999 21:06:18 +0800 Received: by DENALI with Internet Mail Service (5.0.1457.3) id ; Wed, 15 Sep 1999 09:02:38 -0400 Message-ID: <5571C2894B7AD111B6530060977896646A89FA@DENALI> From: James Peret To: Stuart Midgley Subject: RE: Bug??? Date: Wed, 15 Sep 1999 09:02:35 -0400 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1457.3) Content-Type: text/plain X-Mozilla-Status2: 00000000 try inserting the following into the top of dev.c (this source was given to me by "m.") as for submitting a kernel fix, i never thought i would ever be able to contribute anything. I'm not even a programmer. do you think this is worth a mention to linus? ______________________________________ struct osf_ifdevea { char ifr_nam[16]; char default_pa[6]; char current_pa[6]; }; int osf_siocrphysaddr(void *addr) { struct osf_ifdevea devea; struct device *dev; if(copy_from_user(&devea, addr, sizeof(devea))) return -EFAULT; if(!(dev = dev_get(devea.ifr_nam))) return -ENODEV; memcpy(&devea.default_pa, &device->dev_addr, 6); memcpy(&devea.current_pa, &device->dev_addr, 6); if(copy_to_user(addr, &devea, sizeof(devea))) return -EFAULT; return 0; } ______________________________________ -----Original Message----- From: Stuart Midgley [mailto:stuart@physics.uwa.edu.au] Sent: Tuesday, September 14, 1999 11:40 PM To: James Peret Subject: Re: Bug??? James OK, I modified dev.c but when I tried to compile it I got an error saying that SIOCRPHYSADDR was not declared. Anyway, I just removed that line and it compiled. I will let you know how I go. Have you submitted the big/fix to Linus and the Kernel team? Stu. James Peret wrote: > > Stu, > > looks like one of the errors i got when i tried to run pro-engineer. > Below is a submission to the list earlyer in the week. It looks like > you might gain a little. > > __________________________________________ > > I tried to get the Dec Unix version of Pro-Engineer running on a pc164, > Red Hat 5.2, kernel 2.2.7, Pro-Engineer version 20, build 9852. > > It was a very dificult task. Machine type is referenced through a > "uname -a" in many places, and i had to change several scripts that > called the machine type. > > Also, there are a couple ioctrl calls that were allocated inside dec > unix that are missing from linux. they are: > > SIOCRPHYSADDR > SIOCGIFFLAGS > SIOCGIFCONF > > to fix these, add the following lines to net/core/dev.c:dev_ioctl() and > recompile your kernel. > > if(cmd == 0xc0106914) > cmd = SIOCGIFCONF; > if(cmd == 0xc0206911) > cmd = SIOCGIFFLAGS; > if(cmd == 0xc01c693e) > cmd = SIOCRPHYSADDR; > > and this is where the fun ended. I then ran into licensing issues, > specifically the error: > > ERROR: could not connect to NameServer. > > and could not continue. > I was helped tremendously on this project by a person identified only by > "m.", from perth. Even though i was unsuccessful, i am still greatful > for his help. > > -red > > -- <---------------------------------------------------------------------> Stuart Midgley | stuart@physics.uwa.edu.au Department of Physics | 08 9380 7898 Wk University of Western Australia | 08 9380 1014 Fax --------------1670B62BD27373A3173467DD--