Article View: gnu.ghostscript.bug
Article #592gs252 --> AIX 3.2 bugs
From: Daniel S. Lewart
Date: Sun, 10 Jan 1993 19:03
Date: Sun, 10 Jan 1993 19:03
58 lines
2854 bytes
2854 bytes
L. Peter Deutsch,
I have installed Ghostscript 2.5.2 (9/20/92) on our IBM RS/6000 running
AIX 3.2 with MIT X11R5 and IBM cc/c89/xlc 1.02. There are two small bugs.
1) The identifier op_def_table is declared in both "opdef.h:74" and
"iinit.c:59". `c89' gives a severe error, but `cc' compiles. See below.
2) AIX has a well-known bug where the function DisplayWidthMM() gives
absurd values for some Xstations with hardware panning. Thus, I set
the following resource:
Ghostscript*xResolution: 91
However, this was ignored unless I also had:
Ghostscript*yResolution: 91
This is because of the logic in gdevxini.c function gdev_x_open.
I think it only uses the resources if both are defined. See below.
Perhaps it should have this kind of structure:
if ( x_res_str )
x_res = atof(x_res_str);
else
{ ...
}
if ( y_res_str )
y_res = atof(y_res_str);
else
{ ...
}
Thank you,
Daniel Lewart
d-lewart@uiuc.edu
-------------------------------------------------------------------------------
$ c89 -D_POSIX_SOURCE -c iinit.c
"iinit.c", line 59.13: 1506-030 (S) Identifier op_def_table cannot be redeclared
$ cc -D_POSIX_SOURCE -c iinit.c
-------------------------------------------------------------------------------
356 float x_res, y_res;
357 if ( x_res_str != NULL && y_res_str != NULL )
358 { x_res = atof(x_res_str);
359 y_res = atof(y_res_str);
360 }
361 else
362 { int screen_width = WidthOfScreen(xdev->scr);
363 int screen_height = HeightOfScreen(xdev->scr);
364 x_res = 25.4 * screen_width / WidthMMOfScreen(xdev->scr);
365 y_res = 25.4 * screen_height / HeightMMOfScreen(xdev->scr);
366 if ( x_res * DEFAULT_WIDTH_INCHES > screen_width ||
367 y_res * DEFAULT_HEIGHT_INCHES > screen_height
368 )
369 { /* Force a full page to fit on the screen */
370 /* by adjusting the server's claimed resolution. */
371 x_res = (screen_width - 32) / (float)DEFAULT_WIDTH_INCHES;
372 y_res = (screen_height - 32) / (float)DEFAULT_HEIGHT_INCHES;
373 x_res = y_res = min(x_res, y_res);
374 }
375 }
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<9301110703.AA26622@rsm1.physics.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!uiuc.edu!d-lewartShow Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!uiuc.edu!d-lewart From: d-lewart@uiuc.edu (Daniel S. Lewart) Subject: gs252 --> AIX 3.2 bugs Message-ID: <9301110703.AA26622@rsm1.physics.uiuc.edu> Sender: gnulists@ai.mit.edu Reply-To: d-lewart@uiuc.edu (Daniel S. Lewart) Organization: UTexas Mail-to-News Gateway Distribution: gnu Date: Sun, 10 Jan 1993 19:03:05 GMT Approved: bug-ghostscript@prep.ai.mit.edu Lines: 59