Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: diane@drao.nrc.ca (Diane Parchomchuk) Newsgroups: comp.windows.x Subject: PROBLEM WITH X TOOLKIT EXAMPLE Message-ID: <187*diane@drao.nrc.ca> Date: 14 Feb 91 02:16:00 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 29 I am working my way through the Douglas Young book, 'The X Window System...' OSF/Motif edition. PROBLEM: Chapter 10 examples fractal.c and fractal2.c. Both compiled, no problem but on trying to run them I got a FIXEDUP UNALIGNED DATA ACCESS FOR pid 17269(fractal2) at pc0x404684 Our system person told me that this error was due to RISC architecture, we are running ULTRIX, 4.0, on a DecStation 3100. Consulting with the Dec people, they maintain it is due to sloppy programming habits brought on by exposure to non-picky compilers. Where is it written in standard C that parameters HAVE to be passed in order of size? Also in all of X TOOLKIT you are working with predefined structures that are beyond your control. Are they all aligned so they will run on RISC machines? I tried to rearrange the order of variables in the structure image_data to put the type complex and float first. Didn't help. Any comments or fixes? Sorry if this is a bonehead gripe but I am running into too many brick walls! Diane Parchomchuk diane@drao.nrc.ca ps. The Makefile tries to make Chapter 8 programs, there aren't any in the tar file I got from expo - did I goof or did someone forget about poor ol' ch8.