Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359241 - =dev-tcltk/tkimg-1.4.20100510 - tkimg-1.4.20100510/base/./tkimg.h:38:23: error: conflicting types for ‘boolean’
Summary: =dev-tcltk/tkimg-1.4.20100510 - tkimg-1.4.20100510/base/./tkimg.h:38:23: erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
: 360475 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-17 01:56 UTC by Yixun Lan
Modified: 2011-03-27 17:21 UTC (History)
1 user (show)

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


Attachments
full build log (build.log,194.58 KB, text/plain)
2011-03-17 01:57 UTC, Yixun Lan
Details
Apply this patch, fix my problem (tkimg-1.4.20100510-boolean.patch,373 bytes, text/plain)
2011-03-17 02:14 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2011-03-17 01:56:37 UTC
Portage 2.2.0_alpha23 (default/linux/x86/10.0, gcc-4.5.2, glibc-2.13-r0, 2.6.37-rc7-git3 i686)
=================================================================
System uname: Linux-2.6.37-rc7-git3-i686-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 15 Mar 2011 18:15:01 +0000
app-shells/bash:     4.2_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo xfce-dev kuroo enlightenment-niifaq gentoo-android gentoo-china ofree
Installed sets: 
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/home/ftp/local_distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://sabayon http://mirrors.163.com/gentoo http://ftp.twaren.net/Linux/Gentoo http://mirrors.xmu.edu.cn/gentoo http://mirror.averse.net/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US zh zh_CN"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/build"
PORTDIR="/usr/portage-gentoo"
PORTDIR_OVERLAY="/var/lib/layman/xfce-dev /var/lib/layman/kuroo /var/lib/layman/enlightenment-niifaq /var/lib/layman/gentoo-android /var/lib/layman/gentoo-china /var/lib/layman/ofree"
SYNC="rsync://sabayon/gentoo-portage"
USE="3dnow X acl alsa bash-completion berkdb bzip2 cairo cli cracklib crypt cups cxx dbus doc dri fortran gdbm gpm iconv imap ipv6 jpeg jpeg2k libnotify maildir mmx modules mp3 mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python readline session sse sse2 sse3 ssl ssse3 svg sysfs syslog tcpd truetype unicode vorbis x264 x86 xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias threads proxy_connect proxy_ftp proxy_http log proxy version" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse void synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"tkimgjpeg\" -DPACKAGE_TARNAME=\"tkimgjpeg\" -DPACKAGE_VERSION=\"1.4\" -DPACKAGE_STRING=\"tkimgjpeg\ 1.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DUSE_TKIMG_STUBS=1 -DUSE_JPEGTCL_STUBS=1 -DTKIMG_VERSION=\"1.4\" -DJPEGTCL_VERSION=\"1.0\" -I"/var/build/portage/dev-tcltk/tkimg-1.4.20100510/work/tkimg-1.4.20100510/base/." -I"/var/build/portage/dev-tcltk/tkimg-1.4.20100510/work/tkimg-1.4.20100510/libjpeg/." -I"/var/build/portage/dev-tcltk/tkimg-1.4.20100510/work/tkimg-1.4.20100510/libjpeg/libjpeg" -I. -I"/usr/include" -I"/usr/include"   -DPACKAGE_TCLNAME=\"img::jpeg\"  -O2 -march=prescott -pipe -pipe -O2 -fomit-frame-pointer -Wall -Wwrite-strings -fPIC  -DBUILD_tkimgjpeg -c `echo jpeg.c` -o jpeg.o
In file included from init.c:12:0,
                 from jpeg.c:65:
/var/build/portage/dev-tcltk/tkimg-1.4.20100510/work/tkimg-1.4.20100510/base/./tkimg.h:38:23: error: conflicting types for ‘boolean’
/var/build/portage/dev-tcltk/tkimg-1.4.20100510/work/tkimg-1.4.20100510/libjpeg/./../compat/libjpeg/jmorecfg.h:259:13: note: previous declaration of ‘boolean’ was here
jpeg.c: In function ‘my_jpeg_obj_src’:
jpeg.c:962:30: warning: assignment from incompatible pointer type
jpeg.c: In function ‘my_jpeg_channel_src’:
jpeg.c:1035:30: warning: assignment from incompatible pointer type
jpeg.c: In function ‘my_jpeg_string_dest’:
jpeg.c:1068:33: warning: assignment from incompatible pointer type
jpeg.c: In function ‘my_jpeg_channel_dest’:
jpeg.c:1092:33: warning: assignment from incompatible pointer type
make[1]: *** [jpeg.o] Error 1
make[1]: Leaving directory `/var/build/portage/dev-tcltk/tkimg-1.4.20100510/work/tkimg-1.4.20100510/jpeg'
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
1.emerge tkimg
2.
3.
Comment 1 Yixun Lan archtester gentoo-dev 2011-03-17 01:57:50 UTC
Created attachment 266219 [details]
full build log
Comment 2 Yixun Lan archtester gentoo-dev 2011-03-17 02:14:09 UTC
Created attachment 266223 [details]
Apply this patch, fix my problem
Comment 3 Yixun Lan archtester gentoo-dev 2011-03-17 02:15:45 UTC
The Problem is that my system didn't define HAVE_BOOLEAN,
so both compat/libjpeg/jmorecfg.h and base/tkimg.h try to define this,
then generate conflict
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-03-27 14:35:07 UTC
*** Bug 360475 has been marked as a duplicate of this bug. ***
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2011-03-27 17:21:24 UTC
+  27 Mar 2011; Justin Lecher <jlec@gentoo.org> tkimg-1.4.20100510.ebuild,
+  +files/tkimg-1.4.20100510-boolean.patch:
+  Fix double declaration of BOOLEAN, #359241; thanks Dennis Yxun
+