Bug#614484: xpaint: FTBFS: graphic.c:174: error: variable 'ImgProcessInfo' has initializer but incomplete type

February 21st, 2011 - 05:50 pm ET by Lucas Nussbaum | Report spam
Source: xpaint
Version: 2.9.1.4-2
Severity: serious
Tags: squeeze sid
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs-20110221 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:

gcc -g -O2 -fno-strict-aliasing -I./xaw3dxft -Dlinux -D__amd64__ -D_POSIX_C_SOURCE9309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITSd -DFUNCPROTO -DNARROWPROTO -DERRORBEEP -DFEATURE_FRACTAL -DXAW3D -DXAW3DG -DXAW3DXFT -I/usr/include/X11 -I/usr/include/freetype2 "-DEDITOR=\"x-terminal-emulator -e sensible-editor\"" "-DSHAREDIR=\"/usr/share/xpaint\"" "-DXAPPLOADDIR=\"/etc/X11/app-defaults\"" "-DXPAINT_VERSION=\"2.9.1\"" "-DLPCCMD=\"/usr/sbin/lpc status\"" -DERRORBEEP -DFEATURE_FRACTAL -c -o graphic.o graphic.c
graphic.c:174: error: variable 'ImgProcessInfo' has initializer but incomplete type
graphic.c:176: warning: excess elements in struct initializer
graphic.c:176: warning: (near initialization for 'ImgProcessInfo')
graphic.c:177: warning: excess elements in struct initializer
graphic.c:177: warning: (near initialization for 'ImgProcessInfo')
graphic.c:178: warning: excess elements in struct initializer
graphic.c:178: warning: (near initialization for 'ImgProcessInfo')
graphic.c:179: warning: excess elements in struct initializer
graphic.c:179: warning: (near initialization for 'ImgProcessInfo')
graphic.c:180: warning: excess elements in struct initializer
graphic.c:180: warning: (near initialization for 'ImgProcessInfo')
graphic.c:181: warning: excess elements in struct initializer
graphic.c:181: warning: (near initialization for 'ImgProcessInfo')
graphic.c:182: warning: excess elements in struct initializer
graphic.c:182: warning: (near initialization for 'ImgProcessInfo')
graphic.c:183: warning: excess elements in struct initializer
graphic.c:183: warning: (near initialization for 'ImgProcessInfo')
graphic.c:184: warning: excess elements in struct initializer
graphic.c:184: warning: (near initialization for 'ImgProcessInfo')
graphic.c:185: warning: excess elements in struct initializer
graphic.c:185: warning: (near initialization for 'ImgProcessInfo')
graphic.c:186: warning: excess elements in struct initializer
graphic.c:186: warning: (near initialization for 'ImgProcessInfo')
graphic.c:187: warning: excess elements in struct initializer
graphic.c:187: warning: (near initialization for 'ImgProcessInfo')
graphic.c:188: warning: excess elements in struct initializer
graphic.c:188: warning: (near initialization for 'ImgProcessInfo')
graphic.c:189: warning: excess elements in struct initializer
graphic.c:189: warning: (near initialization for 'ImgProcessInfo')
graphic.c:190: warning: excess elements in struct initializer
graphic.c:190: warning: (near initialization for 'ImgProcessInfo')
graphic.c:191: warning: excess elements in struct initializer
graphic.c:191: warning: (near initialization for 'ImgProcessInfo')
graphic.c:192: warning: excess elements in struct initializer
graphic.c:192: warning: (near initialization for 'ImgProcessInfo')
graphic.c:193: warning: excess elements in struct initializer
graphic.c:193: warning: (near initialization for 'ImgProcessInfo')
graphic.c:194: warning: excess elements in struct initializer
graphic.c:194: warning: (near initialization for 'ImgProcessInfo')
graphic.c:194: warning: excess elements in struct initializer
graphic.c:194: warning: (near initialization for 'ImgProcessInfo')
graphic.c:194: warning: excess elements in struct initializer
graphic.c:194: warning: (near initialization for 'ImgProcessInfo')
graphic.c:194: warning: excess elements in struct initializer
graphic.c:194: warning: (near initialization for 'ImgProcessInfo')
graphic.c:195: warning: excess elements in struct initializer
graphic.c:195: warning: (near initialization for 'ImgProcessInfo')
graphic.c:195: warning: excess elements in struct initializer
graphic.c:195: warning: (near initialization for 'ImgProcessInfo')
graphic.c:195: warning: excess elements in struct initializer
graphic.c:195: warning: (near initialization for 'ImgProcessInfo')
graphic.c:195: warning: excess elements in struct initializer
graphic.c:195: warning: (near initialization for 'ImgProcessInfo')
graphic.c:197: warning: excess elements in struct initializer
graphic.c:197: warning: (near initialization for 'ImgProcessInfo')
graphic.c: In function 'linearRegionOkCallback':
graphic.c:3181: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3182: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3183: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3184: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'linearRegion':
graphic.c:3200: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3201: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3202: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3203: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'tiltRegionOkCallback':
graphic.c:3229: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3230: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3231: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3232: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'tiltRegion':
graphic.c:3244: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3245: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3246: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3247: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'oilPaintOkCallback':
graphic.c:3290: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'oilPaint':
graphic.c:3302: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'SmoothOkCallback':
graphic.c:3325: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doSmooth':
graphic.c:3338: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'addNoiseOkCallback':
graphic.c:3361: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'addNoise':
graphic.c:3374: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doSpreadOkCallback':
graphic.c:3397: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doSpread':
graphic.c:3410: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doPixelizeOkCallback':
graphic.c:3443: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3444: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doPixelize':
graphic.c:3457: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3457: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3458: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3459: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3461: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'despeckleOkCallback':
graphic.c:3484: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doDespeckle':
graphic.c:3497: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'contrastOkCallback':
graphic.c:3525: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3526: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doContrast':
graphic.c:3540: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3541: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'solarizeOkCallback':
graphic.c:3566: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doSolarize':
graphic.c:3579: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'quantizeOkCallback':
graphic.c:3602: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'expandOkCallback':
graphic.c:3633: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3634: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3637: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3639: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3647: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'modifyRGBOkCallback':
graphic.c:3865: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3866: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3867: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doModifyRGB':
graphic.c:3880: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3881: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3882: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'doQuantize':
graphic.c:3909: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'expandRegion':
graphic.c:3932: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3933: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3934: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'downscaleRegion':
graphic.c:3963: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3964: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c:3965: error: invalid use of undefined type 'struct imageprocessinfo'
graphic.c: In function 'ImgProcessSetup':
graphic.c:6938: error: invalid use of undefined type 'struct imageprocessinfo'
make[1]: *** [graphic.o] Error 1



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.

| Lucas Nussbaum
| lucas@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |



To UNSUBSCRIBE, email to debian-bugs-rc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Josue Abarca
February 22nd, 2011 - 06:00 pm ET | Report spam

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:
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




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics