Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88770 - gimp 2.2.6 fails to compile (flame.c)
Summary: gimp 2.2.6 fails to compile (flame.c)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-11 14:20 UTC by Schricker
Modified: 2005-04-11 14:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Schricker 2005-04-11 14:20:02 UTC
Emerging the latest gimp - 2.2.6 - fails with a (kind of) long error:

if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include  -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -march=pentium3 -pipe -fomit-frame-pointer -O2 -Wall -MT libifs.o -MD -MP -MF ".deps/libifs.Tpo" \
  -c -o libifs.o `test -f 'libifs.c' || echo './'`libifs.c; \
then mv -f ".deps/libifs.Tpo" ".deps/libifs.Po"; \
else rm -f ".deps/libifs.Tpo"; exit 1; \
fi
In file included from flame.h:21,
                 from flame.c:33:
rect.h:1:1: warning: null character(s) ignored
rect.h:1:1: warning: no newline at end of file
flame.c:276:2: warning: #warning FIXME: "reverse" hardcoded to FALSE.
flame.c:102: error: syntax error before "f"
flame.c:102: warning: type defaults to `int' in declaration of `f'
flame.c:102: warning: excess elements in scalar initializer
flame.c:102: warning: (near initialization for `f')
flame.c:102: warning: excess elements in scalar initializer
flame.c:102: warning: (near initialization for `f')
flame.c:102: warning: excess elements in scalar initializer
flame.c:102: warning: (near initialization for `f')
flame.c:102: warning: data definition has no type or storage class
flame.c: In function `flame':
flame.c:331: warning: implicit declaration of function `render_rectangle'
flame.c:331: error: `field_both' undeclared (first use in this function)
flame.c:331: error: (Each undeclared identifier is reported only once
flame.c:331: error: for each function it appears in.)
flame.c: In function `set_edit_preview':
flame.c:539: error: syntax error before "pf"
flame.c:534: warning: unused variable `i'
flame.c:534: warning: unused variable `j'
flame.c:535: warning: unused variable `b'
flame.c:536: warning: unused variable `pcp'
flame.c:537: warning: unused variable `nbytes'
flame.c: At top level:
flame.c:544: warning: type defaults to `int' in declaration of `b'
flame.c:544: error: `nbytes' undeclared here (not in a function)
flame.c:544: warning: initialization makes integer from pointer without a cast
flame.c:544: error: initializer element is not constant
flame.c:544: warning: data definition has no type or storage class
flame.c:545: warning: type defaults to `int' in declaration of `maybe_init_cp'
flame.c:545: error: conflicting types for `maybe_init_cp'
flame.c:145: error: previous declaration of `maybe_init_cp'
flame.c:545: warning: data definition has no type or storage class
flame.c:546: error: syntax error before '&' token
flame.c:546: warning: type defaults to `int' in declaration of `drawable_to_cmap'
flame.c:546: error: conflicting types for `drawable_to_cmap'
flame.c:252: error: previous declaration of `drawable_to_cmap'
flame.c:546: warning: data definition has no type or storage class
flame.c:560: warning: type defaults to `int' in declaration of `ends'
flame.c:560: error: invalid initializer
flame.c:560: warning: data definition has no type or storage class
flame.c:561: warning: type defaults to `int' in declaration of `ends'
flame.c:561: error: conflicting types for `ends'
flame.c:560: error: previous declaration of `ends'
flame.c:561: error: `mut' undeclared here (not in a function)
flame.c:561: warning: data definition has no type or storage class
flame.c:562: error: syntax error before '.' token
flame.c:563: error: syntax error before '.' token
flame.c:564: error: syntax error before numeric constant
flame.c:564: warning: type defaults to `int' in declaration of `interpolate'
flame.c:564: error: conflicting types for `interpolate'
libifs.h:76: error: previous declaration of `interpolate'
flame.c:564: warning: data definition has no type or storage class
flame.c:575: error: syntax error before '&' token
flame.c:575: warning: type defaults to `int' in declaration of `drawable_to_cmap'
flame.c:575: warning: data definition has no type or storage class
flame.c:577: error: syntax error before '&' token
flame.c:579: error: syntax error before '(' token
flame.c:585: warning: type defaults to `int' in declaration of `g_free'
flame.c:585: warning: parameter names (without types) in function declaration
flame.c:585: error: conflicting types for `g_free'
/usr/include/glib-2.0/glib/gmem.h:52: error: previous declaration of `g_free'
flame.c:585: warning: data definition has no type or storage class
flame.c:586: error: syntax error before '}' token
flame.c: In function `set_flame_preview':
flame.c:816: error: syntax error before "pf"
flame.c:813: warning: unused variable `b'
flame.c:814: warning: unused variable `pcp'
flame.c: At top level:
flame.c:821: warning: type defaults to `int' in declaration of `b'
flame.c:821: error: redefinition of `b'
flame.c:544: error: `b' previously defined here
flame.c:821: warning: initialization makes integer from pointer without a cast
flame.c:821: error: initializer element is not constant
flame.c:821: warning: data definition has no type or storage class
flame.c:823: warning: type defaults to `int' in declaration of `maybe_init_cp'
flame.c:823: warning: data definition has no type or storage class
flame.c:824: error: syntax error before '&' token
flame.c:824: warning: type defaults to `int' in declaration of `drawable_to_cmap'
flame.c:824: warning: data definition has no type or storage class
flame.c:826: error: syntax error before '.' token
flame.c:827: warning: type defaults to `int' in declaration of `pcp'
flame.c:827: error: incompatible types in initialization
flame.c:827: error: initializer element is not constant
flame.c:827: warning: data definition has no type or storage class
flame.c:828: error: syntax error before '.' token
flame.c:835: error: syntax error before '&' token
flame.c:837: error: syntax error before '(' token
flame.c:842: warning: type defaults to `int' in declaration of `g_free'
flame.c:842: warning: parameter names (without types) in function declaration
flame.c:842: warning: data definition has no type or storage class
flame.c:843: error: syntax error before '}' token
{standard input}: Assembler messages:
{standard input}:136: Error: symbol `b' is already defined
make[3]: *** [flame.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/gimp-2.2.6/work/gimp-2.2.6/plug-ins/flame'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gimp-2.2.6/work/gimp-2.2.6/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gimp-2.2.6/work/gimp-2.2.6'
make: *** [all] Error 2

!!! ERROR: media-gfx/gimp-2.2.6 failed.


I am quite puzzled, but haven't look at the source  yet.

I know I am running an unsupported kernel, but I doubt it has anything to do with that - at least I hope so. I could try to reproduce with a vanilla-kernel, though.

In the hope this is not already a dup,
regards,
Florian


Reproducible: Didn't try
Steps to Reproduce:




Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-morph5 i686)
=================================================================
System uname: 2.6.11-morph5 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4
(#1, Mar 13 2005, 13:29:49)]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -pipe -fomit-frame-pointer -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -pipe -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US@euro"
LC_ALL="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 apm artworkextra avi berkdb bitmap-fonts
bonobo breakme cdr crypt cups curl dga directfb divx4linux dvd eds emboss encode
esd evo fam flac flash foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer
gtk gtk2 gtkhtml guile hal howl imagemagick imap imlib java jpeg junit kde
libg++ libwww mad mikmod mmx motif mp3 mpeg mysql nas ncurses nls oggvorbis
opengl oss pam pcmcia pdflib perl png pnp python qt quicktime readline samba sdl
slang spell sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts unicode usb xinerama xml xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS
Comment 1 Schricker 2005-04-11 14:48:08 UTC
This is odd - I tried to reproduce it (re-emerged gimp) and it compiled fine and now lives happily ever after... :-)
Sorry for bothering.

regards,
Florian