Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145322 - app-emulation/wine does not emerge, undefined ref to pthread
Summary: app-emulation/wine does not emerge, undefined ref to pthread
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Other
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-28 01:47 UTC by mehrunes
Modified: 2006-08-29 23:45 UTC (History)
0 users

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


Attachments
`emerge wine >&' result7z'ed (log.7z,21.56 KB, application/octet-stream)
2006-08-28 22:34 UTC, mehrunes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mehrunes 2006-08-28 01:47:00 UTC
wine-0.9.8-r1 and wine-0.9.19 don't compile, error msgs look similar

x86_64-pc-linux-gnu-gcc -o wine-glibc glibc.o -Wl,--rpath,\$ORIGIN/`../tools/relpath /usr/bin /usr/lib32` -L../libs/wine -lwine ../libs/port/libwine_port.a   
LD_LIBRARY_PATH="../libs/wine:$LD_LIBRARY_PATH" ../tools/sfnt2fnt courier.ttf 13 1251 96 128 8
Missing glyph for char 0402
Missing glyph for char 0403
glibc.o: In function `main':
/var/tmp/portage/wine-0.9.19/work/wine-0.9.19/loader/glibc.c:69: undefined reference to `pthread_create'
/var/tmp/portage/wine-0.9.19/work/wine-0.9.19/loader/glibc.c:70: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make[1]: *** [wine-glibc] 
Comment 1 mehrunes 2006-08-28 01:47:00 UTC
wine-0.9.8-r1 and wine-0.9.19 don't compile, error msgs look similar

x86_64-pc-linux-gnu-gcc -o wine-glibc glibc.o -Wl,--rpath,\$ORIGIN/`../tools/relpath /usr/bin /usr/lib32` -L../libs/wine -lwine ../libs/port/libwine_port.a   
LD_LIBRARY_PATH="../libs/wine:$LD_LIBRARY_PATH" ../tools/sfnt2fnt courier.ttf 13 1251 96 128 8
Missing glyph for char 0402
Missing glyph for char 0403
glibc.o: In function `main':
/var/tmp/portage/wine-0.9.19/work/wine-0.9.19/loader/glibc.c:69: undefined reference to `pthread_create'
/var/tmp/portage/wine-0.9.19/work/wine-0.9.19/loader/glibc.c:70: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make[1]: *** [wine-glibc] §ñ¨¨X©Ð¨j©Ø 1
`/var/tmp/portage/wine-0.9.19/work/wine-0.9.19/loader'
Comment 2 mehrunes 2006-08-28 01:54:39 UTC
Portage 2.1-r1 (default-linux/amd64/2005.0, gcc-3.4.6, glibc-2.3.5-r2, 2.6.15.3 x86_64)
=================================================================
System uname: 2.6.15.3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Unknown Host Operating System
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r6
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-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O9 -march=athlon64 -fexpensive-optimizations"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-O9 -march=athlon64 -fexpensive-optimizations"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.aiya.ru/pub/gentoo/"
LANG="ru_RU.KOI8-R"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode foomaticdb gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde lzw lzw-tiff moznocompose moznoirc moznomail moznoroaming mp3 mpeg ncurses nls nptl opengl pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype-fonts type1-fonts usb xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 SpanKY gentoo-dev 2006-08-28 17:14:13 UTC
run `emerge wine >& log` and post the log as an attachment

side note, your CFLAGS are complete garbage ... there is no such thing as -O9
Comment 4 mehrunes 2006-08-28 22:31:28 UTC
About -O9 flag: in my humble opinion, this flag is treated like -O3. Please correct me if i am wrong. 

And what are the suggested flags for x86 and amd64? I run linux on 4 computers (2 at home at 2 at the office), i sometimes write c++ programs, so this is important for me
Comment 5 mehrunes 2006-08-28 22:34:26 UTC
Created attachment 95339 [details]
`emerge wine >&' result7z'ed
Comment 6 mehrunes 2006-08-28 22:42:02 UTC
reopenin bug after deliverin log
Comment 7 SpanKY gentoo-dev 2006-08-29 17:19:47 UTC
the configure script didnt detect pthread_create() in libpthread.so ... post your config.log as an attachment
Comment 8 mehrunes 2006-08-29 23:45:15 UTC
yes, /lib32/pthread* was missing. After re-emergin glibc wine compiled successfully. 

Thanks for help, sorry for botherin