Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
winex: undefined symbol
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
therjak
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 79

PostPosted: Thu Mar 27, 2003 11:48 pm    Post subject: winex: undefined symbol Reply with quote

i installed winex without errors but winex -debugmsg +all any.exe tells me i got an undefined symbol CreateSemaphoreA in advapi32.dll (libadvapi32.so) and quits. (user32 needs gdi32 needs advapi32). i even tried using a native advapi32.dll having just a lot more trouble. using winex-cvs(3) i got the same error. i even tried an emerge -e winex (after i unmerged winex). any ideas?

(glibc 2.3.1, gcc 3.2.2, cflags: athlon-xp -O3 -fomit-frame-pointer -pipe)
Back to top
View user's profile Send private message
peerkoel
n00b
n00b


Joined: 28 Mar 2003
Posts: 7

PostPosted: Fri Mar 28, 2003 5:23 pm    Post subject: Reply with quote

I tried to emerge winex (source) but it fails. :cry:
error msg:

gcc -c -I. -I. -I../include -I../include -g -O2 -Wall -mpreferred-stack-boundary=2 -D__WINE__ -DNO_DEBUG_MSGS -DNO_TRACE_MSGS -D_REENTRANT -I/usr/X11R6/include -o main.o main.c
ld -r wine.spec.o main.o -o miscemu.o
make[1]: Leaving directory `/var/tmp/portage/winex-20021123/work/wine/miscemu'
gcc -o wine miscemu/miscemu.o -L./dlls -lntdll -L./library -lwine -L./unicode -lwine_unicode -lm
./library/libwine.so: undefined reference to `errno'
./library/libwine.so: undefined reference to `h_errno'
collect2: ld returned 1 exit status
make: *** [wine] Error 1

!!! ERROR: app-emulation/winex-20021123 failed.
!!! Function src_compile, Line 69, Exitcode 2
!!! make depend all failed

make.conf:

USE="X gtk gnome acpi arts alsa avi cdr crypt cups dga fbcon gd gif gpm imap jpeg kde mysql ncurses nls oggvorbis opengl perl png qt sdl slang ssl tcpd truetype usb xmms"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"

Hints? Bug perhaps? Misconfig?
Back to top
View user's profile Send private message
therjak
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 79

PostPosted: Fri Mar 28, 2003 6:33 pm    Post subject: Reply with quote

your problem with errno is connectet wirth glibc 2.3.2 having it defined in an other way. you have to define it somehow for "older" builds. it's described somewher in these formums.
Back to top
View user's profile Send private message
c0bblers
Guru
Guru


Joined: 28 Mar 2003
Posts: 403

PostPosted: Fri Mar 28, 2003 11:33 pm    Post subject: Winex 3.0 Reply with quote

Hi there,
I get a whole bunch of undefined symbol errors with both the new winex snapshot and winex from CVS, including the CreateSemaphoreA one you mention and LoadAcceleratorsA and a few more too depending on what I try doing. If anyone has any ideas on this.......

Thanks
James Lademann
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Mon Mar 31, 2003 4:42 pm    Post subject: Reply with quote

AFter setting the debugmsg correct I found out I have the same error running Sof2.
Quote:
91 - 080768d0:trace:module:MODULE_LoadLibraryExA Trying built-in 'C:\WINDOWS\SYSTEM\ADVAPI32.dll'
080768d0: create_semaphore( initial=00000000, max=0000ffff, inherit=0, name=L"" )
080768d0: create_semaphore() = 0 { handle=40 }
080768d0: create_semaphore( initial=00000000, max=0000ffff, inherit=0, name=L"" )
080768d0: create_semaphore() = 0 { handle=44 }
92 - 080768d0:err:module:BUILTIN32_dlopen failed to load .so lib for builtin advapi32.dll: /usr/lib/winex/lib/libadvapi32.so: undefined symbol: CreateSemaphoreA
92 - 080768d0:warn:module:MODULE_LoadLibraryExA Failed to load module 'C:\WINDOWS\SYSTEM\ADVAPI32.dll'; error=2
92 - 080768d0:err:module:PE_fixup_imports Module (file) ADVAPI32.dll (which is needed by G:\Games\SOF2\SoF2.exe) not found
080768d0: terminate_process( handle=-1, exit_code=2 )
080768d0: terminate_process() = 0 { self=1 }


This is where advapi32 is loaded and it dies because of the undefined symboll
Back to top
View user's profile Send private message
xaelis
n00b
n00b


Joined: 07 Jan 2003
Posts: 11

PostPosted: Fri Apr 04, 2003 8:58 am    Post subject: Reply with quote

I have exactly the same error :!:
I sought a solution on the forum of transgaming, but I did not find :(

Somebody already solved the problem?
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Fri Apr 04, 2003 7:11 pm    Post subject: Reply with quote

Nope, I've been working on it for a while even adjusting the source of winex but always that same error.
It seems to be a Gentoo only problem because I haven't been able to find anything similar online :(
Back to top
View user's profile Send private message
R-Type
n00b
n00b


Joined: 22 Sep 2002
Posts: 62

PostPosted: Sun Apr 06, 2003 8:57 am    Post subject: Reply with quote

A few thoughts..
Back a week or so, by luck, I managed to pull a version from cvs (3 pre 1) that worked fine for me....then I made the mistake of reemerging it....and now I get that advapi32 undef symbol error and/or ole32 NdrOleAllocate error. Unfortunately, in the process of upgrading, my gcc, glibc and other libs changed several times. Try merging combinations of old gcc 3.2.2 ebuilds and glibc-2.3.1. Hell, try the icc compiler and see if that makes the problem go away.

I had similar errors with the older snapshots of winex as well (20020329 and 20020219, which both worked for me way back) so I think the problem is with the linker <-->buildscript/makefile interaction somewhere and not winex itself.

Btw, if any of you try this and stumble on a combo that works, post your results :).
Back to top
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Wed Apr 09, 2003 10:32 pm    Post subject: Reply with quote

I finally found it :)
binutils-2.13.90.0.20 is the package that breaks winex
I know use 2.13.90.0.18 in combination with glibc-2.3.1-r4

I don't know if it works with glibc-2.3.2 but you'll figure that out by yourself ;)
Back to top
View user's profile Send private message
R-Type
n00b
n00b


Joined: 22 Sep 2002
Posts: 62

PostPosted: Wed Apr 09, 2003 10:53 pm    Post subject: Reply with quote

Sweet I'll have to try downgrading my binutils. Hopefully that won't break much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum