🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #103

Gif bug and fix for AIX

#103
From: Martin Sean Bennett
Date: Wed, 22 Jul 1992 17:53
52 lines
1944 bytes
First things first:

	There apears to be a problem compiling the gif device driver. The PPM driver works so thats no big deal. Just curious about any and all patches.

	For the ibm AIX box I've fixed it so it compiles, this involves
modification to iinit.c and opdef.h.

	These are:

addition to iinit.c (start) : #define __IINIT

modification to opdef.h:

/*
 * There are actually two kinds of operators: the real ones (t_operator),
 * and ones defined by procedures (t_oparray).  The catalog for the former
 * is op_def_table, and their index is in the range [1..op_def_count).
 */
extern op_def_ptr *op_def_table

Becomes:

/*
 * There are actually two kinds of operators: the real ones (t_operator),
 * and ones defined by procedures (t_oparray).  The catalog for the former
 * is op_def_table, and their index is in the range [1..op_def_count).
 */
#ifndef __IINIT
extern op_def_ptr *op_def_table;
#endif

The code then compiles smoothly. As long as make.doc instructions are followed.

I've got GS 2.4.1 to compile on the following architectures:

	sun4		Sun Sparc 
	sg3		Sillicon Graphics
	dec3		Dec workstation
	r2400		Mips SYSV Release 3
	pow		IBM AIX

A few other drivers seemed to have problems - this may have just been my compiler(s).


I realise I'm probably trying to teach my grandmother to suck eggs..


Sean Bennett
Center for Computing Services
Imperial College
University of London
England, UK
Technical Details
Message-ID: <1992Jul22.175334.3442@cco.caltech.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mripc.cco.caltech.edu!msean

Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mripc.cco.caltech.edu!msean
From: msean@mripc.cco.caltech.edu (Martin Sean Bennett)
Subject: Gif bug and fix for AIX
Message-ID: <1992Jul22.175334.3442@cco.caltech.edu>
Keywords: 2.4.1 gif AIX IBM sg3
Sender: gnulists@ai.mit.edu
Organization: California Institute of Technology, Pasadena
Distribution: gnu
Date: Wed, 22 Jul 1992 17:53:34 GMT
Approved: bug-ghostscript@prep.ai.mit.edu
Lines: 53