Subject: Re: possible cpufunc.h issues in rc2
To: None <jakllsch@kollasch.net>
From: Nick Hudson <nick.hudson@dsl.pipex.com>
List: port-hp700
Date: 10/18/2007 12:09:08
On Friday 12 October 2007 23:24:17 jakllsch@kollasch.net wrote:
> Hi,
>
> Building sane-backends from pkgsrc on rc2
>
> ...
> gmake[1]: Entering directory
> `/local/pkgsrc-work/graphics/sane-backends/work/sane-backends-1.0.18/backen
>d' 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.

get_psw/set_psw don't need to be in there - I'll remove them.

Thanks,
Nick