Subject: Re: pkg/15986: print/ghostscript[-nox11] (6.01) won't build
To: None <tron@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 03/22/2002 16:32:00
[ On , March 22, 2002 at 19:18:30 (-0000), tron@netbsd.org wrote: ]
> Subject: Re: pkg/15986
>
> Synopsis: print/ghostscript[-nox11] (6.01) won't build
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: tron
> State-Changed-When: Fri Mar 22 11:17:42 PST 2002
> State-Changed-Why: 
> 
> Both packages can be build without any problems. Please update the outdated
> NetBSD-current on your system and try again.

Would you please try to explain what you think the actual problem is
instead of just dismissing out of hand?

Even if my system is outdated to some extent (and it's less than one
year old), there's no excuse why ghostscript alone, out of hundreds of
other packages, should have to be unsupported on it.

I really cannot believe it has anything to do with the particular
release of NetBSD I'm using either.  Nothing in NetBSD should ever
define VERSION or RELEASE_DATE, so I can't see any newer release
suddenly making definitions or declaration for those identifiers
available, and certainly no older release will do so either.

Indeed from what I can tell so far these two identifiers should be
defined by gimp-print, not by gs, and thus the fact they are missing is
something in the way pkgsrc is integrating gimp-print into gs, and that
(at least on first glance) would appear to be an issue with pkgsrc.

If there's some very serious bug in the base OS that could cause this
but which existed only for some very short time during which my NetBSD
release was cut then I'd sure as heck like to know what it is so that I
can fix it in a more timely fashion than I can upgrade the entire
system.

Unfortunately a build attempt on 1.3.3 doesn't seem to get that far, but
at least in this case it's a little easier to blame the platform than
the package, and maybe not even to blame pkgsrc:

c++ -DPACKAGE=\"hpijs\" -DVERSION=\"1.0.2\" -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DVERSION=\"1.0.2\" -DHAVE_STRTOD=1 -DHAVE_STRTOL=1  -I. -I.    -I/var/package-obj/print/ghostscript/work/.buildlink/include  -I/usr/share/x11-links/include  -O2 -Wall -DAPDK_LITTLE_ENDIAN -DAPDK_DJ660 -DAPDK_DJ6xx -DAPDK_DJ6xxPhoto -DAPDK_DJ8xx -DAPDK_DJ9xx -DAPDK_DJ9xxVIP -DAPDK_DJ630 -DAPDK_APOLLO2XXX -DAPDK_APOLLO21XX -DAPDK_APOLLO2560 -DAPDK_DJ600 -DAPDK_DJ350 -DAPDK_DJ8x5 -DAPDK_PSP100 -DAPDK_AUTODUPLEX -c hpijs.cpp
In file included from global_types.h:45,
                 from hpprintapi.h:37,
                 from header.h:46,
                 from hpijs.cpp:40:
models.h:38: warning: namespaces are mostly broken in this version of g++
systemservices.h: In method `unsigned char * SystemServices::AllocMem(int, int)':
In file included from hpprintapi.h:40,
                 from header.h:46,
                 from hpijs.cpp:40:
systemservices.h:163: warning: unused parameter `int trackmemory'
systemservices.h: In method `void SystemServices::FreeMem(unsigned char *, int)':
systemservices.h:166: warning: unused parameter `int trackmemory'
printer.h: In method `enum DRIVER_ERROR Printer::PagesPrinted(unsigned int &)':
In file included from header.h:48,
                 from hpijs.cpp:40:
printer.h:221: warning: unused parameter `unsigned int & count'
printer.h: In method `int Printer::UseGUIMode(class PrintMode *)':
printer.h:231: warning: unused parameter `class PrintMode * pPrintMode'
printer.h: In method `int Printer::UseCMYK(unsigned int)':
printer.h:232: warning: unused parameter `unsigned int iPrintMode'
printer.h: In method `enum DRIVER_ERROR Printer::ParsePenInfo(enum PEN_TYPE &, int = 1)':
printer.h:239: warning: unused parameter `int QueryPrinter'
services.h: At top level:
In file included from hpijs.cpp:43:
services.h:46: syntax error before `{'
services.h:49: destructors must be member functions
services.h:49: virtual outside class declaration
services.h:51: syntax error before `('
gmake: *** [hpijs.o] Error 1
*** Error code 2

Stop.
*** Error code 1

Stop.


-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>