compiling wine-1.4 on squeeze-6.0.9 amd64 error

Questions about Wine on Linux
Locked
nHaskin739
Level 1
Level 1
Posts: 8
Joined: Mon May 26, 2014 10:20 am

compiling wine-1.4 on squeeze-6.0.9 amd64 error

Post by nHaskin739 »

I get
/include/winnt.h:28:19: error: ctype.h: No such file or directory
/include/winnt.h:30:20: error: string.h: No such file or directory
/include/objbase.h:288:20: error: stdlib.h: No such file or directory
libc6 in installed not sure what's up.
ctype.h is in /usr/include
string.h is in /usr/include
stdlib.h is in /usr/include/bits

here is the end of ./configure

configure: creating ./config.status
config.status: creating Make.rules
config.status: creating Maketest.rules
config.status: creating dlls/Makedll.rules
config.status: creating dlls/Makeimplib.rules
config.status: creating programs/Makeprog.rules
config.status: creating Make.tmp
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: linking AUTHORS to dlls/shell32/AUTHORS
config.status: linking tools/winewrapper to wine
config.status: executing include/stamp-h commands
config.status: executing dlls/gdi32/dibdrv commands
config.status: executing dlls/gdi32/enhmfdrv commands
config.status: executing dlls/gdi32/mfdrv commands
config.status: executing dlls/kernel32/nls commands
config.status: executing dlls/user32/resources commands
config.status: executing dlls/wineps.drv/data commands
config.status: executing include/wine commands
config.status: executing Makefile commands

configure: libsane 32-bit development files not found, scanners won't be supported.
configure: gstreamer-0.10 base plugins 32-bit development files not found, gstreamer support disabled
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi20 32-bit development files not found, ISDN won't be supported.
configure: libgsm 32-bit development files not found, gsm 06.10 codec won't be supported.

configure: Finished. Do 'make' to compile Wine.

The make errors:

make[1]: Entering directory `/home/feanor17/wine-1.4/dlls/adsiid'
gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -I/usr/include/freetype2 -g -O2 -o adsiid.o adsiid.c
rm -f libadsiid.a
ar rc libadsiid.a adsiid.o
ranlib libadsiid.a
i586-mingw32msvc-gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_CROSSTEST -I/usr/include/freetype2 -g -O2 -o adsiid.cross.o adsiid.c
In file included from ../../include/windef.h:252,
from adsiid.c:23:
../../include/winnt.h:28:19: error: ctype.h: No such file or directory
../../include/winnt.h:30:20: error: string.h: No such file or directory
In file included from ../../include/windows.h:38,
from ../../include/rpc.h:22,
from ../../include/objbase.h:19,
from adsiid.c:24:
../../include/winbase.h: In function ‘lstrlenA’:
../../include/winbase.h:2291: warning: incompatible implicit declaration of built-in function ‘strlen’
../../include/winbase.h: In function ‘lstrcpyA’:
../../include/winbase.h:2303: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../include/winbase.h: In function ‘lstrcatA’:
../../include/winbase.h:2316: warning: incompatible implicit declaration of built-in function ‘strcat’
In file included from adsiid.c:24:
../../include/objbase.h:288:20: error: stdlib.h: No such file or directory
make[1]: *** [adsiid.cross.o] Error 1
make[1]: Leaving directory `/home/feanor17/wine-1.4/dlls/adsiid'
make: *** [dlls/adsiid] Error 2

I have the full make output, I can attach if you want it.
Any ideas, Thanks,
Ned
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Re: compiling wine-1.4 on squeeze-6.0.9 amd64 error

Post by oiaohm »

nHaskin739 is the clue i586-mingw32msvc-gcc this is a cross compiler you are not looking for Linux system ctype.h or string.h

https://packages.debian.org/squeeze/all ... e/filelist

You will be missing mingw32-runtime. Please be doing a regression test. 1.4 wine we don't support any more for production usage. 1.6.x min or take out a bug report to get 1.7.x fixed.

From memory other build issues will turn up in wine 1.4 as well requiring back-porting of particular patches.
nHaskin739
Level 1
Level 1
Posts: 8
Joined: Mon May 26, 2014 10:20 am

Re: compiling wine-1.6.2 on squeeze-6.0.9 amd64 error

Post by nHaskin739 »

Tried Wine-1.6.2 got an error
aptitude was able to install all dependencies from
http://wiki.winehq.org/WineOn64bit#head ... d69286cc54

./tools/wineinstall, parts of configure:

checking for prelink... /usr/sbin/prelink
checking for i686-w64-mingw32-gcc... no
checking for i586-w64-mingw32-gcc... no
checking for i486-w64-mingw32-gcc... no
checking for i386-w64-mingw32-gcc... no
checking for i686-pc-mingw32-gcc... no
checking for i586-pc-mingw32-gcc... no
checking for i486-pc-mingw32-gcc... no
checking for i386-pc-mingw32-gcc... no
checking for i686-mingw32msvc-gcc... no
checking for i586-mingw32msvc-gcc... i586-mingw32msvc-gcc
checking whether i586-mingw32msvc-gcc works... yes
checking for pthread_create... no

checking whether we need to define __i386__... no
configure: creating ./config.status
config.status: creating Make.rules
config.status: creating Maketest.rules
config.status: creating dlls/Makedll.rules
config.status: creating dlls/Makeimplib.rules
config.status: creating programs/Makeprog.rules
config.status: creating Make.tmp
config.status: creating include/config.h
config.status: linking AUTHORS to dlls/shell32/AUTHORS
config.status: linking tools/winewrapper to wine
config.status: executing include/stamp-h commands
config.status: executing dlls/gdi32/dibdrv commands
config.status: executing dlls/gdi32/enhmfdrv commands
config.status: executing dlls/gdi32/mfdrv commands
config.status: executing dlls/kernel32/nls commands
config.status: executing dlls/user32/resources commands
config.status: executing dlls/wineps.drv/data commands
config.status: executing include/wine commands
config.status: executing Makefile commands

configure: libOSMesa 32-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: liblcms2 32-bit development files not found, Color Management won't be supported.
configure: gstreamer-0.10 base plugins 32-bit development files not found, gstreamer support disabled
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libgsm 32-bit development files not found, gsm 06.10 codec won't be supported.

configure: Finished. Do 'make' to compile Wine.

I have libosmesa6-dev 7.7.1-6 installed and ia32 libraries

The make part of wineinstall: got similar errors to 1.4

make errors:
./tools/winebuild/winebuild -m32 -w --def -o dlls/aclui/libaclui.def --export ./dlls/aclui/aclui.spec
./tools/winebuild/winebuild -b i586-mingw32msvc -w --implib -o dlls/aclui/libaclui.cross.a --export ./dlls/aclui/aclui.spec
config.status: creating dlls/activeds/Makefile
make[1]: Entering directory `/home/feanor17/wine-1.6.2/dlls/activeds'
../../tools/makedep -C. -S../.. -T../.. activeds_main.c
make[1]: Leaving directory `/home/feanor17/wine-1.6.2/dlls/activeds'
./tools/winebuild/winebuild -m32 -w --def -o dlls/activeds/libactiveds.def --export ./dlls/activeds/activeds.spec
./tools/winebuild/winebuild -b i586-mingw32msvc -w --implib -o dlls/activeds/libactiveds.cross.a --export ./dlls/activeds/activeds.spec
config.status: creating dlls/adsiid/Makefile
make[1]: Entering directory `/home/feanor17/wine-1.6.2/dlls/adsiid'
../../tools/makedep -xo -xcross.o -C. -S../.. -T../.. adsiid.c
make[1]: Leaving directory `/home/feanor17/wine-1.6.2/dlls/adsiid'
make[1]: Entering directory `/home/feanor17/wine-1.6.2/dlls/adsiid'
gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -gdwarf-2 -fno-omit-frame-pointer -g -O2 -o adsiid.o adsiid.c
rm -f libadsiid.a
ar rc libadsiid.a adsiid.o
ranlib libadsiid.a
i586-mingw32msvc-gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_CROSSTEST -g -O2 -o adsiid.cross.o adsiid.c
In file included from ../../include/windef.h:252,
from adsiid.c:23:
../../include/winnt.h:28:19: error: ctype.h: No such file or directory
../../include/winnt.h:30:20: error: string.h: No such file or directory
In file included from ../../include/windows.h:38,
from ../../include/rpc.h:22,
from ../../include/objbase.h:19,
from adsiid.c:24:
../../include/winbase.h: In function ‘lstrlenA’:
../../include/winbase.h:2384: warning: incompatible implicit declaration of built-in function ‘strlen’
../../include/winbase.h: In function ‘lstrcpyA’:
../../include/winbase.h:2396: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../include/winbase.h: In function ‘lstrcatA’:
../../include/winbase.h:2409: warning: incompatible implicit declaration of built-in function ‘strcat’
In file included from adsiid.c:24:
../../include/objbase.h:247:20: error: stdlib.h: No such file or directory
make[1]: *** [adsiid.cross.o] Error 1
make[1]: Leaving directory `/home/feanor17/wine-1.6.2/dlls/adsiid'
make: *** [dlls/adsiid] Error 2
config.status: creating dlls/acledit/Makefile
make[1]: Entering directory `/home/feanor17/wine-1.6.2/dlls/acledit'
../../tools/makedep -C. -S../.. -T../.. main.c
make[1]: Leaving directory `/home/feanor17/wine-1.6.2/dlls/acledit'
config.status: creating dlls/aclui/Makefile

..............

./tools/winebuild/winebuild -m32 -w --def -o dlls/aclui/libaclui.def --export ./dlls/aclui/aclui.spec
./tools/winebuild/winebuild -b i586-mingw32msvc -w --implib -o dlls/aclui/libaclui.cross.a --export ./dlls/aclui/aclui.spec
./tools/winebuild/winebuild -m32 -w --def -o dlls/activeds/libactiveds.def --export ./dlls/activeds/activeds.spec
./tools/winebuild/winebuild -b i586-mingw32msvc -w --implib -o dlls/activeds/libactiveds.cross.a --export ./dlls/activeds/activeds.spec
make[1]: Entering directory `/home/feanor17/wine-1.6.2/dlls/adsiid'
i586-mingw32msvc-gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_CROSSTEST -g -O2 -o adsiid.cross.o adsiid.c
In file included from ../../include/windef.h:252,
from adsiid.c:23:
../../include/winnt.h:28:19: error: ctype.h: No such file or directory
../../include/winnt.h:30:20: error: string.h: No such file or directory
In file included from ../../include/windows.h:38,
from ../../include/rpc.h:22,
from ../../include/objbase.h:19,
from adsiid.c:24:
../../include/winbase.h: In function ‘lstrlenA’:
../../include/winbase.h:2384: warning: incompatible implicit declaration of built-in function ‘strlen’
../../include/winbase.h: In function ‘lstrcpyA’:
../../include/winbase.h:2396: warning: incompatible implicit declaration of built-in function ‘strcpy’
../../include/winbase.h: In function ‘lstrcatA’:
../../include/winbase.h:2409: warning: incompatible implicit declaration of built-in function ‘strcat’
In file included from adsiid.c:24:
../../include/objbase.h:247:20: error: stdlib.h: No such file or directory
make[1]: *** [adsiid.cross.o] Error 1
make[1]: Leaving directory `/home/feanor17/wine-1.6.2/dlls/adsiid'
make: *** [dlls/adsiid] Error 2

Compilation failed, aborting install.

Ned
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: compiling wine-1.4 on squeeze-6.0.9 amd64 error

Post by spoon0042 »

1. Using wineinstall isn't recommended, I think. You shouldn't need to do anything other than configure, make, make install.
2. configure is still finding i586-mingw32msvc-gcc. If you don't actually need mingw you can uninstall it, otherwise try 'CC=gcc ./configure' or 'CC=i486-linux-gnu-gcc ./configure'.
3. Like it says, your libosmesa may be too old, is there any particular reason you're still running squeeze (and/or trying to build wine 1.4)?
nHaskin739
Level 1
Level 1
Posts: 8
Joined: Mon May 26, 2014 10:20 am

Re: compiling wine-1.6.2 on squeeze-6.0.9 amd64 error

Post by nHaskin739 »

I did take your advice and the 2nd compile is wine-1.6.2
I will remove i586-mingw32msvc-gcc and see what happens.
I guess I'm just hosed on the mesa. Not planing on running games anyway.
And compile using ./configure, make & make install
The readme still tells you to use wineinstall.

I am still using Squeeze, because I don't like gnome3 and it is missing some functions in its icon based gui that I depend on. Mate isn't quite there yet, I can get by using the cl to get it all done. Its just slower than a right click menu.
I guess, I can always try KDE again, didn't like it when I tried it in 05.
I did update pam to use blowfish, so squeeze more secure.
nHaskin739
Level 1
Level 1
Posts: 8
Joined: Mon May 26, 2014 10:20 am

Re: compiling wine-1.4 on squeeze-6.0.9 amd64 error

Post by nHaskin739 »

I got wine-1.6.2 to compile :D
Question, I opened notepad.exe just to get wine to configure itself.
And it said I needed mono, that it could download it, but recommended that I use my package manager.
I put mono in aptitude and there is a ton of stuff with mono in its name.
What specificity do I need? I have the mono-runtime, mono-gac, mono-2.0-gac, libmono-cairo2.0-cil, ....
All installed before I compiled wine.

Thanks,
Ned
nHaskin739
Level 1
Level 1
Posts: 8
Joined: Mon May 26, 2014 10:20 am

Re: compiling wine-1.4 on squeeze-6.0.9 amd64

Post by nHaskin739 »

BTW, there is a bunch of icon fixme's and a few errors.
wine-1.6.2$ wine notepad.exe
fixme:shell:ISF_NetworkPlaces_fnParseDisplayName not implemented for L"\\\\?\\unix\\home\\feanor17\\.local\\share\\icons\\hicolor\\48x48\\apps\\AFFF_iexplore.0.png"
......................
fixme:shell:ISF_NetworkPlaces_fnParseDisplayName not implemented for L"\\\\?\\unix\\home\\feanor17\\.local\\share\\icons\\hicolor\\256x256\\apps\\AFFF_iexplore.0.png"
err:setupapi:create_dest_file failed to create L"C:\\windows\\system32\\shlwapi.dll" (error=80)
......................
fixme:shell:ISF_NetworkPlaces_fnParseDisplayName not implemented for L"\\\\?\\unix\\home\\feanor17\\.local\\share\\icons\\hicolor\\256x256\\apps\\2EF4_wordpad.0.png"
err:ole:CoCreateInstance apartment not initialised
..........................
fixme:shell:ISF_NetworkPlaces_fnParseDisplayName not implemented for L"\\\\?\\unix\\home\\feanor17\\.local\\share\\icons\\hicolor\\48x48\\apps\\7765_winebrowser.0.png"
err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\windows\\system32\\msdatsrc.tlb" failed with error 1006
Native IE detected, not doing registration
wine: configuration in '/home/feanor17/.wine' has been updated.
notepad did open.

winecfg had the same icon fixme's plus
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded

winecfg did open and work.

Also sound doesn't work. Trying all the options in winecfg didn't work.

Thanks,
Ned
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: compiling wine-1.4 on squeeze-6.0.9 amd64 error

Post by dimesio »

nHaskin739 wrote: What specificity do I need? I have the mono-runtime, mono-gac, mono-2.0-gac, libmono-cairo2.0-cil, ....
None of those. What you need is wine-mono. I don't know if Debian packages it; if they don't, install it manually. http://wiki.winehq.org/Mono
nHaskin739
Level 1
Level 1
Posts: 8
Joined: Mon May 26, 2014 10:20 am

Re: compiling wine-1.4 on squeeze-6.0.9 amd64 error

Post by nHaskin739 »

Thanks, installing wine-mono right now.
On the sound, pcm was muted for some reason. :oops:

Thanks,
Ned
Locked