Package: swt-motif
Version: 3.0-5
Severity: serious
Tags: patch

swt-motif fails to build because it can't include
<X11/extensions/Xinerama.h>:

> cc -O -s -DSWT_VERSION=3062 -DLINUX -DMOTIF  -fpic -I./ 
> -I/bluebird/teamswt/swt-builddir/IBMJava2-141/include 
> -I/bluebird/teamswt/swt-builddir/motif21/include -I/usr/X11R6/include  -c os.c
> In file included from os_structs.h:12,
>                  from os.c:13:
> os.h:31:37: error: X11/extensions/Xinerama.h: No such file or directory
> In file included from os.c:13:
> os_structs.h:352: error: syntax error before '*' token
> os_structs.h:352: error: syntax error before 'XineramaScreenInfo'
> os_structs.h:352: warning: data definition has no type or storage class
> os_structs.h:353: error: syntax error before 'XineramaScreenInfo'
> os.c: In function 
> 'Java_org_eclipse_swt_internal_motif_OS_memmove__Lorg_eclipse_swt_internal_motif_XineramaScreenInfo_2II':
> os.c:5368: error: 'XineramaScreenInfo' undeclared (first use in this function)
> os.c:5368: error: (Each undeclared identifier is reported only once
> os.c:5368: error: for each function it appears in.)
> os.c:5368: error: syntax error before '_arg0'
> os.c:5370: error: 'lparg0' undeclared (first use in this function)
> os.c:5370: error: '_arg0' undeclared (first use in this function)

The header file is contained in libxinerama-dev.  The attached patch
adds a build-dependency on that package, which fixes this bug.

-- 
Matt
diff -u swt-motif-3.0/debian/control swt-motif-3.0/debian/control
--- swt-motif-3.0/debian/control
+++ swt-motif-3.0/debian/control
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Shaun Jackman <[EMAIL PROTECTED]>
-Build-Depends: gcj, libgcj-dev, lesstif2-dev, libgnomeui-dev, libxtst-dev, 
fastjar, debhelper (>= 4.0.0)
+Build-Depends: gcj, libgcj-dev, lesstif2-dev, libgnomeui-dev, libxtst-dev, 
fastjar, debhelper (>= 4.0.0), libxinerama-dev
 Standards-Version: 3.6.1.0
 
 Package: libswt-motif3-java

Attachment: signature.asc
Description: Digital signature

Reply via email to