[sane-devel] compilation problems under HP-UX

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 24 May 2004 21:24:43 +0200


Hi,

On Sat, May 22, 2004 at 12:35:17AM +0000, Ulrich Deiters wrote:
> The main problem is solved: The loader error occurs at optimization
> level +O3 only (which includes function inlining). Level +O2
> (equivalent to -O) is safe.

Our configure script/Makefiles don't set any optimisation at all as
far as I can see. Is that done by autoconf or libtool?

> - backend/snapscan.c, line 86: The HP compiler does not know
>   what an __attribute__ might be.

That should have a #ifdef __GNUC__ or some more intelligent test.

> - backend/hp5400_internal.c, line 469ff: Some complaint about
>   incompatible pointer types.

I'm getting lot's of warings for that backend anyway.

hp5400_internal.c: In function SetCalibration':
hp5400_internal.c:234: warning: implicit declaration of function bzero'
hp5400_internal.c:264: warning: overflow in implicit constant conversion
hp5400_internal.c: In function CircBufferGetLine':
hp5400_internal.c:435: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:453: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:453: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:454: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:454: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:455: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:455: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:469: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:469: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:470: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:470: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:471: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:471: warning: pointer of type void *' used in arithmetic
hp5400_internal.c:499: warning: pointer of type void *' used in arithmetic

And some more in the other files.

That's already mentioned in our BTS:
https://alioth.debian.org/tracker/index.php?func=detail&aid=300406&group_id=1308&atid=410366

Bye,
  Henning