Author |
|
marshmallow007
Joined: 30 Dec 2005 Posts: 8
|
Posted: Fri 30 Dec '05 2:20 Post subject: mod_authn_dbd |
|
|
I can't use this module. And you ? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
marshmallow007
Joined: 30 Dec 2005 Posts: 8
|
Posted: Sat 31 Dec '05 0:01 Post subject: |
|
|
Ok, but how can i compile this module ?
How can i make the mysql's DBDriver ?
I have VS 2003 and 2005 (with a MSDNAA licence).
Thanks for your answer, Marsh. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 31 Dec '05 0:24 Post subject: |
|
|
First you need apr_dbd_mysql.c (see in apr-util folder INSTALL.MySQL )
Set APU_HAVE_MYSQL in apu.hw
Put the mysql include and lib in the VS path.
Rebuild Apache.
Steffen |
|
Back to top |
|
marshmallow007
Joined: 30 Dec 2005 Posts: 8
|
Posted: Sun 01 Jan '06 19:40 Post subject: |
|
|
Steffen wrote: | First you need apr_dbd_mysql.c (see in apr-util folder INSTALL.MySQL )
Set APU_HAVE_MYSQL in apu.hw
Put the mysql include and lib in the VS path.
Rebuild Apache.
Steffen |
Happy New Year
Steffen, I'm back
Ok for the apr_dbd_mysql.c in srclib\apr-util\dbd\ folder.
Ok for the mysql.h & errmsg.h in srclib\apr-util\include\mysql\ folder.
But what about the lib ?
Have you seen
...
#if APU_HAVE_SOME_OTHER_BACKEND
DRIVER_LOAD("firebird", apr_dbd_other_driver, pool);
#endif
...
in srclib\apr-util\dbd\apr_dbd.c
So, I can use a firebird database, no ?
Thanks, Marsh. |
|
Back to top |
|
marshmallow007
Joined: 30 Dec 2005 Posts: 8
|
Posted: Mon 02 Jan '06 1:18 Post subject: |
|
|
Steffen wrote: | First you need apr_dbd_mysql.c (see in apr-util folder INSTALL.MySQL )
Set APU_HAVE_MYSQL in apu.hw
Put the mysql include and lib in the VS path.
Rebuild Apache.
Steffen |
Steffen, I'm back II
With VS2003, I put the file apr_dbd_mysql.c in the project libaprytil/dbd and I have many error messages like this :
...
... \httpd-2.2.0\srclib\apr-util\include\mysql\mysql_com.h(175) : error C2061: erreur de syntaxe : identificateur 'SOCKET'
... \httpd-2.2.0\srclib\apr-util\include\mysql\mysql_com.h(208) : error C2059: erreur de syntaxe : '}'
... \httpd-2.2.0\srclib\apr-util\include\mysql\mysql_com.h(321) : error C2143: erreur de syntaxe : absence de ')' avant '*'
...
from the mysql_com.h include (included by apr_dbd_mysql.c)
Can you help me ?
Thanks, Marsh. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 03 Jan '06 14:14 Post subject: |
|
|
Sorry forget to tell that I had the same issue.
Had to change in mysql.h
#ifndef my_socket_defined
#ifdef __WIN__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */
to
#ifndef my_socket_defined
#ifdef __WIN32__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN32__ */
#endif /* my_socket_defined */
#endif /* _global_h */
My conclusion is that it is not Win32 ready at the moment. I contacted the author, but he had no solution.
Steffen |
|
Back to top |
|
marshmallow007
Joined: 30 Dec 2005 Posts: 8
|
Posted: Sun 08 Jan '06 20:47 Post subject: |
|
|
Steffen wrote: | Sorry forget to tell that I had the same issue.
Had to change in mysql.h
#ifndef my_socket_defined
#ifdef __WIN__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */
to
#ifndef my_socket_defined
#ifdef __WIN32__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN32__ */
#endif /* my_socket_defined */
#endif /* _global_h */
My conclusion is that it is not Win32 ready at the moment. I contacted the author, but he had no solution.
Steffen |
Thanks |
|
Back to top |
|
marshmallow007
Joined: 30 Dec 2005 Posts: 8
|
Posted: Sun 08 Jan '06 21:17 Post subject: Solution ? |
|
|
marshmallow007 wrote: | Steffen wrote: | Sorry forget to tell that I had the same issue.
Had to change in mysql.h
#ifndef my_socket_defined
#ifdef __WIN__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */
to
#ifndef my_socket_defined
#ifdef __WIN32__
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN32__ */
#endif /* my_socket_defined */
#endif /* _global_h */
My conclusion is that it is not Win32 ready at the moment. I contacted the author, but he had no solution.
Steffen |
Thanks |
Try this
#ifndef my_socket_defined
#ifdef __WIN__
#include <WinSock.h> //<- Here
#define my_socket SOCKET
#else
typedef int my_socket;
#endif /* __WIN__ */
#endif /* my_socket_defined */
#endif /* _global_h */ |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 10 Jan '06 1:32 Post subject: |
|
|
I tried it, it builds fine. But running it crashes Apache.
I have bad news, I received from the Auhor the following:
Anyway, as far as I'm concerned, the MySQL driver was only ever a quick clone of the PostgreSQL driver (which I use myself). If you or anyone else would like to take over maintenance of it (under the GPL), that's fine by me. Or of course you could fork a Windows version of it.
So, it is very experimental.
Steffen |
|
Back to top |
|
NathanKWA
Joined: 22 Jan 2007 Posts: 1
|
Posted: Tue 23 Jan '07 0:01 Post subject: mod_authn_dbd |
|
|
Steffen wrote: | I tried it, it builds fine. But running it crashes Apache.
I have bad news, I received from the Auhor the following:
Anyway, as far as I'm concerned, the MySQL driver was only ever a quick clone of the PostgreSQL driver (which I use myself). If you or anyone else would like to take over maintenance of it (under the GPL), that's fine by me. Or of course you could fork a Windows version of it.
So, it is very experimental.
Steffen |
So, auth via mysql is dead, are there any good resources for setting up auth using Postgre? I am not in a postion to compile the driver myself!
Thanks |
|
Back to top |
|