cannot compile wine 1.3.28

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
melancholy
Level 2
Level 2
Posts: 39
Joined: Sun Sep 11, 2011 3:12 pm

cannot compile wine 1.3.28

Post by melancholy »

hi, I'm trying to compile the current wine source, but there's always the following error:

Code: Select all

config.status: creating tools/Makefile
make[1]: Entering directory `/home/yuki/archive/wine-1.3.28/tools'
gcc -m32 -c -I. -I. -I../include -I../include -I/usr/include/freetype2 -D__WINESRC__   -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op  -g -O2  -o makedep.o makedep.c
In file included from /usr/include/bits/errno.h:25:0,
                 from /usr/include/errno.h:36,
                 from makedep.c:27:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make[1]: *** [makedep.o] Error 1
make[1]: Leaving directory `/home/user1/wine-1.3.28/tools'
make: *** [tools/Makefile] Error 2
I'm using debian testing (64bit) and also checked if all dependencies are installed correctly...

please help..
melancholy
Level 2
Level 2
Posts: 39
Joined: Sun Sep 11, 2011 3:12 pm

Post by melancholy »

ugh, the output above is faulty, this one is the correct one:

Code: Select all

config.status: creating tools/Makefile
make[1]: Entering directory `/home/yuki/archive/wine-1.3.28/tools'
gcc -m32 -c -I. -I. -I../include -I../include -I/usr/include/freetype2 -D__WINESRC__   -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op  -g -O2  -o makedep.o makedep.c
In file included from /usr/include/bits/errno.h:25:0,
                 from /usr/include/errno.h:36,
                 from makedep.c:27:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make[1]: *** [makedep.o] Error 1
make[1]: Leaving directory `/home/yuki/archive/wine-1.3.28/tools'
make: *** [tools/Makefile] Error 2
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

cannot compile wine 1.3.28

Post by dardack »

On Sun, Sep 11, 2011 at 4:17 PM, melancholy <[email protected]>wrote:
ugh, the output above is faulty, this one is the correct one:

Code:
config.status: creating tools/Makefile
make[1]: Entering directory `/home/yuki/archive/wine-1.3.28/tools'
gcc -m32 -c -I. -I. -I../include -I../include -I/usr/include/freetype2
-D__WINESRC__ -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits
-Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -g
-O2 -o makedep.o makedep.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from makedep.c:27:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or
directory
compilation terminated.
make[1]: *** [makedep.o] Error 1
make[1]: Leaving directory `/home/yuki/archive/wine-1.3.28/tools'
make: *** [tools/Makefile] Error 2



That that means you don't have the linux-headers installed? I could be
mistaken.



--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

cannot compile wine 1.3.28

Post by dardack »

Sigh ignore that, it's glibc headers. Is libc-dev installed or glibc-dev,
and ther ewas a bug like 5 months ago in debian I believe that caused that
directory to be empty.

On Sun, Sep 11, 2011 at 4:51 PM, MacNean Tyrrell <[email protected]> wrote:

On Sun, Sep 11, 2011 at 4:17 PM, melancholy <[email protected]>wrote:
ugh, the output above is faulty, this one is the correct one:

Code:
config.status: creating tools/Makefile
make[1]: Entering directory `/home/yuki/archive/wine-1.3.28/tools'
gcc -m32 -c -I. -I. -I../include -I../include -I/usr/include/freetype2
-D__WINESRC__ -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits
-Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -g
-O2 -o makedep.o makedep.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from makedep.c:27:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or
directory
compilation terminated.
make[1]: *** [makedep.o] Error 1
make[1]: Leaving directory `/home/yuki/archive/wine-1.3.28/tools'
make: *** [tools/Makefile] Error 2



That that means you don't have the linux-headers installed? I could be
mistaken.



--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
Martin Gregorie

cannot compile wine 1.3.28

Post by Martin Gregorie »

On Sun, 2011-09-11 at 15:17 -0500, melancholy wrote:
ugh, the output above is faulty, this one is the correct one:

Code:
config.status: creating tools/Makefile
make[1]: Entering directory `/home/yuki/archive/wine-1.3.28/tools'
gcc -m32 -c -I. -I. -I../include -I../include -I/usr/include/freetype2 -D__WINESRC__ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -g -O2 -o makedep.o makedep.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from makedep.c:27:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make[1]: *** [makedep.o] Error 1
make[1]: Leaving directory `/home/yuki/archive/wine-1.3.28/tools'
make: *** [tools/Makefile] Error 2
This means that either:
- one of the gcc packages is missing /usr/include/asm/error.h
- your gcc package install/upgrade went wrong.

Either way its a problem to resolve with your distro, not Wine: with
that file missing or misplaced attempts to compile almost any C program
will fail.

Make sure your Linux installation is fully up to date and, if that
doesn't fix it, ask your distro's forums and/or support system.

Martin
melancholy
Level 2
Level 2
Posts: 39
Joined: Sun Sep 11, 2011 3:12 pm

Post by melancholy »

ok, thank you for the answers, this will help in solving this ^^
melancholy
Level 2
Level 2
Posts: 39
Joined: Sun Sep 11, 2011 3:12 pm

Post by melancholy »

ok, I could fix the problem with gcc by creating symlinks, but now, compiling wine results in the following error in the make process:

Code: Select all

ldt.c: In function ‘modify_ldt’:
ldt.c:73:21: error: ‘__NR_modify_ldt’ undeclared (first use in this function)
ldt.c:73:21: note: each undeclared identifier is reported only once for each function it appears in
ldt.c:74:1: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [ldt.o] Error 1
make[1]: Leaving directory `/home/yuki/archive/wine-1.3.28/libs/wine'
make: *** [libs/wine] Error 2
I googled that, but couldn't find anything...
Martin Gregorie

cannot compile wine 1.3.28

Post by Martin Gregorie »

On Mon, 2011-09-12 at 15:12 -0500, melancholy wrote:
ok, I could fix the problem with gcc by creating symlinks, but now, compiling wine results in the following error in the make process:

Code:
ldt.c: In function modify_ldt:
ldt.c:73:21: error: __NR_modify_ldt undeclared (first use in this function)
ldt.c:73:21: note: each undeclared identifier is reported only once for each function it appears in
ldt.c:74:1: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [ldt.o] Error 1
make[1]: Leaving directory `/home/yuki/archive/wine-1.3.28/libs/wine'
make: *** [libs/wine] Error 2

I googled that, but couldn't find anything...
That looks as though you're missing a C header file.

What does "grep -r __NR_modify_ldt *" show if you run it from the from
the same directory you used to run gcc?

Martin
melancholy
Level 2
Level 2
Posts: 39
Joined: Sun Sep 11, 2011 3:12 pm

Post by melancholy »

this is weird, grep shows nothing...

Code: Select all

~/archive/wine-1.3.28$ grep -r __NR_modify_ldt *
~/archive/wine-1.3.28$ 
I varied __NR_modify_ldt as well to see if it can find something then, but nothing...
Martin Gregorie

cannot compile wine 1.3.28

Post by Martin Gregorie »

On Mon, 2011-09-12 at 17:45 -0500, melancholy wrote:
this is weird, grep shows nothing...


Code:
~/archive/wine-1.3.28$ grep -r __NR_modify_ldt *
~/archive/wine-1.3.28$

I varied __NR_modify_ldt as well to see if it can find something then, but nothing...
Thats really odd: it should at least have found the use of the symbol
that caused gcc to say its undefined.

If you have the downloaded 1.3.28 archive somewhere and in a form where
you can unpack it in some different directory, do so and run grep
against it there to see if you accidentally blitzed something. Failing
that, find the source file(s) that use the __NR_modify_ldt symbol use
them as a guide to finding where its defined, which should either be in
the same source file or in one of the #included header files. Apart from
it simply being omitted by mistake (unlikely in published code, but odd
things do happen) the main possibilities are:

- its defined in a header that used to be #included and isn't
now for some reason

- its defined in a conditionally included code section (delimited by
#ifdef ... #endif preprocessor directives) and the #ifdef evaluates as
false. This is usually the result of 'configure' misbehaving or simply
not having been run after the source archive was unpacked.

Sorry I can't be more explicit, but I don't compile Wine myself: the
programs I use it with have by and large just worked apart from
installing VB runtimes with winetricks. I'm just reminding you what
usually causes this type of error and saying how I usually go about
tracking down this sort of problem.

Martin
Locked