tag 614484 patch pending
thanks

On Mon, Feb 21, 2011 at 11:35:22PM +0100, Lucas Nussbaum wrote:
> Source: xpaint
> Version: 2.9.1.4-2
> Severity: serious
...
> User: debian...@lists.debian.org
> Usertags: qa-ftbfs-20110221 qa-ftbfs
> Justification: FTBFS on amd64
...
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
> 
> Relevant part:
...
> > graphic.c:174: error: variable 'ImgProcessInfo' has initializer but 
> > incomplete type
...
> The full build log is available from:
>    
> http://people.debian.org/~lucas/logs/2011/02/21/xpaint_2.9.1.4-2_lsid64.buildlog
> 
> A list of current common problems and possible solutions is available at 
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
> 
> About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
> of the Grid'5000 platform, using a clean chroot.  Internet was not
> accessible from the build systems.

Hello, thanks for the report and the link in the wiki.

This fail is due to the new version of libx11-dev[0], and the use of
"internal ifdefs" in xpaint (image.h).

>From a bug report in Gentoo[1]:

"They changed internal ifdefs to be prefixed with _X11_ on Xlib.h[2] so
nothing that use former ifdefs won't compile..."

After fixing this, I found another build problem due to indirect
linking (already reported).  (I have fixed using a patch from Roy
Jamison).

I will upload a new version of the package ASAP.

[0] http://packages.debian.org/sid/libx11-dev
[1] http://bugs.gentoo.org/344993
[2] http://go.debian.net/Sksv


-- 
Josué M. Abarca S.
--- xpaint-2.9.1.4.orig/image.h
+++ xpaint-2.9.1.4/image.h
@@ -63,7 +63,7 @@ typedef struct {
     unsigned long sourceMask;
 } Image;
 
-#ifdef _XLIB_H_
+#if defined(_XLIB_H_) || defined(_X11_XLIB_H_)
 /* Used to transfer information to routines in iprocess.c */
 struct imageprocessinfo {
     int oilArea;
--- xpaint-2.9.1.4.orig/configure
+++ xpaint-2.9.1.4/configure
@@ -72,8 +72,8 @@ if test "$WIDGETS" = "xaw3dxft.so" ; the
    ln -sf `pwd`/xaw3dxft xaw_incdir
    echo "XAWLIB_DEFINES = -DXAW3D -DXAW3DG -DXAW3DXFT"   
    echo "XAWLIB_DEFINES = -DXAW3D -DXAW3DG -DXAW3DXFT" > Local.xawdefs
-   echo "SYS_LIBRARIES = -lXaw3dxft -lXt -L. -L./xaw3dxft"
-   echo "SYS_LIBRARIES = -lXaw3dxft -lXt -L. -L./xaw3dxft" >> Local.xawdefs
+   echo "SYS_LIBRARIES = -lXaw3dxft -lXt -lfontconfig -L. -L./xaw3dxft"
+   echo "SYS_LIBRARIES = -lXaw3dxft -lXt -lfontconfig -L. -L./xaw3dxft" >> 
Local.xawdefs
    echo ""
    cd xaw3dxft ; xmkmf ; make Xaw3dP.h ; cd .. ;
    xmkmf -a

Reply via email to