Kernel Traffic
Latest | Archives | People | Topics
Latest | Archives | People | Topics
Latest | Archives | People | Topics
Home | News | RSS Feeds | Mailing Lists | Authors Info | Mirrors | Stalled Traffic

Wine Traffic #113 For 13 Jan 2002

By Brian Vincent

Table Of Contents


This is the 113th release of the Wine's kernel cousin publication. It's main goal is to distribute widely what's going on around Wine (the Un*x windows emulator).

The folks over at The Linux Show did a piece about Wine in their January 8th show. It covers some basics, such as what Wine is, how to get it, and a brief introduction about apps that work with Wine. I listened to the Real Audio version. The beginning of the show is about Linux PDA's, if you want to skip to the Wine stuff start listening at about 44 minutes into the show. They used CodeWeavers' rpm's which automates most of the install. In the coming weeks they plan on reviewing various applications that run under Wine. Next week they plan on reviewing IBM's Homepage Builder running under Wine. (There is a native Linux version of that application available, it might be interesting to see how the native app compares to running it under Wine.)

Transgaming announced a new WineX test release a few weeks ago. They noted the following changes: is knee-deep in a trademark dispute with Microsoft. Michael Robertson posted an update concerning several details of the case. To briefly summarize:

It should also be noted that there has been a lot of work by Martin Wilck and Mike McCormack to change the IO behavior. If anyone is interested in those threads, let me know and I'll try to summarize them all. (Martin submitted 9 patches just this week.)

Mailing List Stats For This Week

We looked at 198 posts in 1105K.

There were 56 different contributors. 28 posted more than once. 26 posted last week too.

The top posters of the week were:

1. Building a Test Suite (con't)

8 Jan 2002 - 9 Jan 2002 (17 posts) Archive Link: "Babystep: Testing framework"

Topics: Debugging

People: Jeremy WhiteAlexandre JulliardAndriy Palamarchuk

More work was done this week to be able to get a regression testing suite in place. Andriy Palamarchuk and Alexandre Julliard posted some details on adding some functionality to what was already in place. Jeremy White started a new thread with:

The attached revision to Alexandres patch modifies the Wine makefiles such that a Linux developer can:

It also creates three sample tests in programs/winetest/samples which hopefully demonstrate to a test author how to write a test. (The *.test files are human readable).

It has provisions for Perl and Winelib/C tests, as well as allowing for the arbitrary execution of any other command (which should allow any other test tools to be plugged in).

It has many flaws, but is intended as a possible jumpstart to get this process rolling.


  1. It has no provision for use on Windows. IMO the right way to fix this is to go through the effort of making Wine's ./configure script be intelligent enough to build 'Winelib' programs, so that in Windows a 'make test' should just work.
  2. I really don't like that a C/Winelib test requires its own directory (see samples/sample3). However, AFAICT, that was the only way to create a simple and clean build environment for the Winelib app.
  3. No doco.

Thoughts? Comments?

Alexandre felt some changes were in order, " I can't say I like your *.test files; I think this should be taken care of by the makefile directly. Also it seems the consensus is that we should simply check the exit status of the test, not compare the test output." Alexandre also didn't like that it couldn't be used on Windows, " I think it would be preferable to have a simple, self-contained environment. Running configure would require a lot of stuff to be installed on the Windows side."

Jeremy replied that the default behavior was, in fact, to just check the exit code and not actually look at the test output. A few posts then debated how to structure the C/Winelib tests - the Winelib apps would make a horrible mess if they were all built in the same directory. Alexandre wasn't really in favor of creating separate directories for each. As the thread went on, Jeremy wrote:

Finally, the more I think about my structure of using the '.test' files, the more I believe it is the right solution, because I think it gives us great long term flexibility.

For example, say we have 70 Winelib/C tests that are big and bloated and we want to fix that. We could define a new make target, say a ''. We could modify winetest to be able to load a file and call main() with the right parameters and suddenly all of our bloat is gone. We'd just need a rule to build a file from a .test.c file, and then we'd need to tweak our foo.test file to add a new command '' instead of 'invoke=foo' and we're done. We could probably even eliminate the .spec file (only for console apps, obviously).

Alexandre still disagreed with that approach, " But without your .test file it's even easier to do, all you have to do is to hack the makefile. Plus you can get the dependencies right (how can make guess what file your .test is referencing?)" Jeremy replied:

I think the bottom line question is whether or not the test scripts should be built such that we depend on a shell script (runtest) and a configuration file for each test (foo.test), or whether we rely completely on the Makefiles to hold the test configuration information.

I think either choice is valid, but let me lay down the gauntlet: replace my 'winetest/samples' directory with a Make based equivalent that allows for the same sorts of tests, and makes it similarly obvious to a newcomer how to add a new test. You are better with Make than I am; you may persuade me readily with a patch.

Alexandre whipped up a little patch and noted:

Just replace this:

in your makefile by: and delete the .test files (there is no SHTESTS for shell tests, but I think that's a feature if we want portability).

Creating a new test involves simply adding its name on the right line; no .test to write, no .spec file, no new Makefile.

(if you'd like to try it I have committed the rules for PLTESTS so this should work now; CTESTS will still need a bit more work)

2. Getting Support from IBM

9 Jan 2002 - 11 Jan 2002 (18 posts) Archive Link: "How about sponsoring from IBM?"

Topics: Commercial Development

People: RolandFrancois GougetPaul ClarkeJeremy WhiteJoerg MayerDavid ElliottGeoff ThorpeAndreas MohrcodeweaversDavid Elliot

Roland threw out a question that had a large response, " It seems that IBM is becoming a major Linux advocate. What would be the possibilities of having it sponsor the WINE project? I mean 1 million dollars is not much for IBM, but it certainly would mean a lot to the development of WINE. IBM would also profit of this. Since Linux runs on their supercomputers, it would be nice if you could run all Windows programs there(you need another Pentium emulator then, but that would not be a big problem, would it?). "

Francois Gouget sarcastically replied, " Let's write a pentium emulator with just in time compilation over the week-end. (sorry, the way you present things I just couldn't resist) " . Andreas Mohr didn't feel the commitment from IBM was very sincere. Last year IBM announced they were making an investment of a billion dollars in Linux, both technology and support. Paul Clarke responded to Andreas with:

My attempt to convince you otherwise:

Paul Clarke, IBM

A few people were surprised to see someone from IBM subscribed to to the list. Jeremy White brought up some good points about why IBM might have reservations about supporting Wine:

Many people at IBM know about Wine; in fact a lot of developers there depend on it everyday (IBM is standardized on Notes for messaging...).

Many non developers also know about it, if for no other reason that I've been a pest.<grin>

One senior manager at IBM explained it to me as follows: Most senior management at IBM has been with the company for a long time. Most of those went through the OS/2 era. Many people may not realize it, but IBM put their heart and soul into OS/2 - and were burned very, very badly by it. As a consequence, many people at IBM are understandably very reluctant to contemplate another attack on Windows dominance of the desktop.

This doesn't mean that I think helping Wine would be bad for IBM (or I wouldn't have been such a pest), but it may help folks to understand why IBM isn't very focused on Linux as a desktop OS.

Along the same lines, Joerg Mayer felt, " It looks like IBM spends its money on the products they themselvs use heavily, as well as training and making the name of Linux more popular (aka advertising/PR). I may have missed it but I haven't seen IBM spend money on a Linux(related) project just to further the project. If they wanted to spend $10e7 just to improve programs/tools just for the "good" of it I would be sad to see this money spent on wine. I'd like to see it spent on the development/improvement of *native* Linux apps that fulfill the need of current Windows users."

David Elliott elaborated on both Jeremy and Joerg's posts:

OS/2 ran Windows apps, and from about version 2 upwards ran all DOS and Windows stuff perfectly (except for the Win32s stuff). I am sure IBM does not want to make the same mistake again.

However WinOS/2 actually was running Windows 3.x. In fact, the technology was extremely similar to SCO Merge (which now has offspring-- Win4Lin). One nice thing it could do that win4lin could not was actually put toplevel windows onto the desktop directly (though they still had the win31 look). This would look similar to running Wine in non-desktop and non-managed mode, although the windows actually were managed by OS/2.

Some people would argue that had IBM comitted to supporting Win32 stuff that OS/2 would still be around. Of course the bottom line is that the way they were doing this meant MS got the money for a copy of Windows every time someone bought OS/2. Not good. Wine wouldn't have that problem assuming it would be using all wine DLLs.

As for IBM investing in Wine. I suppose there are a couple things they could do. For one, they could somehow use the $10e6 you suggest but who would they pay it to. What might be more helpful is if some of the guys and gals that wrote OS/2 would help out with Wine. They would probably be extremely familiar with Win32 seeing as how OS/2 was originally a joint MS/IBM project which MS got out of when they hacked Win3.0 to support virtual memory on a 386 and decided to make NT. Now while the NT kernel was developed by former VMS guys and gals from DEC, some of Win32 resembles OS/2 because some of those developers went on to work on NT. Which by the way no-one has confirmed that MS ever said it actually stood for New Technology.. more likely it stands for Nice Tits, but that's another story.

Anyway, the bottom line is that IBM is not going to start throwing money at stuff. They made that mistake with OS/2 and look where that got 'em. No, IBM spends money when and where it helps their bottom line. Taking down MS does not help their bottom line. Building their own services does help their bottom line. IBM could care less if everyone could run Windows software on Linux. They are in the business of providing the totally integrated system. Running 3rd party stuff is usually not a top priority.

Note that IBM has already caught the eye of MS with IBMs ad campaign for moving onto 390 systems running Linux. Some of those internal MS memos recently released are really anti-IBM. Right now I think MS is at the point where they have competitors. They can go after companies using Linux just like they have gone after companies in the past. They are also going after various IT admins who use Linux for certain tasks suggesting that MS software is better for everything. Of course anybody that tells you that one system is better than all others is full of shit, but hey, it sounds good to some managers who don't want to listen to the people they have working for them. Let 'em waste their money on MS. When it breaks, let 'em waste more money on moving it back to what worked. MS is going to shoot itself in the foot soon enough, no need to bring out your own shotgun.

However, there was also a lot of sentiment toward asking IBM for support. Several people felt it was exactly the type of thing that could really help IBM. Geoff Thorpe threw out some ideas, " One of the better ways to show the potential to IBM would be to find one of their apps that *does* work under WINE and get it demoed to their management. Although it sounds like some of them are already (internally) using Notes under Linux? Hmm ... I have one or two leads I can try to follow, but it's a sure thing that a "wrapper" company would have more joy getting something to stick, eg. a redhat, mandrake, codeweavers, etc. "

Perhaps the most interesting part of this thread was noticing that folks from IBM read the development list. Which, shouldn't really come as a surprise since there have been posts in the past originating from

3. Euro Support

5 Jan 2002 (5 posts) Archive Link: "RE: PATCH: Euro"

Topics: Patches

People: Marcus MeissnerPatrik StridvallOve KaavenPatrik StridvalOve Kåven

Marcus Meissner submitted a patch to wine-patches with the note:

This patch changes the NLS currency of all Euro countries to use the "EUR" as international currency and the euro-sign (iso-8859-15, character 164).

I am a bit unsure if we can just specify the character that way, but it should work.

Patrik Stridvall wondered:

Hmm. While I'm do not doubt that some users of Wine might find this useful, Wine is supposed to do what Windows does and if Windows does something wrong Wine usually should as well.

If I'm not mistaken the .nls contains that default values. It is entirely possible to change the currency and such in the registry to specify things differently for each user.

That said I would find it unlikely that this patch would cause any serious problem. After all, as I said, the user can specify whatever currency it likes after the defaults have been set and every application is supposed to be able to handle it.

So I do not really oppose the patch. It is more the principle I'm intrested in: Under what circumstances should Wine change the behavior if Windows does something in the wrong way?

Ove Kåven didn't see anything wrong with it, " Wrong? Microsoft has released Euro updates for Windows, which seems like it's supposed to change the Windows NLS files to use the new currency. It should be available on the Windows Update site. I don't see anything wrong here."

Alexandre committed the patch to CVS.

4. NT Named Pipes

7 Jan 2002 (1 post) Archive Link: "RFC: NamedPipes emulation API"

Topics: Integration

People: Luke Kenneth Casson LeightonMike McCormackLuke Leighton

(Alright, don't flame me for posting this.) Luke Leighton of Samba fame posted a RFC (or rant or diatribe or whatever you want to call it) about implementing NT Named Pipes:

this is an RFC document describing an API that may be used to provide Windows NT Style "NamedPipe" functionality. it will be of interest to samba, wine, freedce and win32 developers wishing to port applications to unix (via the wine win32 implementation of NamedPipes).

the functionality described in this document is equivalent to, if you have access to the MSDN, the following (incomplete list of) Win32 functions:

there follows a list of function declarations.

these are samba-specific functions that are only of use to SAMBA 3 developers.

int named_pipe_create(


this function returns -1 on failure or an SMB file index (fnum) on success.

it is called when an SMBopenX or NTcreateX is received.

from memory, the access point is api_pipe_open(), in pipe.c or reply.c.

STATUS named_pipe_transact(connection_struct *connection,

this function returns an NT status code.

if there is more data to be received, then the function must return ERROR_MORE_DATA. NT_STATUS_OK is returned on success.

from memory, the access point is api_pipe_readwrite() or reply_trans2(), or maybe reply_pipe_trans(). i don't recall which. again, it'll be in pipe.c or reply.c.

STATUS named_pipe_read(connection_struct *connection,

this function returns an NT status code.

NT_STATUS_OK is returned on success.

this one's to be called by pipe_read() (api_pipe_read()?)

STATUS named_pipe_write(connection_struct *connection,

this function returns an NT status code.

NT_STATUS_OK is returned on success.

this one's to be called by pipe_write() (api_pipe_write()?)

the use of this API is quite simple, and provides a clean "cut-off" point between samba and all NamedPipe transactions.

This is the type of IO stuff Mike McCormack has been working towards. There have been several discussions in the past of integrating with Samba to provide access to lots of underlying NT services. One problem, and particularly with Luke's post, is that a lot of that development has been a moving target. In this case, Luke refers to the TNG fork of Samba. Now, it is possible that code Luke develops will be accepted by the main Samba branch. Features do get fed back and forth. Right now Named Pipes are something being discussed on the Samba TNG mailing lists. Many of the pieces necessary for such NT/Wine integration exist, and have existed, for a while. But none of it is really integrated together and they span many different open source projects. Luke posted this message to the tng-technical list:

the transport that SMB implements is called "Named Pipes". look up the MSDN starting with CreateNamedPipe.

Named Pipes are basically the following features:

basically, it's an incredibly powerful system, and unix has ***nothing*** remotely resembling it.

unix doesn't even support the concept of a remote user in order for a remote user to be relevant over a named pipe, for pity's sake!

Note: Jeremy Allison pointed out that things like NFS do have concepts like that. Luke agreed, but pointed out the lack of POSIX API support. Luke continued:

unix supports TCP (guaranteed and ordered data delivery) and it supports UDP (guaranteed message sizes) but it doesn't support both.

and NT "Named Pipes" do.

which is why microsoft decided to use them as a transport for dce/rpc.

and it's worthwhile pointing this out again: that's the *only* relationship between named pipes and dce/rpc.

one uses the other.

there _is_ no special MSRPC-namedpipe-interdependent- transport-thing.

in other words, it is possible to implement NamedPipes in SAMBA-3, knowing absolutely _nothing_ about dce/rpc _whatsoever_, and then to give the API functions to a dce/rpc developer and say, "write a transport plugin module for your dce/rpc runtime environment that uses _this_ api", and they can.

but - and i'll say it again - without that "Named Pipe" API in SAMBA-3, there's absolutely _no_ point in any further discussion, as no progress can be made.

5. Support For ADPCM Wave Files

10 Jan 2002 (5 posts) Archive Link: "ADPCM and Wine"

Topics: Multimedia

People: David HagoodAndreas MohrEric Pouech

David Hagood needed some pointers on supporting ADPCM wave files in Wine:

Is anybody working on support for playing ADPCM wave files under Wine? If not, I'd like to take a crack at it.

I have an app that I use (Delorme's AAA MapNGo 4.0) that uses ADPCM wave files to contain spoken information on attractions. I know that Wine can access my sound system to play normal PCM wave files, as MN4 also has speech synthesis that does work. However, any attempt to play a ADPCM file results in the program pausing for a length of time, then continuing. I infer that this is because the lower levels of Wine don't know how to handle ADPCM.

ADPCM isn't rocket science - several programs, including sox, understand the protocol.

So, is anybody working on this (outside of TG and Lindows)? Any (non-null) pointers to useful information on how Wine has put together the sound subsystem? I'm not a Windows programmer, I'm an embedded systems and DSP person, but if I can find a block of code to hook into I can make this happen.

Andreas Mohr suggested running a test with, " --debugmsg +driver,+mmsys,+mci,+mmio,+mmtime,+mciwave,+msacm,+wave,+midi,+ mmaux,+relay (they're all inside dlls/winmm/*). That should help a lot in finding what's missing."

Eric Pouech, who's done a lot of work on the sound subsystem, replied:

well, to make things a bit harder, (at least) two ADPCM exist:
- IMA and MS
basic algorithm are quite the same, coeff tables differ a bit.

I did start a while ago an IMA ADPCM driver for wine it's not finished yet (basically, didn't find time to look at in depth docs for some details, like coding/decoding of stereo vs mono) it's far from being finished and tested, but the framework (wine integration, driver infrastructure) is in place, there's just some need to concentrate on codec code

so, if you're ready to go for it, I can send you the code and give you the directions to end up the job

6. Setting Breakpoints in the Debugger

9 Jan 2002 (8 posts) Archive Link: "Debugger set breakpoint with full filename"

Topics: Debugging

People: Bill MedlandEric Pouech

Bill Medland had some questions about using the Wine debugger, " I've spent time looking for the answer and trying the (to me) obvious options and now I give in. How, in the debugger, do I specify "Set a break point at DllMain of E:\BIN.50A\..MYDLL.DLL" without the debugger complaining about syntax etc.? If someone answers then I am prepared to add the info to debugger.sgml "

Bill either figured it out, or received a direct reply because a few hours later he reposted a reply to himself:

OK. To break at function foo of dll E:\somepath\MyDll.DLL


I'll update the file.

NOW the real question.

I am chasing a bug which makes no sense. I want to single-step through the DLL's DllMain but since it isn't exported the debugger can't get its address (I presume) so I can't set it as a break point. Is there a way to figure out what it's address is?

This turned into a stairstep thread with Eric Pouech. Eric initially replied, " another solution is to ask the debugger to break on each DLL loading. set $BreakOnDllLoad = 1 then, you would be able to add a breakpoint on DllMain (which, I assume would be exported from the DLL, meaning its symbol will be known to the debugger)" . Bill said that didn't work. Eric clarified, "try MyDLL.EntryPoint, it should work" . That seemed to be exactly what Bill was looking for with the caveat that he had to explicitly add the extension ".DLL" for the DLL, so it looked like: break MyDll.DLL.EntryPoint. Bill updated the debugger documentation on how this works.







Sharon And Joy

Kernel Traffic is grateful to be developed on a computer donated by Professor Greg Benson and Professor Allan Cruse in the Department of Computer Science at the University of San Francisco. This is the same department that invented FlashMob Computing. Kernel Traffic is hosted by the generous folks at All pages on this site are copyright their original authors, and distributed under the terms of the GNU General Public License version 2.0.