Bug 690658 - error: `cups_array_t' undeclared
Summary: error: `cups_array_t' undeclared
Status: RESOLVED DUPLICATE of bug 690270
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 8.64
Hardware: PC Linux
: P4 normal
Assignee: Hin-Tak Leung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-27 11:15 UTC by Lee Howard
Modified: 2010-06-29 05:07 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Howard 2009-07-27 11:15:41 UTC
gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64
-DHAVE_FONTCONFIG -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations
-Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing
-Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H
-DGX_COLOR_INDEX_TYPE="unsigned long long"   -I./obj -I./base  `cups-config
--image --libs` -DBINDIR='"/usr/local/bin"' -DGS='"gs"' -o bin/pdftoraster
cups/pdftoraster.c
cups/pdftoraster.c:62: warning: no previous prototype for `parseOpts'
cups/pdftoraster.c: In function `parseOpts':
cups/pdftoraster.c:76: warning: implicit declaration of function
`cupsRasterInterpretPPD'
cups/pdftoraster.c: At top level:
cups/pdftoraster.c:80: warning: no previous prototype for `parsePDFTOPDFComment'
cups/pdftoraster.c: In function `main':
cups/pdftoraster.c:114: error: `cups_array_t' undeclared (first use in this
function)
cups/pdftoraster.c:114: error: (Each undeclared identifier is reported only once
cups/pdftoraster.c:114: error: for each function it appears in.)
cups/pdftoraster.c:114: error: `gs_args' undeclared (first use in this function)
cups/pdftoraster.c:115: warning: ISO C90 forbids mixed declarations and code
cups/pdftoraster.c:178: warning: implicit declaration of function `cupsArrayNew'
cups/pdftoraster.c:188: warning: implicit declaration of function `cupsArrayAdd'
cups/pdftoraster.c:422: warning: implicit declaration of function `cupsArrayCount'
cups/pdftoraster.c:424: warning: implicit declaration of function `cupsArrayFirst'
cups/pdftoraster.c:425: warning: implicit declaration of function `cupsArrayNext'
make: *** [bin/pdftoraster] Error 1
[root@gollum ghostscript-8.64]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
Comment 1 Hin-Tak Leung 2010-05-02 03:13:04 UTC
Grabbing a Ralph's bugs.
Comment 2 Hin-Tak Leung 2010-06-29 05:07:33 UTC
(In reply to comment #0)
> [root@gollum ghostscript-8.64]# gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --disable-libunwind-exceptions --with-system-zlib
> --enable-__cxa_atexit --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

That's a fairly old gcc and therefore likely a fairly old redhat system shipped with cups 1.1. The error message looks the same as bug 690270, which in turn is a duplicate of 690262, which were fixed.

*** This bug has been marked as a duplicate of bug 690270 ***