Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133576 - transcode-1.0.2-r2 compile fails on threading symbols
Summary: transcode-1.0.2-r2 compile fails on threading symbols
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-17 02:08 UTC by Erik McNellis
Modified: 2006-06-02 05:38 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 Erik McNellis 2006-05-17 02:08:15 UTC
Relevant error message lines:

i686-pc-linux-gnu-gcc -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -march=prescott -Os -pipe -fomit-frame-pointer -DDCT_YUV_PRECISION=1 -Wl,-O1 -o transcode transcode.o iodir.o decoder.o encoder.o dl_loader.o frame_threads.o video_buffer.o audio_buffer.o frame_preprocess.o frame_postprocess.o video_trans.o audio_trans.o video_rgb.o video_yuv.o video_yuv422.o filter.o counter.o zoom.o probe.o split.o callback.o socket.o optstr.o info_server.o -Wl,--export-dynamic  ../libtc/.libs/libtc.a ../libioaux/.libs/libtcioaux.a ../aclib/.libs/libac.a ../avilib/.libs/libavi.a ../libvo/.libs/libvout.a /usr/lib/libxml2.so -lpthread -lm -lz -ldl
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
decoder.o: In function `aimport_thread':
decoder.c:(.text+0xa2a): undefined reference to `__pthread_register_cancel'
decoder.c:(.text+0xa66): undefined reference to `__pthread_unregister_cancel'
...

The error is due to GNU ld looking for threading symbols present in /lib/tls/libpthread , rather than /lib/libpthread . This bug is reproducible irrespective of CFLAGS, LDFLAGS, hardened / vanilla gcc etc.

Emerge --info:

Portage 2.0.54-r2 (hardened/x86/2.6, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-ck7-P4-FHI i686)
=================================================================
System uname: 2.6.15-ck7-P4-FHI i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.intergenia.de/ http://ftp.du.se/pub/os/gentoo http://ftp.sunet.se/pub/os/Linux/distributions/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/opt/portage/packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac alsa audiofile bash-completion berkdb blas bzip2 cddb cdr crypt cups curl dlloader dts dvd dvdr emacs emboss exif expat fam ffmpeg fftw flac foomaticdb ftp gd gdbm gif glut gtk gtk2 hal hardened idn ifc imagemagick imlib ipv6 jpeg lcms libwww mad matroska mmx mng motif mozcalendar mozsvg mp3 ncurses netcdf nls nptl nsplugin ogg opengl oss pam pcre pdf pdflib perl pic plotutils png prelink python quicktime readline samba sdl spell sqlite sse sse2 ssl svg svga tcltk tcpd tetex theora threads tiff truetype udev unicode usb userlocales v4l vorbis win32codecs wmf x86 xine xml xml2 xmms xprint xv zlib video_cards_i915 userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Erik McNellis 2006-06-02 05:38:30 UTC
Bug closed; errors due to improperly built libpthread. I apologize for any inconvenience.