Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382019 - dev-tcltk/tkimg-1.4* fails with /usr/include/jbig.h - tifftclStubInit.o:(.data.rel.ro+0x508): undefined reference to `TIFFInitJBIG'
Summary: dev-tcltk/tkimg-1.4* fails with /usr/include/jbig.h - tifftclStubInit.o:(.dat...
Status: RESOLVED DUPLICATE of bug 356907
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 08:29 UTC by urcindalo
Modified: 2011-09-29 11:48 UTC (History)
1 user (show)

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 urcindalo 2011-09-06 08:29:26 UTC
tkimg-1.4* does not compile with tiff-3.9.4-r1 with jbig support:

===
chmod u+x mkg3states
./mkg3states -b -c const tif_fax3sm.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"tifftcl\" -DPACKAGE_TARNAME=\"tifftcl\" -DPACKAGE_VERSION=\"3.9.4\" -DPACKAGE_STRING=\"tifftcl\ 3.9.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 -DSTDC_HEADERS=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_IS_LONG=1 -DUSE_TCL_STUBS=1  -I"." -I"./libtiff" -I"./../compat/libtiff/libtiff" -I"/usr/include"    -march=core2 -mtune=core2 -O2 -pipe -msse4.1 -pipe -O2 -fomit-frame-pointer -Wall -Wwrite-strings -fPIC  -DTIFFTCLAPI=MODULE_SCOPE -DLOGLUV_PUBLIC=0 -c `echo tif_fax3sm.c` -o tif_fax3sm.o
rm -f libtifftcl3.9.4.so
x86_64-pc-linux-gnu-gcc -shared -march=core2 -mtune=core2 -O2 -pipe -msse4.1 -pipe -O2 -fomit-frame-pointer -Wall -Wwrite-strings -fPIC  -DTIFFTCLAPI=MODULE_SCOPE -DLOGLUV_PUBLIC=0 -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic  -o libtifftcl3.9.4.so tifftcl.o tifftclStubInit.o tif_aux.o tif_close.o tif_codec.o tif_compress.o tif_dir.o tif_dirinfo.o tif_dirread.o tif_dirwrite.o tif_dumpmode.o tif_error.o tif_fax3.o tif_getimage.o tif_flush.o tif_luv.o tif_lzw.o tif_next.o tif_open.o tif_packbits.o tif_predict.o tif_print.o tif_read.o tif_swab.o tif_strip.o tif_thunder.o tif_tile.o tif_version.o tif_warning.o tif_write.o tif_color.o tif_extension.o tifftclStubLib.o tif_unix.o tif_fax3sm.o -lm  -L/usr/lib64 -ltclstub8.5 -L/usr/lib64 -ltkstub8.5 
tifftclStubInit.o:(.data.rel.ro+0x508): undefined reference to `TIFFInitJBIG'
tif_codec.o:(.data.rel+0x118): undefined reference to `TIFFInitJBIG'
collect2: ld devolvió el estado de salida 1
make[1]: *** [libtifftcl3.9.4.so] Error 1
make[1]: se sale del directorio `/var/tmp/portage/dev-tcltk/tkimg-1.4/work/tkimg1.4/libtiff'
make: *** [all] Error 2
emake failed
 * ERROR: dev-tcltk/tkimg-1.4 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2782:  Called _eapi2_src_compile
 *     ebuild.sh, line  669:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
===

I even re-emerged every package depending on tiff[jbig] as instructed by its elog, to no avail.

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2011-09-06 21:18:32 UTC
Please provide emerge --info and and attach a build log with messages in English (LC_MESSAGES=C).
Comment 2 urcindalo 2011-09-14 17:50:30 UTC
Sorry for the delay. I emerged it with --emptytree and it compiled beautifully. It seems some dependencies needed recompiling.
Comment 3 Thomas Kahle (RETIRED) gentoo-dev 2011-09-29 11:13:21 UTC
I confirm this bug, it occurs when you have jbig.h on you system.  This header is provided by media-libs/jbigkit.  Tkimg's configure checks for the presence of jbig.h and then tries to link against a non-existing library.  Unmerging jbigkit makes tkimg compile fine.

# emerge --info
Portage 2.1.10.11 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-i686-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 29 Sep 2011 10:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emacs emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify lock mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support readline sdl session spell ssl startup-notification svg sysfs tcpd thunar tiff truetype udev unicode usb vorbis x264 x86 xcb xml xorg xulrunner xv 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2011-09-29 11:48:57 UTC

*** This bug has been marked as a duplicate of bug 356907 ***