LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2004, 06:45 AM   #1
garfield81
LQ Newbie
 
Registered: Aug 2004
Location: Leipzig
Distribution: gentoo
Posts: 9

Rep: Reputation: 0
winex compilation failure


I was trying to compile winex3.3 from cvs:
./configure --with-x --disable-trace --enable-opengl --disable-debug
make depend && make

with the following result:

oaidl_p.c:11043: warning: missing braces around initializer
oaidl_p.c:11043: warning: (near initialization for `_ITypeFactoryStubVtbl.header')
oaidl_p.c:11074: warning: ignoring #pragma data_seg
oaidl_p.c:11081: warning: initialization from incompatible pointer type
oaidl_p.c:11082: warning: initialization from incompatible pointer type
oaidl_p.c:11083: warning: initialization from incompatible pointer type
oaidl_p.c:11084: warning: initialization from incompatible pointer type
oaidl_p.c:11087: warning: initialization from incompatible pointer type
oaidl_p.c:11088: warning: initialization from incompatible pointer type
oaidl_p.c:11089: warning: initialization from incompatible pointer type
oaidl_p.c:11090: warning: initialization from incompatible pointer type
oaidl_p.c:11093: warning: initialization from incompatible pointer type
oaidl_p.c:11094: warning: initialization from incompatible pointer type
oaidl_p.c:11095: warning: initialization from incompatible pointer type
oaidl_p.c:11096: warning: initialization from incompatible pointer type
oaidl_p.c:13406: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13407: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13408: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13409: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13410: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13411: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13412: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13413: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13414: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13415: warning: dereferencing type-punned pointer will break strict-aliasing rules
oaidl_p.c:13416: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [oaidl_p.o] Error 1
make[2]: Leaving directory `/mnt/data/sys/cvs/winex/winex3.2/winex/dlls/oleaut32'
make[1]: *** [oleaut32/liboleaut32.so] Error 2
make[1]: Leaving directory `/mnt/data/sys/cvs/winex/winex3.2/winex/dlls'
make: *** [dlls] Error 2


When I tried to install winex3.1 the same error occured
thanx for help, garfield81
 
Old 08-26-2004, 07:17 AM   #2
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
I've seen this error on another forum (Bioware's NWN Linux forum) Im reluctant to link directly to that forum, as some forum moderators frown on such practises. In any case, you need a patch to fix this.

You can find the patch here.

http://home.woh.rr.com/nwmovies/oaidl_p.c.patch

HTH

Mad.
 
Old 08-26-2004, 08:05 AM   #3
garfield81
LQ Newbie
 
Registered: Aug 2004
Location: Leipzig
Distribution: gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
can you tell me how i install winex with this patch,
Or just send me alink with the thread?

Thanx, garfield
 
Old 08-26-2004, 08:39 AM   #4
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Sent you the link.


to apply the patch, save that link as oaidl_p.c.patch in the same directory as the oaidl_p.c file

open a terminal, cd to the directory containing oaidl_p.c

and type

Code:
patch -p0 < oaidl_p.c.patch
then re-run make.

HTH

Mad.
 
Old 08-26-2004, 09:44 AM   #5
garfield81
LQ Newbie
 
Registered: Aug 2004
Location: Leipzig
Distribution: gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for help,
I could solve this problem by apllying to that patch,
but now I get after make depend && make:

audio.c:465: error: too few arguments to function `snd_pcm_hw_params_get_channels_max'
audio.c: In function `wodPlayer_DSPWait':
audio.c:708: error: too few arguments to function `snd_pcm_hw_params_get_period_time'
audio.c: In function `wodOpen':
audio.c:1110: warning: passing arg 3 of `snd_pcm_hw_params_set_buffer_size_near' makes pointer from integer without a cast
audio.c:1111: error: too few arguments to function `snd_pcm_hw_params_get_buffer_size'
audio.c:1113: warning: passing arg 3 of `snd_pcm_hw_params_set_period_size_near' makes pointer from integer without a cast
audio.c:1114: error: too few arguments to function `snd_pcm_hw_params_get_period_size'
audio.c:1116: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast
audio.c: In function `DSDB_MMAPCopy':
audio.c:1629: error: too few arguments to function `snd_pcm_hw_params_get_channels'
audio.c:1630: error: too few arguments to function `snd_pcm_hw_params_get_format'
audio.c:1631: error: too few arguments to function `snd_pcm_hw_params_get_period_size'
audio.c:1624: warning: unused variable `state'
audio.c: In function `DSDB_CreateMMAP':
audio.c:1673: error: too few arguments to function `snd_pcm_hw_params_get_format'
audio.c:1674: error: too few arguments to function `snd_pcm_hw_params_get_buffer_size'
audio.c:1675: error: too few arguments to function `snd_pcm_hw_params_get_channels'
audio.c: In function `IDsDriverBufferImpl_GetPosition':
audio.c:1817: error: too few arguments to function `snd_pcm_hw_params_get_period_size'
audio.c: At top level:
audio.c:142: warning: `wodPlayerCmdString' defined but not used
make[2]: *** [audio.o] Error 1
make[2]: Leaving directory `/mnt/data/sys/cvs/winex/winex3.1/winex/dlls/winmm/winealsa'
make[1]: *** [winmm/winealsa/libwinealsa.drv.so] Error 2
make[1]: Leaving directory `/mnt/data/sys/cvs/winex/winex3.1/winex/dlls'
make: *** [dlls] Error 2

I googled a little bit for that. All I found were people who could solve this prob by just repeating their steps, but that didnt work for me.

Thanks
 
Old 08-26-2004, 10:59 AM   #6
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
From what google tells me this is caused by winex 3.1 trying to use an old alsa API. Since you're running gentoo I suspect you have the newer alsa API

Try editing /mnt/data/sys/cvs/winex/winex3.1/winex/dlls/winmm/winealsa/alsa.h and modify as follows

Before

Code:
#include <alsa/asoundlib.h>

After

Code:
#define ALSA_PCM_OLD_HW_PARAMS_API
#define ALSA_PCM_OLD_SW_PARAMS_API
#include <alsa/asoundlib.h>

then re-run make

HTH

Mad.
 
Old 08-27-2004, 02:28 PM   #7
garfield81
LQ Newbie
 
Registered: Aug 2004
Location: Leipzig
Distribution: gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
Thanx for your help, i solved the compilation problems this way.
But after testing my winex installation this happens:
wine --winver win98 gta3.exe
err:file:GetOverlappedResult lpOverlapped->hEvent was null
err:module:BUILTIN_LoadModule loaded .so but dll joystick.drv still not found
err:module:BUILTIN_LoadModule loaded .so but dll joystick.drv still not found
fixme:dialog:MSGBOX_OnInit task modal msgbox ! Not modal yet.
tid 7500 received signal 15. Raising signal 3
Quit

I got no idea no idea whats this all about
garfield

PS: here's my .wine/config

WINE REGISTRY Version 2



[Drive C]
"Path" = "/mnt/local/fake_windows"
"Type" = "hd"
"Label" = "/mnt/local/fake_windows"
"Filesystem" = "win95"

[Drive M]
"Type" = "cdrom"
"Path" = "/mnt/dvd"
"Label" = "/mnt/dvd"
"FS" = "win95"
"Device" = "/dev/cdroms/../ide/host0/bus1/target0/lun0/cd"

[Drive N]
"Type" = "cdrom"
"Path" = "/mnt/cdrom"
"Label" = "/mnt/cdrom"
"FS" = "win95"
"Device" = "/dev/cdroms/../ide/host0/bus1/target1/lun0/cd"

[Drive X]
"Type" = "hd"
"Path" = "/tmp"
"Label" = "Tmp Drive"
"FS" = "win95"

[Drive Y]
"Type" = "network"
"Path" = "${HOME}"
"Label" = "Home"
"FS" = "win95"

[Drive Z]
"Type" = "network"
"Path" = "/"
"Label" = "Root"
"FS" = "win95"

[wine]
"Windows" = "C:\\Windows"
"System" = "C:\\Windows\\System"
"Temp" = "X:\\"
"Path" = "C:\\Windows;C:\\Windows\\System;X:\\;Y:\\"
"GraphicsDriver" = "x11drv"
; Wine doesn't pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs that do recursive lookups of a whole
; subdir tree in case of a symlink pointing back to itself.
;"ShowDirSymlinks" = "1"
"ShellLinker" = "wineshelllink"

# <wineconf>

[DllOverrides]
; default for all other dlls
"*" = "builtin, native, so"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "16"
; Name of X11 display to use
;;"Display" = ":0.0"
; Allow the window manager to manage created windows
"Managed" = "Y"
; Use a desktop window of 640x480 for Wine
"Desktop" = "N"
; Use XFree86 DGA extension if present
; (make sure /dev/mem is accessible by you !)
"UseDGA" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "Y"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "Y"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous" = "Y"

[fonts]
;Read documentation/fonts before adding aliases
;See a couple of examples for russian users below
"Resolution" = "96"
"Default" = "-adobe-helvetica-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-adobe-times-"
"DefaultSansSerif" = "-adobe-helvetica-"



[serialports]
"Com1" = "/dev/ttyS0"
"Com2" = "/dev/ttyS1"

[parallelports]
"Lpt1" = "/dev/lp0"

[spooler]
"LPT1:" = "|lpr"
"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
"LPT3:" = "/dev/lp3"

[ports]
;"read" = "0x779,0x379,0x280-0x2a0"
; "write" = "0x779,0x379,0x280-0x2a0"

[spy]
"Exclude" = "WM_SIZE;WM_TIMER;"

[registry]
;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "Y"
; TRY to write all changes to home registries
"WritetoHomeRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; "PeriodicSave" = "600"
; Save only modified keys
"SaveOnlyUpdatedKeys" = "Y"

[Tweak.Layout]
;; supported styles are 'Win31'(default), 'Win95', 'Win98'
"WineLook" = "Win95"

[Console]
;"Drivers" = "tty"
;"XtermProg" = "nxterm"
;"InitialRows" = "25"
;"InitialColumns" = "80"
;"TerminalType" = "nxterm"

[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"

; List of all directories directly contain .AFM files

[afmdirs]
"1" = "/usr/share/ghostscript/fonts"
"2" = "/usr/share/a2ps/afm"
"3" = "/usr/share/enscript"
"4" = "/usr/X11R6/lib/X11/fonts/Type1"

[WinMM]
"Drivers" = "wineoss.drv"
"WaveMapper" = "msacm.drv"
"MidiMapper" = "midimap.drv"

# </wineconf>

#########################################
# Application dependent sections follow #
#########################################

[AppDefaults\\_INS5576._MP\\x11drv]
; Lotus Notes R5 installer
; I'm quite not sure this will run on some other machine than mine, but it
; can't hurt
"Managed" = "N"
"Desktop" = "N"

[AppDefaults\\nlnotes.exe\\x11drv]
"Desktop" = "800x600"

"Managed" = "N"

[AppDefaults\\notes.exe\\DllOverrides]
"msvcrt" = "native"
"msvcrt40" = "native"
"crtdll" = "native"
"imagehlp" = "native"
"rnaph" = "native"

[AppDefaults\\nlnotes.exe\\DllOverrides]
"msvcrt" = "native"
"msvcrt40" = "native"
"crtdll" = "native"
"imagehlp" = "native"
"rnaph" = "native"

[AppDefaults\\nhldaemn.exe\\DllOverrides]
"msvcrt" = "native"
"msvcrt40" = "native"
"crtdll" = "native"
"imagehlp" = "native"
"rnaph" = "native"
 
Old 08-27-2004, 02:37 PM   #8
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Hi, I read above and don't understand. I contacted (whatever company makes cedega/winex, can't remember the name right now) asking for a demo and they told me to compile the source code to see if i like it. Where do I get this code from?
 
Old 08-27-2004, 02:46 PM   #9
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
I dont have gta3 but maybe this link will help

http://www.linux-gamers.net/modules/...p?articleid=11

Mad.
 
Old 08-27-2004, 02:59 PM   #10
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
@ rm6990

This link should get you started.

http://www.transgaming.com/license.php?source=1

Mad.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compilation -- quiet failure rhoyerboat Linux - Software 1 09-13-2005 03:03 AM
mplayerplugin: compilation failure kaon Slackware 18 09-02-2005 05:50 AM
mono compilation failure tamtam Programming 1 04-16-2005 07:33 AM
winex compilation problems PsychoFarmer Linux - Software 20 08-06-2003 12:46 PM
Problem with compilation of WineX Kristoffer Slackware 7 03-08-2003 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration