Autocad 2006 does not start

Questions about Wine on Linux
Locked
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Autocad 2006 does not start

Post by etwineb »

Code: Select all

 % uname -a
Linux slyrogue 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64 GNU/Linux
% wine --version
wine-1.7.33
According to the appdb Autocad2006 should work fairly well... but I get a different experience.

Following the instructions, I created a clean sandboxed 32bit wineprefix with no mono* and installed dotnet20 in it with winetricks.
Then I can install Autocad2006 (It is not probably relevant, but I skip its installation of dotnet since it would install the broken 1.1)


However when I start acad.exe I get this

Code: Select all

wine: Call from 0x7b83a9fc to unimplemented function msvcp70.dll.??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z, aborting
err:module:attach_process_dlls "ac1st16.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\AutoCAD 2006\\acad.exe" failed, status 80000100
I does not really look like a wine error, still I have no idea of what do... Any insight? What can I try?



*using WINEDLLOVERRIDES="mscoree="
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Autocad 2006 does not start

Post by dimesio »

etwineb wrote: *using WINEDLLOVERRIDES="mscoree="
Why? That will disable mono/.NET altogether. If you installed dotnet20 with winetricks, winetricks would have set the correct overrides for you.
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Re: Autocad 2006 does not start

Post by etwineb »

According to appdb Autocad2006 needs dotnet20 and it does not work with mono. And wine does not like to have both mono and dotnet installed (it is stated in appdb dotnet page).

I create a different wineprefix for each application and when I need to install dotnet I ask wine to avoid to install mono, to do so when I create the prefix I use the override:

Code: Select all

$ export WINEPREFIX=/so/and/so/
$ WINEDLLOVERRIDES="mscoree=" wineboot -u
and later I install dotnet:

Code: Select all

$ WINEPREFIX=/so/and/so/ bash
$ winetricks -q dotnet20
$ #install autocad
winetricks works correctly and even outputs something on the line of "Mono does not appear to be installed"


Anyhow, msvcp70.dll is not related to dotnet... isn't it?
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Re: Autocad 2006 does not start

Post by etwineb »

For sake of completeness I tried also a clean arch32 wineprefix, autocad fails to start with the same error.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Autocad 2006 does not start

Post by dimesio »

That's fine; I thought from your original post you meant you were running Autocad with mscoree disabled.

Try winetricks vcrun2003.
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Re: Autocad 2006 does not start

Post by etwineb »

It seems to have no effects, besides I think winetricks -q vcrun2003 installs msvcr71.dll, not msvcr70.dll.

It is really weird, check this:

Code: Select all

[[I am in drive_c/AutoCAD 2006]]
% find .. -iname msvcp70.dll -delete
% wine acad.exe
wine: Call from 0x7b83a9fc to unimplemented function msvcp70.dll.??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z, aborting
err:module:attach_process_dlls "ac1st16.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\AutoCAD 2006\\acad.exe" failed, status 80000100
Even after deleting all the msvcp70.dll I get the same error, how is possible? Shouldn't wine complain for the lack of the .dll file?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Autocad 2006 does not start

Post by dimesio »

etwineb wrote:It seems to have no effects, besides I think winetricks -q vcrun2003 installs msvcr71.dll, not msvcr70.dll.
You're right. It seems msvcp70 was part of Visual C++ 2002, which is no longer available for download from Microsoft. https://social.msdn.microsoft.com/Forum ... rum=vstest

I did get the impression from googling that apps that needed it were supposed to install it themselves. Does AutoCAD? My guess is that the old test reports in the AppDB don't mention this as a problem because Wine at that time had no builtin version of those dlls, so AutoCAD would have been using the ones it installed itself.

Code: Select all

wine: Call from 0x7b83a9fc to unimplemented function msvcp70.dll.??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z, aborting
You should file a bug for that.
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Re: Autocad 2006 does not start

Post by etwineb »

dimesio wrote:I did get the impression from googling that apps that needed it were supposed to install it themselves. Does AutoCAD? My guess is that the old test reports in the AppDB don't mention this as a problem because Wine at that time had no builtin version of those dlls, so AutoCAD would have been using the ones it installed itself.
We probably got similar results via gooogle and, yes, autocad has it own copies of the dll. The dll was different than the one included in the wine prefix, but deleting one or the other (or even both) has no apparent effects.

I will post a bug report.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Autocad 2006 does not start

Post by dimesio »

etwineb wrote: We probably got similar results via gooogle and, yes, autocad has it own copies of the dll. The dll was different than the one included in the wine prefix, but deleting one or the other (or even both) has no apparent effects.
I wouldn't expect it to. The dlls Wine puts in the wineprefix are fake, and the ones put there by AutoCAD wouldn't be used without an override. What you should try is setting the dlls AutoCAD installed to native.
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Re: Autocad 2006 does not start

Post by etwineb »

I did the bug report and over-there I had been told the same. It turns out that autocad2006 starts with dotnet20 and setting msvcp70 to native.

It seems to work fine a part of the known bug #17743.

So the procedure is:
-make a no mono wineprefix
-install dotnet20
-copy the CD content somewhere (e.g., drive_c/CD)
-edit drive_c/CD/Bin/acadFeui/setup.ini and change the line "SETUP_PRODUCT_NAMES=MSI DOTNET DOTNETLANG DOTNETSP1 MDAC VIEWER FLASH ACAD" to "SETUP_PRODUCT_NAMES=MSI MDAC VIEWER FLASH ACAD" preventing the setup to install the broken dotnet11.
-execute the setup
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Autocad 2006 does not start

Post by dimesio »

Please file an AppDB test report with that information.
Locked