Hi,
So I have been playing around with the UWin 5.0 beta version on Win2K8, and
I'm having generally good results unlike the 4.3 Beta which I couldn't get to
work reasonably.
I'll report a few issues.
1) The Control Panel object is missing. I couldn't get account enumeration to
turn on. To workaround I created the registry keys manually. The hive path is:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\AT&T Labs\UWin\4.3\UMS
(Note UWin still thinks it's version 4.3 and not version 5.0)
2) The cc compiler needs updates for the hardcoded linker library options.
Since MS Visual Studio 6.x and up, there is new security overrun buffer
protection. To acquire these libraries you cannot link against msvcrt.dll any
longer, but must link against libcmt.dll. The cc wrapper does not have its
hardcoded links updated. When you run cc in verbose mode (cc -V) and you can
see the error in resolving symbols.
Lib='C:\UWIN\usr\lib\msvcrt;C:\UWIN\usr\lib;c:\Program Files (x86)\Microsoft
Visual Studio 9.0\VC\lib;C:\Program Files\Microsoft SDKs\Windows\v6.1\lib;' \
'c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC/bin/link.exe' -nologo
-incremental:no -machine:i386 -nodefaultlib:libc -force:multiple -manifest
wiz.o -out:a.out -subsystem:console 'C:\UWIN\usr\lib\ast.lib'
'C:\UWIN\usr\lib\init.o
' 'C:\UWIN\usr\lib\posix.lib' -nodefaultlib:libc -nodefaultlib:libcmt
msvcrt.lib KERNEL32.lib -entry:mainCRTStartup
msvcrt.lib(loadcfg.obj) : error LNK2001: unresolved external symbol ___security_
cookie
a.out : fatal error LNK1120: 1 unresolved externals
So to get around this, I had to manually link by removing nodefaultlib:libcmt
and replacing msvcrt.lib. Unfortunately you will get a conflict against the
time definitions since init.o and libcmt.dll have daytime defined.
Lib='C:\UWIN\usr\lib\msvcrt;C:\UWIN\usr\lib;c:\Program Files (x86)\Microsoft
Visual Studio 9.0\VC\lib;C:\Program Files\Microsoft SDKs\Windows\v6.1\lib;' \
'c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC/bin/link.exe' -nologo
-incremental:no -machine:i386 -nodefaultlib:libc -force:multiple -manifest
wiz.o -out:a.out -subsystem:console 'C:\UWIN\usr\lib\ast.lib'
'C:\UWIN\usr\lib\init.o
' 'C:\UWIN\usr\lib\posix.lib' -nodefaultlib:libc libcmt.lib KERNEL32.lib
-entry:mainCRTStartup
Also ensure you include 32 bit libraries in Lib path since UWin libraries are
32 bit.
3) Finally, this is not particular to UWin, but a comment around Win2K8/Vista
changes. As I was in essence compiling an "su" program, you must shut UAC off
completely. All the Security Policies for UAC must be disabled and you must
deactivate UAC in the User Accounts Control Panel. Otherwise suid bits don't
work properly.
Glenn
_________________________________________________________________
Windows Live helps you keep up with all your friends, in one place.
http://go.microsoft.com/?linkid=9660826
_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users