authz.dll

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

authz.dll

Post by austin987 »

Mon, Jan 26, 2009 at 7:27 PM, Robert <[email protected]> wrote:
I've downloaded the latest DB2 client, and its ODBC registration program complains that this is missing. No threads or references here. There didn't appear to be a download for it at M$.

A search yielded lots o sites that offered it. Any recommendations?

thanks
Appears to be part of SQL server. What app is this?

--
-Austin
James McKenzie

authz.dll

Post by James McKenzie »

Robert wrote:
I've downloaded the latest DB2 client, and its ODBC registration program complains that this is missing. No threads or references here. There didn't appear to be a download for it at M$.

A search yielded lots o sites that offered it. Any recommendations?

IBM should be where you get this file from as they are the manufacturers
of and distributors of DB2.

James McKenzie
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

authz.dll

Post by austin987 »

On Mon, Jan 26, 2009 at 8:08 PM, Austin English <[email protected]> wrote:
Mon, Jan 26, 2009 at 7:27 PM, Robert <[email protected]> wrote:
I've downloaded the latest DB2 client, and its ODBC registration program complains that this is missing. No threads or references here. There didn't appear to be a download for it at M$.

A search yielded lots o sites that offered it. Any recommendations?

thanks
Appears to be part of SQL server. What app is this?

--
-Austin
Does this patch help?

--
-Austin
-------------- next part --------------
From f9de2be185700907e2c02c83afe9e85c5eaa7b02 Mon Sep 17 00:00:00 2001
From: Austin English <[email protected]>
Date: Mon, 26 Jan 2009 20:13:38 -0600
Subject: [PATCH] authz: add stub dll

---
configure.ac | 1 +
dlls/authz/Makefile.in | 13 +++++++++++++
dlls/authz/authz.spec | 28 ++++++++++++++++++++++++++++
dlls/authz/authz_main.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 86 insertions(+), 0 deletions(-)
create mode 100644 dlls/authz/Makefile.in
create mode 100644 dlls/authz/authz.spec
create mode 100644 dlls/authz/authz_main.c

diff --git a/configure.ac b/configure.ac
index a420de2..3fb7363 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1803,6 +1803,7 @@ WINE_CONFIG_MAKEFILE([dlls/advpack/tests/Makefile],[dlls/Maketest.rules],[dlls],
WINE_CONFIG_MAKEFILE([dlls/amstream/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/appwiz.cpl/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/atl/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/authz/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/avicap32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/avifil32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/browseui/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
diff --git a/dlls/authz/Makefile.in b/dlls/authz/Makefile.in
new file mode 100644
index 0000000..bdd14ef
--- /dev/null
+++ b/dlls/authz/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = authz.dll
+IMPORTS = kernel32
+
+C_SRCS = \
+ authz_main.c
+
+@MAKE_DLL_RULES@
+
+@DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/authz/authz.spec b/dlls/authz/authz.spec
new file mode 100644
index 0000000..3f992c9
--- /dev/null
+++ b/dlls/authz/authz.spec
@@ -0,0 +1,28 @@
+@ stub AuthzAccessCheck
+@ stub AuthzAddSidsToContext
+@ stub AuthzCachedAccessCheck
+@ stub AuthzFreeAuditEvent
+@ stub AuthzFreeContext
+@ stub AuthzFreeHandle
+@ stub AuthzFreeResourceManager
+@ stub AuthzGetInformationFromContext
+@ stub AuthzInitializeContextFromAuthzContext
+@ stub AuthzInitializeContextFromSid
+@ stub AuthzInitializeContextFromToken
+@ stub AuthzInitializeObjectAccessAuditEvent
+@ stub AuthzInitializeResourceManager
+@ stub AuthzOpenObjectAudit
+@ stub AuthziAllocateAuditParams
+@ stub AuthziFreeAuditEventType
+@ stub AuthziFreeAuditParams
+@ stub AuthziFreeAuditQueue
+@ stub AuthziInitializeAuditEvent
+@ stub AuthziInitializeAuditEventType
+@ stub AuthziInitializeAuditParams
+@ stub AuthziInitializeAuditParamsFromArray
+@ stub AuthziInitializeAuditParamsWithRM
+@ stub AuthziInitializeAuditQueue
+@ stub AuthziLogAuditEvent
+@ stub AuthziModifyAuditEvent
+@ stub AuthziModifyAuditEventType
+@ stub AuthziModifyAuditQueue
diff --git a/dlls/authz/authz_main.c b/dlls/authz/authz_main.c
new file mode 100644
index 0000000..6e98aac
--- /dev/null
+++ b/dlls/authz/authz_main.c
@@ -0,0 +1,44 @@
+/*
+ * AUTHZ Implementation
+ *
+ * Copyright 2009 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(authz);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ default:
+ break;
+ }
+
+ return TRUE;
+}
--
1.5.6.3
Robert
Level 1
Level 1
Posts: 5
Joined: Fri Jan 16, 2009 11:14 pm

Post by Robert »

If this is the procedure:
http://appdb.winehq.org/commentview.php ... adId=38826

I'll do that in the morning. Getting toward my bed time. :P
Patch-ing is not in my experience, and if I can it, I'll have real time to get back to normal.

thanks.
Robert
Robert
Level 1
Level 1
Posts: 5
Joined: Fri Jan 16, 2009 11:14 pm

Post by Robert »

I followed the procedure in the other thread and patch says this:

root@ubuntu:/home/buggy/wine# patch -p1 < p0.txt
patching file configure.ac
patch: **** malformed patch at line 15: WINE_CONFIG_MAKEFILE([dlls/amstream/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])

Also, I'd rather not have wine globally on root, as the other thread describes. Can I just drop the patched executable (I assume that's what the first make will produce) into my local .wine?

thanks,
Robert
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

authz.dll

Post by austin987 »

On Tue, Jan 27, 2009 at 11:08 AM, Robert <[email protected]> wrote:
I followed the procedure in the other thread and patch says this:

root@ubuntu:/home/buggy/wine# patch -p1 < p0.txt
patching file configure.ac
patch: **** malformed patch at line 15: WINE_CONFIG_MAKEFILE([dlls/amstream/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
The forum is botching it up, you'd need to get it from wine-users
archives. But since it's not a windows dll, but provided by some app,
I really doubt it will help.
Also, I'd rather not have wine globally on root, as the other thread describes. Can I just drop the patched executable (I assume that's what the first make will produce) into my local .wine?
No. It would create a dll.so file. You could try just making an empty
file named authz.dll and put it in your ~/.wine, that may help. But if
the app actually uses it, it'll fail. You need to get it however the
app expects (probably depends on a database program installation?

--
-Austin
Robert
Level 1
Level 1
Posts: 5
Joined: Fri Jan 16, 2009 11:14 pm

Re: authz.dll

Post by Robert »

No. It would create a dll.so file. You could try just making an empty
file named authz.dll and put it in your ~/.wine, that may help. But if
the app actually uses it, it'll fail. You need to get it however the
app expects (probably depends on a database program installation?

--
-Austin
It is a windows dll, perhaps only win/2003 server. It's described on the M$ KB. Why the latest DB2 client demands it, I've no idea; previous versions didn't. My wine is set to be XP.

Thanks for the assistance, and I'll just use the regular linux DB2 stuff. This was only to be able to use a windows database editor, AQT.

I was able to get it all working on Ubuntu 6.06/32. This is 8.10/64. That may well have some bearing on it. But not enough to waste any more of folks' time.

thanks,
Robert
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

authz.dll

Post by austin987 »

On Tue, Jan 27, 2009 at 11:37 AM, Robert <[email protected]> wrote:
No. It would create a dll.so file. You could try just making an empty
file named authz.dll and put it in your ~/.wine, that may help. But if
the app actually uses it, it'll fail. You need to get it however the
app expects (probably depends on a database program installation?

--
-Austin
It is a windows dll, perhaps only win/2003 server. It's described on the M$ KB. Why the latest DB2 client demands it, I've no idea; previous versions didn't. My wine is set to be XP.
Do you have a link?

--
-Austin
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

authz.dll

Post by austin987 »

On Tue, Jan 27, 2009 at 11:43 AM, Austin English
<[email protected]> wrote:
On Tue, Jan 27, 2009 at 11:37 AM, Robert <[email protected]> wrote:
No. It would create a dll.so file. You could try just making an empty
file named authz.dll and put it in your ~/.wine, that may help. But if
the app actually uses it, it'll fail. You need to get it however the
app expects (probably depends on a database program installation?

--
-Austin
It is a windows dll, perhaps only win/2003 server. It's described on the M$ KB. Why the latest DB2 client demands it, I've no idea; previous versions didn't. My wine is set to be XP.
Do you have a link?

--
-Austin
Err, found it.

http://support.microsoft.com/kb/931211

Does that patch help? Here's it on pastebin:
http://pastebin.com/m4e589f28

Btw, you don't have to install wine as root to test this. You can run
it from the build directory (there's not a way to do this by just
messing with ~/.wine though).

--
-Austin
Robert
Level 1
Level 1
Posts: 5
Joined: Fri Jan 16, 2009 11:14 pm

Post by Robert »

The patch ran, but it looks like a switch for 64 bit needs setting:

checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

thanks,
Robert
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

authz.dll

Post by austin987 »

On Tue, Jan 27, 2009 at 8:15 PM, Robert <[email protected]> wrote:
The patch ran, but it looks like a switch for 64 bit needs setting:

checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

thanks,
Robert





http://wiki.winehq.org/WineOn64bit

--
-Austin
Robert
Level 1
Level 1
Posts: 5
Joined: Fri Jan 16, 2009 11:14 pm

Post by Robert »

getting closer. ran the procedures, but

./configure

fails with
...
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for flex... no
configure: error: no suitable flex found. Please install the 'flex' package.

the install-wine-deps.sh ran without error. flex is shown, on line 18, but I guess is not actually in the packages?

thanks,
Robert
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

authz.dll

Post by austin987 »

On Wed, Jan 28, 2009 at 11:08 AM, Robert <[email protected]> wrote:
getting closer. ran the procedures, but

./configure

fails with
...
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for flex... no
configure: error: no suitable flex found. Please install the 'flex' package.

the install-wine-deps.sh ran without error. flex is shown, on line 18, but I guess is not actually in the packages?

thanks,
Robert
I'm not sure, I avoid 64-bit because of such problems ;-).

I submitted the patch anyway, and it went in today. Wine 1.1.14 should
be out on Friday, you could wait a few days for binary packages and
retest.

--
-Austin
Locked