Subject: pkg/17545: a2ps package fails to build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jaco@teaser.fr>
List: netbsd-bugs
Date: 07/10/2002 16:32:55
>Number:         17545
>Category:       pkg
>Synopsis:       a2ps fails to build from pkg source tree
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 10 07:34:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Eric Jacoboni
>Release:        NetBSD 1.6D
>Organization:
Rogntutdju & Associates	
>Environment:
System: NetBSD titine.scrogneugneu.org 1.6D NetBSD 1.6D (TITINE-$Revision: 1.500 $) #58: Wed Jul 10 11:07:25 CEST 2002 root@titine.scrogneugneu.org:/usr/src.cvsup/sys/arch/i386/compile/TITINE i386
Architecture: i386
Machine: i386
>Description:
a2ps fails to build from pkgsrc. The build complains about problems with 
encoding.c :

Making all in intl
gmake[2]: Entering directory `/usr/pkgsrc/print/a2ps/work.i386/a2ps-4.13/intl'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/pkgsrc/print/a2ps/work.i386/a2ps-4.13/intl'
Making all in lib
gmake[2]: Entering directory `/usr/pkgsrc/print/a2ps/work.i386/a2ps-4.13/lib'
source='encoding.c' object='encoding.lo' libtool=yes \
depfile='.deps/encoding.Plo' tmpdepfile='.deps/encoding.TPlo' \
depmode=gcc /bin/sh ../auxdir/depcomp \
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I.. -I../intl -I.    -O2  -c -o encoding.lo encoding.c
mkdir .libs
cc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I.. -I../intl -I. -O2 -c encoding.c -Wp,-MD,.deps/encoding.TPlo  -fPIC -DPIC -o .libs/encoding.o
In file included from jobs.h:38,
                 from encoding.c:30:
media.h:68: parse error before `a2ps_medium_libpaper_p'
media.h:69: warning: data definition has no type or storage class
In file included from jobs.h:44,
                 from encoding.c:30:
printers.h:89: parse error before `a2ps_printers_add'
printers.h:91: warning: data definition has no type or storage class
printers.h:103: parse error before `_Bool'
printers.h:106: parse error before `a2ps_printers_flag_output_is_printer_get'
printers.h:107: warning: data definition has no type or storage class
In file included from encoding.c:30:
jobs.h:97: parse error before `_Bool'
jobs.h:97: warning: no semicolon at end of struct or union
jobs.h:105: parse error before `debug'
jobs.h:105: warning: data definition has no type or storage class
jobs.h:156: parse error before `}'
jobs.h:156: warning: data definition has no type or storage class
encoding.c: In function `load_encodings_map':
encoding.c:165: dereferencing pointer to incomplete type
encoding.c: In function `load_main_encodings_map':
encoding.c:177: dereferencing pointer to incomplete type
encoding.c:182: dereferencing pointer to incomplete type
encoding.c: At top level:
encoding.c:534: parse error before `*'
encoding.c: In function `load_encoding_description_file':
encoding.c:556: `job' undeclared (first use in this function)
encoding.c:556: (Each undeclared identifier is reported only once
encoding.c:556: for each function it appears in.)
encoding.c: In function `encoding_output_ps_vector':
encoding.c:675: dereferencing pointer to incomplete type
encoding.c:677: dereferencing pointer to incomplete type
encoding.c:682: dereferencing pointer to incomplete type
encoding.c:683: dereferencing pointer to incomplete type
encoding.c:685: dereferencing pointer to incomplete type
encoding.c:686: dereferencing pointer to incomplete type
encoding.c: In function `encoding_setup':
encoding.c:870: dereferencing pointer to incomplete type
encoding.c:877: warning: unreachable code at beginning of switch statement
encoding.c: In function `encoding_add':
encoding.c:904: dereferencing pointer to incomplete type
encoding.c: At top level:
encoding.c:923: parse error before `*'
encoding.c: In function `encoding_build_faces_wx':
encoding.c:924: number of arguments doesn't match prototype
encoding.h:78: prototype declaration
encoding.c:933: `job' undeclared (first use in this function)
encoding.c: In function `encoding_get':
encoding.c:955: dereferencing pointer to incomplete type
encoding.c:960: dereferencing pointer to incomplete type
encoding.c: In function `get_encoding_by_alias':
encoding.c:973: dereferencing pointer to incomplete type
encoding.c: In function `dump_encodings_setup':
encoding.c:994: dereferencing pointer to incomplete type
encoding.c: At top level:
encoding.c:1010: parse error before `*'
encoding.c: In function `char_WX':
encoding.c:1011: number of arguments doesn't match prototype
encoding.h:44: prototype declaration
encoding.c:1013: `job' undeclared (first use in this function)
encoding.c:1013: `c' undeclared (first use in this function)
encoding.c:1024: warning: unreachable code at beginning of switch statement
encoding.c: At top level:
encoding.c:1081: parse error before `*'
encoding.c: In function `string_WX':
encoding.c:1082: number of arguments doesn't match prototype
encoding.h:45: prototype declaration
encoding.c:1085: `string' undeclared (first use in this function)
encoding.c:1086: `job' undeclared (first use in this function)
encoding.c: In function `set_encoding':
encoding.c:1097: dereferencing pointer to incomplete type
encoding.c: At top level:
encoding.c:1113: parse error before `*'
encoding.c: In function `list_encodings_short':
encoding.c:1114: number of arguments doesn't match prototype
encoding.h:88: prototype declaration
encoding.c:1115: `stream' undeclared (first use in this function)
encoding.c:1117: `job' undeclared (first use in this function)
encoding.c: At top level:
encoding.c:1124: parse error before `*'
encoding.c: In function `list_encodings_long':
encoding.c:1125: number of arguments doesn't match prototype
encoding.h:89: prototype declaration
encoding.c:1130: `job' undeclared (first use in this function)
encoding.c:1136: `stream' undeclared (first use in this function)
encoding.c: At top level:
encoding.c:1170: parse error before `*'
encoding.c: In function `list_texinfo_encodings_long':
encoding.c:1171: number of arguments doesn't match prototype
encoding.h:91: prototype declaration
encoding.c:1176: `job' undeclared (first use in this function)
encoding.c:1182: `stream' undeclared (first use in this function)
gmake[2]: *** [encoding.lo] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/print/a2ps/work.i386/a2ps-4.13/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/print/a2ps/work.i386/a2ps-4.13'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

This problem arose after a 'make update' of papersize package. Now, all my 
postcript printing is broken (apsfilter doesn't work anymore...).

The pkgsrc tree is updated on a daily basis, with my src tree.

On my box, /usr/local is a symlink to /usr/pkg
>How-To-Repeat:
On my box, just do 'make' in /usr/pkgsrc/print/a2ps

>Fix:
Sorry, no idea...
>Release-Note:
>Audit-Trail:
>Unformatted: