[Bug 1310] Compile error. CVS. library/ldt.c

Wine Bugs wine-bugs at winehq.com
Sun Jun 22 10:34:10 CDT 2003


http://bugs.winehq.com/show_bug.cgi?id=1310





------- Additional Comments From fsteinel at flonet.net  2003-22-06 10:34 -------
Bug comments restored from Gmane.org: 
 
[root at cobra wine]# make
make[1]: Entering directory `/usr/src/wine-cvs/wine/library'
gcc -c -I. -I. -I../include -I../include  -g -O2 -Wall
-mpreferred-stack-boundary=2 -gstabs+ -Wpointer-arith  -fPIC -D__WINESRC__
-DDLLDIR="\"/usr/local/lib/wine\"" -D_REENTRANT -o ldt.o ldt.c
ldt.c: In function `set_thread_area':
ldt.c:97: `__NR_set_thread_area' undeclared (first use in this function)
ldt.c:97: (Each undeclared identifier is reported only once
ldt.c:97: for each function it appears in.)
make[1]: *** [ldt.o] Error 1
make[1]: Leaving directory `/usr/src/wine-cvs/wine/library'
make: *** [library] Error 2


------- Additional Comments From andi <at> rhlx01.fht-esslingen.de  2003-03-05
07:38 -------
I really don't see why you should get such an error.
In line 97 in CVS, there's SYS_set_thread_area, NOT __NR_set_thread_area.

Or try:

cd /usr/include
find|xargs grep __NR_set_thread_area

to hopefully get some more clue on why exactly this error happens :-\
(perhaps SYS_set_thread_area is defined as __NR_set_thread_area somewhere in
/usr/include)


------- Additional Comments From ivg2 <at> cornell.edu  2003-03-05 07:50 -------
I was slightly puzzled myself, but here it is:

[phantom at cobra include]$ find|xargs grep __NR_set_thread_area
./bits/syscall.h:#define SYS_set_thread_area __NR_set_thread_area
[phantom at cobra include]$ cd /usr/src/wine-cvs/wine/library
[phantom at cobra library]$ grep syscall.h ldt.c
# include <sys/syscall.h>
[phantom at cobra library]$ grep syscall.h /usr/include/sys/syscall.h
   we scan the kernel's list and produce <bits/syscall.h> with macros for
# include <bits/syscall.h>
[phantom at cobra library]$ 


------- Additional Comments From julliard <at> winehq.com  2003-03-05 12:00 -------
The __NR_ one should be defined in asm/unistd.h. Is your asm directory a link
to some old kernel source by any chance?  And what's your glibc version?


------- Additional Comments From ivg2 <at> cornell.edu  2003-03-05 12:31 -------
Very strange..
My glibc-kernheaders RPM somehow ended up being newer than Rawhide,
even though I upgrade from Rawhide. I downgraded to current Rawhide, 
and the problem is fixed (__NR_set_thread_area is in asm/unistd.h for that
version of the glibc headers, wine compiles..)

Thanks for your help.
Sorry for invalid report.


------- Additional Comments From dpaun <at> rogers.com  2003-03-25 17:38 -------
Looks like it's ready to be CLOSED.

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list