Subject: possible cpufunc.h issues in rc2
To: None <port-hp700@NetBSD.org>
From: None <jakllsch@kollasch.net>
List: port-hp700
Date: 10/12/2007 17:24:17
--PmA2V3Z32TCmWXqI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

Building sane-backends from pkgsrc on rc2

...
gmake[1]: Entering directory `/local/pkgsrc-work/graphics/sane-backends/work/sane-backends-1.0.18/backend'
 cc -c -O2 -pipe -I/local/pkgsrc-work/graphics/sane-backends/work/.buildlink/include -W -Wall -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/usr/pkg/share/examples/sane -DPATH_SANE_DATA_DIR=/usr/pkg/share -DPATH_SANE_LOCK_DIR=/usr/pkg/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=umax_pp_low -DLIBDIR=/usr/pkg/lib/sane umax_pp_low.c  -fPIC -DPIC -o .libs/umax_pp_low.o
In file included from /usr/include/machine/cpufunc.h:3,
                 from umax_pp_low.c:77:
/usr/include/hppa/cpufunc.h: In function 'get_psw':
/usr/include/hppa/cpufunc.h:107: error: 'HPPA_BREAK_KERNEL' undeclared (first use in this function)
/usr/include/hppa/cpufunc.h:107: error: (Each undeclared identifier is reported only once
/usr/include/hppa/cpufunc.h:107: error: for each function it appears in.)
/usr/include/hppa/cpufunc.h:107: error: 'HPPA_BREAK_GET_PSW' undeclared (first use in this function)
/usr/include/hppa/cpufunc.h: In function 'set_psw':
/usr/include/hppa/cpufunc.h:117: error: 'HPPA_BREAK_KERNEL' undeclared (first use in this function)
/usr/include/hppa/cpufunc.h:117: error: 'HPPA_BREAK_SET_PSW' undeclared (first use in this function)
umax_pp_low.c: In function 'sanei_umax_pp_initPort':
umax_pp_low.c:956: warning: unused variable 'rc'
...

So, yeah, might be a problem.

Not that I'm expecting to use a parallel-port scanner, but, you know.

A quick comment out of that #include allows sane to compile.

	Jonathan Kollasch

--PmA2V3Z32TCmWXqI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHD/QROjx1ye3hmokRAqsPAJ90tPds6Knatd0hsilJz/vA2RxROgCeN/hE
SEZF6C9hsiyE+8BFSMgxKDY=
=96SX
-----END PGP SIGNATURE-----

--PmA2V3Z32TCmWXqI--