Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17986 - new wine ver out
Summary: new wine ver out
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 18873 19346 20209 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-22 03:30 UTC by Bret Towe
Modified: 2003-05-15 10:27 UTC (History)
11 users (show)

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


Attachments
Xfont patch (xfont.patch,1.01 KB, patch)
2003-03-25 11:24 UTC, Quequero
Details | Diff
wine compile log (error.wine,18.00 KB, text/plain)
2003-03-30 17:37 UTC, Philip Walls (RETIRED)
Details
wine-build.patch (wine-build.patch,2.04 KB, text/plain)
2003-04-02 00:18 UTC, Bret Towe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bret Towe 2003-03-22 03:30:11 UTC
wine ver 20030318 is out
im downloading now ill know if it works in a bit


Reproducible: Always
Steps to Reproduce:
Comment 1 Bret Towe 2003-03-22 04:09:14 UTC
doesnt compile for me
bombs out with this error

cc -c -I. -I. -I../../include -I../../include  -Wall -mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith  -fPIC -D__WINESRC__ -D_NTSYSTEM_  -DBINDIR="\"/usr/lib/wine/bin\""  -DETCDIR="\"/etc/wine\"" -D_REENTRANT -o rtl.o rtl.c
/var/tmp/portage/wine-20030318/temp/ccdQXIXb.s: Assembler messages:
/var/tmp/portage/wine-20030318/temp/ccdQXIXb.s:3418: Error: symbol `RtlUlongByteSwap' is already defined
make[2]: *** [rtl.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/wine-20030318/work/wine-20030318/dlls/ntdll'

since i dont know assembler i dont think i can fix it
Comment 2 gtonic 2003-03-23 13:37:41 UTC
i'm getting the same errors, not only with wine-20030318, also with previous versions which are in portage 
Comment 3 Bret Towe 2003-03-23 14:35:28 UTC
i didnt have this problem when i compiled 20021125
and i see no diff in the ebuilds since i merged it that would cause this
(just some dep changes)
Comment 4 gtonic 2003-03-23 19:42:07 UTC
k sorry, now all versions except the most recent one (20030318) seem to work ;) 
Comment 5 Quequero 2003-03-25 11:24:51 UTC
Created attachment 9795 [details, diff]
Xfont patch

Patch wine with it if you get X_OpenFont problem and run: wine --debugmsg +font
anyprogram.exe.
Comment 6 Quequero 2003-03-25 11:26:32 UTC
Uhm, after upgrading to Xfree 4.3.0 i can't recompile wine... this is the output for   
version wine-20030219:   
   
vshaderdeclaration.o(.text+0x90): In function   
`IDirect3DDeviceImpl_CreateVertexShaderDeclaration8':   
/var/tmp/portage/wine-20030219/work/wine-20030219/dlls/d3d8/vshaderdeclaration.c:191:   
undefined reference to `GetProcessHeap'   
vshaderdeclaration.o(.text+0xa8):/var/tmp/portage/wine-20030219/work/wine-20030219/dlls/d3d8/vshaderdeclaration.c:191:   
undefined reference to `HeapAlloc'   
vshaderdeclaration.o(.text+0x6ca):/var/tmp/portage/wine-20030219/work/wine-20030219/dlls/d3d8/vshaderdeclaration.c:330:   
undefined reference to `GetProcessHeap'   
vshaderdeclaration.o(.text+0x6e6):/var/tmp/portage/wine-20030219/work/wine-20030219/dlls/d3d8/vshaderdeclaration.c:330:   
undefined reference to `HeapAlloc'   
collect2: ld returned 1 exit status   
make[2]: *** [d3d8.dll.so] Error 1   
make[2]: Leaving directory   
`/var/tmp/portage/wine-20030219/work/wine-20030219/dlls/d3d8'   
make[1]: *** [d3d8] Error 2   
make[1]: Leaving directory `/var/tmp/portage/wine-20030219/work/wine-20030219/dlls'   
make: *** [dlls] Error 2   
   
!!! ERROR: app-emulation/wine-20030219 failed.   
!!! Function src_compile, Line 64, Exitcode 2   
!!! (no error message)   
   
I've done an ebuild for wine-20030318, but i haven't committed it because i'm getting   
the same error....   
   
*  x11-base/xfree   
      Latest version available: 4.3.0-r1   
      Latest version installed: 4.3.0-r1   
*  sys-libs/glibc  
      Latest version available: 2.3.2  
      Latest version installed: 2.3.2  
*  kde-base/kde  
      Latest version available: 3.1.1  
      Latest version installed: 3.1.1  
  
Anyway before unmerging wine (and now i can't re-emerge it ;p) i wasn't able to run  
anything because of the X_OpenFont bug. Above i've attached a patch that i found on 
the net (it's not my work btw, i've only reformatted it) that could be useful because it 
prints the name of the font that cause the crash so we don't have to step font-to-font 
with xfontsel :))  
Que  
   
Comment 7 Stacey Keast 2003-03-27 01:54:26 UTC
Fix for this is -> http://bugs.winehq.com/show_bug.cgi?id=1333

Note also in that thread from a wine developer

"Any reason you are compiling without optimization?
This will hurt performance quite a bit."

Maybe stripping all CFLAGS is not such a good idea.
Comment 8 Bret Towe 2003-03-27 02:15:47 UTC
i have had problems with some optimization not sure what caused it tho (which flag) maybe should try just allowing -mcpu/arch and see how that works out
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-30 02:39:32 UTC
> Note also in that thread from a wine developer
>
> "Any reason you are compiling without optimization?
> This will hurt performance quite a bit."
>
> Maybe stripping all CFLAGS is not such a good idea.

Basically because wine was very unstable, and they did not want to give support
if you compiled with CFLAGS set.  Might be with CFLAGS set to something
specific, cannot remember.
Comment 10 Philip Walls (RETIRED) gentoo-dev 2003-03-30 17:36:44 UTC
I have the same problem as Quequero. When compiling wine, I'll attach the full error.
Comment 11 Philip Walls (RETIRED) gentoo-dev 2003-03-30 17:37:58 UTC
Created attachment 10042 [details]
wine compile log
Comment 12 Quequero 2003-03-30 19:07:01 UTC
I've tested wine under two other pc, and i have still the same prob O_o dunno why :(

Que
Comment 13 gtonic 2003-03-31 03:09:21 UTC
according to the recent WWN wine got probs with the recent kernel/glibc:
http://www.winehq.com/index.php?issue=163#News:%20Interview%20Series%20Coming%20Soon

thread with solution:
http://www.winehq.com/hypermail/wine-devel/2003/02/0260.html

so you should try to to this before building wine:
export LD_ASSUME_KERNEL=2.2.5

i didn't find time to verify this yet - does anyone could test this?
Comment 14 Quequero 2003-03-31 11:45:42 UTC
It seems dangerous here ;p 

root@panther:~# export LD_ASSUME_KERNEL=2.2.5 ; emerge wine
/usr/bin/env: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
             
root@panther:~# env | grep KER
env: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

root@panther:~# env-update    
/usr/bin/python2.2: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

root@panther:~# export LD_ASSUME_KERNEL=2.4.20
root@panther:~# env-update 
>>> Regenerating /etc/ld.so.cache...

;ppp not a beautiful workaround ;p

Que
http://quequero.org
Comment 15 gtonic 2003-03-31 12:08:00 UTC
ouch ;)
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-31 13:26:36 UTC
If glibc is compiled with support for kernel higher, this will happen.
Comment 17 Bret Towe 2003-03-31 19:26:04 UTC
i dont think the kernel is the problem here for threads but
rather is a glibc problem the 2.5 kernel might need this hack but
2.4 should be safe from what i understand
Comment 18 Luca Barbato gentoo-dev 2003-04-01 10:47:55 UTC
binutils version?
Comment 19 phoen][x 2003-04-01 11:24:39 UTC
Okay i wrote a massive text about optimizations but galeon crashed my X and i had to sysrq-k the whole thing.

In short:
`export CFLAGS="" ; export CXXFLAGS=""` is wrong
It'll be replaced with `unset CFLAGS; unset CXXFLAGS`.

-phoen][x- 
Comment 20 Bret Towe 2003-04-02 00:18:50 UTC
Created attachment 10113 [details]
wine-build.patch

here is the patch that fixs the compile problem i had
the link ot a patch didnt work had to edit it this is what makes it compile

i also added unset CFLAGS CXXFLAGS to the ebuild 
does compile fine with that also
Comment 21 Philip Walls (RETIRED) gentoo-dev 2003-04-03 13:25:32 UTC
This doesn't seem fix the problem me and Quequerando are having.
Comment 22 Bret Towe 2003-04-03 14:07:34 UTC
i didnt expect it to 
im not getting the error so its hard for me to find a fix :\
its a linking problem some lib its trying to link to doesnt have
the functions its  listing thing it the lib should have it
so its a lib version problem im guessing
are you running nvidia's drivers? that might be the problem if you are...
Comment 23 Quequero 2003-04-03 14:34:22 UTC
Yes I'm running nvidia drivers on all my pc... Btw i don't think this is the problem (it's a module no more :( )... Btw it's a problem common to all my machines so... Something is wrong here, but I don't know what ;pp

Que
Comment 24 phoen][x 2003-04-06 05:10:49 UTC
Try to fall back to binutils 2.13.90.0.18 - does that solve the problem?

-phoen][x-
Comment 25 Nate Lynch 2003-04-06 05:51:36 UTC
Downgrading binutils as suggested allows the build to complete.

The wine-20030219 ebuild breaks in the same way with binutils-2.13.90.0.20, btw.

I think the build problem may be a related to the linker's handling of the "-z defs" flag, which is present in wine ebuilds since 20021031 or thereabouts.
Comment 26 phoen][x 2003-04-06 06:00:31 UTC
> I think the build problem may be a related to the linker's handling of the "-z defs"
> flag, which is present in wine ebuilds since 20021031 or thereabouts.

Thats no issue with the ebuild itself (in fact, the ebuild did not really change for ~6 months now). I'll try this new wine version out soon (=today) and report back when i got news for you.

-phoen][x-
Comment 27 phoen][x 2003-04-06 12:48:35 UTC
Added the new wine to the tree (and incorporated that Xfont patch).

Compiles and works fine over here:
[load:0.22:0.35:0.47][phoenix@gravity][/home/phoenix] $ sudo emerge info                                                                                                                [ 6:54PM]
Password:
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.21-pre1 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/portage-overlay"
USE="x86 3dnow apm avi crypt gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime truetype xml2 xmms xv zlib gdbm berkdb slang readline sdl tcpd pam libwww ssl perl python esd imlib
oggvorbis gtk motif opengl aalib bonobo gnome cups dvd ggi gtkhtml guile java mozilla nas svga tcltk ogg vorbis objprelink fbcon oss mhash mcrypt encode -alsa -arts -kde -gpm -qt directfb X gtk2 ggz cdr evo imap -ldap spell pda mysql"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

misc package versions:
sys-devel/binutils-2.13.90.0.18
x11-base/xfree-4.3.0-r1

-phoen][x-
Comment 28 phoen][x 2003-04-06 17:42:26 UTC
*** Bug 18873 has been marked as a duplicate of this bug. ***
Comment 29 Bret Towe 2003-04-07 15:15:25 UTC
i tried it last night compiled and working fine here
Comment 30 gtonic 2003-04-07 16:27:11 UTC
yay! building wine-20030318 also works for me. thanks ;)
Comment 31 Bret Towe 2003-04-09 17:04:01 UTC
20030408 is out now
changelog said support for glibc 2.3
im downloading now ill let know results in a while
Comment 32 Bret Towe 2003-04-09 19:03:23 UTC
copying everything over seems to work fine
dont see any problems here anyways
Comment 33 phoen][x 2003-04-10 14:06:10 UTC
New wine ebuild has been tested and committed.

Test it, please.

-phoen][x-
Comment 34 Quequero 2003-04-10 15:56:13 UTC
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapAlloc'
stateblock.o(.text+0x1064): In function `IDirect3DDeviceImpl_CreateStateBlock':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapAlloc'
stateblock.o(.text+0x1402): In function `IDirect3DDeviceImpl_DeleteStateBlock':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapFree'
stateblock.o(.text+0x14ed): In function `IDirect3DDeviceImpl_BeginStateBlock':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapAlloc'
surface.o(.text+0x234): In function `IDirect3DSurface8Impl_Release':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapFree'
surface.o(.text+0x254):/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapFree'
swapchain.o(.text+0x231): In function `IDirect3DSwapChain8Impl_Release':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapFree'
texture.o(.text+0x2c3): In function `IDirect3DTexture8Impl_Release':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapFree'
vertexbuffer.o(.text+0x237): In function `IDirect3DVertexBuffer8Impl_Release':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapFree'
vertexbuffer.o(.text+0x269):/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: more undefined references to `HeapFree' follow
vshaderdeclaration.o(.text+0x6d): In function `IDirect3DDeviceImpl_CreateVertexShaderDeclaration8':
/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapAlloc'
vshaderdeclaration.o(.text+0x114):/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8/../../include/winbase.h:1932: undefined reference to `HeapAlloc'
collect2: ld returned 1 exit status
make[2]: *** [d3d8.dll.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/wine-20030408/work/wine-20030408/dlls/d3d8'
make[1]: *** [d3d8] Error 2
make[1]: Leaving directory `/var/tmp/portage/wine-20030408/work/wine-20030408/dlls'
make: *** [dlls] Error 2

!!! ERROR: app-emulation/wine-20030408 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! (no error message)

*  sys-devel/binutils
      Latest version available: 2.13.90.0.20-r1
      Latest version installed: 2.13.90.0.20-r1
      Size of downloaded files: 10,227 kB
*  sys-libs/glibc
      Latest version available: 2.3.2-r1
      Latest version installed: 2.3.2-r1
      Size of downloaded files: 13,678 kB

Sigh, sob :((( what's wrong now? :((((
Thanx to all

Que
Comment 35 phoen][x 2003-04-10 16:06:25 UTC
As stated on bugs.gentoo.org several times now: DO NOT use binutils-2.13.90.0.20* to compile wine*. Use binutils-2.13.90.0.18 and everything shall be fine.

-phoen][x-
Comment 36 Quequero 2003-04-10 16:48:35 UTC
ups sorry, forgot to downgrade ;pp thanx phoe :))
Que
Comment 37 phoen][x 2003-04-11 16:06:03 UTC
Well, i wanted to surprise you guys but you are way too hyperactive.

There are really good news for you:
A couple of hours ago, i fetched the newest wine cvs-snapshot and tried to compile it. It compiles fine using the latest binutils and xfree (4.3.0-r2). The really good news are: It even works (tested it with Diablo2). :)

So please try this new wine-20030411 and tell me if it works or if it still borks. I do not have glibc-2.3.2 installed but it should work, because it already did in wine-20030408. 

One last note:
Right now, emerge dies when you merge wine-20030411. This is due to the fact that the wine tarball has not been replicated onto the gentoo mirrors yet. This is a known issue and it is kinda wanted. The tarball will be replicated in a couple of hours. If you can't wait for the replication, fetch the tarball manually from http://cvs.gentoo.org/~phoenix/downloads/wine-20030411.tar.bz2 and put it in /usr/portage/distfiles.

Let the testing begin. Good luck to all of you.

Very big thanks to Nick Burtner <nfb2387@mwsc.edu> (bug #19146), who gave me the wine-cvs advice.

-phoen][x-
Comment 38 Quequero 2003-04-11 19:33:05 UTC
*  sys-libs/glibc 
      Latest version available: 2.3.2-r1 
      Latest version installed: 2.3.2-r1 
*  x11-base/xfree 
      Latest version available: 4.3.0-r1 
      Latest version installed: 4.3.0-r1 
*  sys-devel/binutils 
      Latest version available: 2.13.90.0.20-r1 
      Latest version installed: 2.13.90.0.20-r1 
 
Wowo :)) i can confirm, last ebuild (wine-20030411) works really fine for me :))) (tested 
with notepad and mirc ;p) also without font metric problems :ppp 
 
bye bye 
Que 
 
 
Comment 39 Bret Towe 2003-04-11 22:55:11 UTC
merged fine for me on my main computer (has glibc-2.3.1-r4)
seems to be running fine also

i would of also reported on a computer i have that was about to have
glibc 2.3.2-r3 with nptl i think it was but the damned thing overheated
so it will be a day or so before i can report on that
Comment 40 phoen][x 2003-04-12 12:05:59 UTC
This version of wine has been tagged stable x86 ("x86") now.

It's the by far most useful version of wine right now. 

@Bret:
I would really be interested in the nptl results. When you got them, drop them into this bug, will you?

-phoen][x-
Comment 41 Bret Towe 2003-04-12 12:32:31 UTC
id love to know em also :)
so far the computer has had a kernel crash (i thought was due to overheating at first)  3 times now during the glibc complie so ive got a slight delay
im going to attempt to make a binary package of glibc and see if i can get around that problem that way
Comment 42 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-12 17:18:59 UTC
I am using nptl.  I get this backtrace when it tries to build the font metrics:

--------------------------------------------------------------
Building font metrics. This may take some time...
wine: Unhandled exception, starting debugger...
WineDbg starting on pid 8
No debug information in ELF 'wine' ((nil))
Breakpoint 1 at 0x42986040
Loaded debug information from ELF '/usr/lib/wine/lib/libntdll.dll.so' (0x40001000)
No debug information in ELF '/usr/lib/wine/lib/libwine.so.1' (0x400dc000)
No debug information in ELF '/usr/lib/wine/lib/libwine_unicode.so.1' (0x400f3000)
No debug information in ELF '/lib/libnss_compat.so.2' (0x401e7000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/kernel32.dll.so' (0x40533000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/user32.dll.so' (0x405d2000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/gdi32.dll.so' (0x406ff000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/advapi32.dll.so' (0x40779000)
No debug information in ELF '/usr/lib/libfreetype.so.6' (0x407a7000)
Loaded debug information from ELF '/usr/lib/wine/lib/wine/x11drv.dll.so' (0x40802000)
No debug information in ELF '/usr/lib/libGL.so.1' (0x40861000)
No debug information in ELF '/usr/lib/libGLcore.so.1' (0x408ca000)
No debug information in ELF '/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2' (0x401d4000)
No debug information in 32bit DLL 'Z:\space\Installs\Games\Quake3Arena\win32_patches\q3pointrelease_129f_beta.exe' (0x400000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\NTDLL.DLL' (0x40030000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\KERNEL32.DLL' (0x40550000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\ADVAPI32.DLL' (0x40790000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\GDI32.DLL' (0x40710000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\USER32.DLL' (0x405f0000)
No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\X11DRV.DLL' (0x40810000)
Unhandled exception: page fault on read access to 0x00000008 in 32-bit code (0x4083a161).
In 32-bit mode.
0x4083a161 (XFONT_BuildMetrics+0x271 [xfont.c:2152] in x11drv.dll.so): cmpw	$0,0x8(%eax)
Unable to open file /space/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/x11drv/../../graphics/x11drv/xfont.c
Wine-dbg>bt
Backtrace:
=>0 0x4083a161 (XFONT_BuildMetrics+0x271(x_pattern=0x0, res=0x64, x_checksum=0xfade0000, x_count=0x0) [xfont.c:2152] in x11drv.dll.so) (ebp=40522a58)
  1 0x4083bc90 (X11DRV_FONT_InitX11Metrics+0x270 [xfont.c:2956] in x11drv.dll.so) (ebp=40522aa4)
  2 0x4083cab0 (X11DRV_SelectFont+0x3f0(physDev=0x40223670, hfont=0xa2) [xfont.c:3301] in x11drv.dll.so) (ebp=40522b9c)
  3 0x4073f149 (FONT_SelectObject+0xa9(handle=0xa2, obj=0x402030d6, hdc=0x4c) [font.c:440] in gdi32.dll.so) (ebp=40522bb8)
  4 0x40744f50 (SelectObject+0x70(hdc=0x4c, handle=0xa2) [gdiobj.c:1075] in gdi32.dll.so) (ebp=40522bd8)
  5 0x40736b7f (DC_InitDC+0x8f(dc=0x40224ef8) [dc.c:194] in gdi32.dll.so) (ebp=40522bf0)
  6 0x40737910 (CreateDCA+0x150(driver=0x406a02c4, device=0x0, output=0x0, initData=0x0) [dc.c:617] in gdi32.dll.so) (ebp=40522d50)
  7 0x4065dfaa (SYSMETRICS_Init+0x3a [sysmetrics.c:118] in user32.dll.so) (ebp=40522d8c)
  8 0x4068f125 (process_attach+0x65 [user_main.c:232] in user32.dll.so) (ebp=40522da8)
  9 0x4068f31c (USER32.DLL.UserClientDllInitialize+0x2c in user32.dll.so) (ebp=40522db4)
  10 0x40098cea (MODULE_InitDLL+0xea(wm=0x40201e30, type=0x1, lpReserved=0x1) [loader.c:418] in libntdll.dll.so) (ebp=40522e14)
  11 0x40098f18 (MODULE_DllProcessAttach+0x118(wm=0x40201e30, lpReserved=0x1) [loader.c:495] in libntdll.dll.so) (ebp=40522e48)
  12 0x40098f85 (MODULE_DllProcessAttach+0x185(wm=0x0, lpReserved=0x1) [loader.c:488] in libntdll.dll.so) (ebp=40522e7c)
  13 0x40088bd6 (start_process+0x1e6 [process.c:552] in libntdll.dll.so) (ebp=40522f28)
  14 0x4008bf86 (call_on_thread_stack+0x86(func=0x400889f0) [sysdeps.c:171] in libntdll.dll.so) (ebp=40522ff4)
  15 0x4008c15c (SYSDEPS_CallOnStack+0x14 in libntdll.dll.so) (ebp=00000000)

Wine-dbg>
Comment 43 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-12 17:19:28 UTC
Err .. I do not think its related to nptl though ...  any ideas ?
Comment 44 phoen][x 2003-04-12 17:37:25 UTC
This program is quite annoying these days. For every bug you fix, two other pop up - "is that fair?", one might ask. Anyways, lets start the daily debugging.

Martin:

1) Do you use Xfree-4.2.0-r2? Seemant fixed the font-issue in the latest version, iirc - the old xopenfonts-issue looked else, but maybe it'll still do the trick. 

2) Check /var/db/pkg/app-emulation/wine/wine-20020411.ebuild for IUSE="*nptl*". If it's a non-nptl-enabled ebuild, cvs up and remerge wine. Wine should compile "--with-nptl" in its new version. I'm not sure if it's helpful but it doesn't sound too trivial.

Okay, i'm off to bed. Cya later on irc.

-phoen][x-
Comment 45 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-12 18:25:19 UTC
Ok, got the problem.  For some reason xfs died at the first run .. after
restarting it, wine starts :)

What is more .... Neverwinter Nights run!!
Comment 46 phoen][x 2003-04-13 03:11:55 UTC
Hey Martin,

great to hear that. Did i tell you that we (we as in 'the linux community') have a native port of nwn (app-games/nwn, masked due to licensing issues). We even have an app-emulation/nwwine to emulate the nwn toolkit. (Yeah, i committed quite some stuff). 

Should we finally be able to close this bug after ~50 comments? I'll leave it open for a few days.

-phoen][x-
Comment 47 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-13 03:44:08 UTC
Yes, I know, but I had to be able to run wine first, to update it to
1.29 before I could go that route =)
Comment 48 Alex Veber 2003-04-13 11:59:26 UTC
Umm...wtf? Using latest ~x86 with NPTL. 
 
cd `dirname winmm/mcicda/__depend__` && make depend 
make[2]: Entering directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/mcicda' 
../../../tools/makedep -I. -I. -I../../../include -I../../../include  -C. mcicda.c 
make[2]: Leaving directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/mcicda' 
cd `dirname winmm/mciseq/__depend__` && make depend 
make[2]: Entering directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/mciseq' 
../../../tools/makedep -I. -I. -I../../../include -I../../../include  -C. mcimidi.c 
make[2]: Leaving directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/mciseq' 
cd `dirname winmm/mciwave/__depend__` && make depend 
make[2]: Entering directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/mciwave' 
../../../tools/makedep -I. -I. -I../../../include -I../../../include  -C. mciwave.c 
make[2]: Leaving directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/mciwave' 
cd `dirname winmm/midimap/__depend__` && make depend 
make[2]: Entering directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/midimap' 
../../../tools/makedep -I. -I. -I../../../include -I../../../include  -C. midimap.c 
make[2]: Leaving directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/midimap' 
cd `dirname winmm/wavemap/__depend__` && make depend 
make[2]: Entering directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/wavemap' 
../../../tools/makedep -I. -I. -I../../../include -I../../../include  -C. wavemap.c 
make[2]: Leaving directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/wavemap' 
cd `dirname winmm/winealsa/__depend__` && make depend 
make[2]: Entering directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/winealsa' 
../../../tools/makedep -I. -I. -I../../../include -I../../../include  -C. audio.c audio_05.c alsa.c 
make[2]: Leaving directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/winealsa' 
cd `dirname winmm/winearts/__depend__` && make depend 
make[2]: Entering directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/winearts' 
../../../tools/makedep -I. -I. -I../../../include -I../../../include -I/usr/kde/cvs/include/artsc -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -C. arts.c audio.c 
Unknown option '-pthread' 
Usage: ../../../tools/makedep [options] [files] 
Options: 
   -Idir   Search for include files in directory 'dir' 
   -Cdir   Search for source files in directory 'dir' 
   -fxxx   Store output in file 'xxx' (default: Makefile) 
   -sxxx   Use 'xxx' as separator (default: "### Dependencies") 
make[2]: *** [depend] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/wine-20030411/work/wine-20030411/dlls/winmm/winearts' 
make[1]: *** [winmm/winearts/__depend__] Error 2 
make[1]: Leaving directory `/var/tmp/portage/wine-20030411/work/wine-20030411/dlls' 
make: *** [dlls/__depend__] Error 2 
 
!!! ERROR: app-emulation/wine-20030411 failed. 
!!! Function src_compile, Line 60, Exitcode 2 
!!! (no error message) 
 
 
 
Comment 49 phoen][x 2003-04-13 12:05:54 UTC
Hmm, i saw that in #gentoo the other day.

Try to remerge arts please. After that merge wine again.

-phoen][x-
Comment 50 Alex Veber 2003-04-13 12:27:48 UTC
Still breaks, maybe arts from CVS is broken or somthing... 
Comment 51 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-13 14:54:35 UTC
What version gcc ?  I use gcc-3.2.2-r2 ...
Comment 52 Alex Veber 2003-04-13 16:26:21 UTC
gcc version 3.2.2 20030322 (Gentoo Linux 1.4 3.2.2-r2) 
Comment 53 Alex Veber 2003-04-15 19:07:34 UTC
removing -pthread fixes the problem. 
who maintains wine now? 
Comment 54 Martin Holzer (RETIRED) gentoo-dev 2003-04-22 06:13:10 UTC
*** Bug 19346 has been marked as a duplicate of this bug. ***
Comment 55 Philip Walls (RETIRED) gentoo-dev 2003-04-22 14:18:22 UTC
Where exactly did you remove -pthread from?
Comment 56 Seth Chandler 2003-04-22 14:19:13 UTC
were you still building with NPTL? 
Comment 57 Alex Veber 2003-04-22 18:00:06 UTC
I removed -pthread from the Makefile in the winearts dir IIRC. 
yes, still using NPTL. 
wine works perfectly now.  
Comment 58 Philip Walls (RETIRED) gentoo-dev 2003-04-22 23:27:10 UTC
I'm going to have to make a new snapshot of wine cvs to see if it fixes this problem. I think the 'proper' fix is to change -pthread to -lpthread actually, but if it works for you, good enough :)

I'll commit a new ebuild for wine-20030423 tomorrow late afternoon EST. I'll contact you after it's in portage so you can let me know if it solves this issue cleanly.
Comment 59 Alex Veber 2003-04-24 09:20:30 UTC
Dont wate your time, CVS version breaks in the same place.  
Comment 60 Martin Holzer (RETIRED) gentoo-dev 2003-04-30 08:19:22 UTC
*** Bug 20209 has been marked as a duplicate of this bug. ***
Comment 61 Bret Towe 2003-05-10 03:11:22 UTC
might as well aim for 100 comments
wine 20030508 is out
copied over the current ebuild and it works cept i had to change
the src_uri to the old info seems to run fine also
ive only tested on 1 machine due to fact i dont like having to copy
all that stuff over multiple times ;)
Comment 62 Patrick Kursawe (RETIRED) gentoo-dev 2003-05-15 10:27:34 UTC
Well, if the new version looks fine, we should maybe close this one.