On Monday 25 September 2006 16:34, Christian Hammers wrote:
> I'm reassigning this to opendbx. What I've figured out is that the
> structure aux->flags is declared in mysqlbackend.h as
> struct myconn
> {
> char* host;
> unsigned int port;
> unsigned long flags;
> ^^^^^^^^^^^^^^^^^^^^^^^^
> which looks ok to me. I could not figure out what brings gcc to say that is
> it a "ulong" type.
>
> Anyway, it does not seem to be a mysql problem, "ulong" is nothing that is
> supposed to be exported by the mysql headers as it's too generic.
>
> MySQL seems to use "ulong" itself though and expects it by the system:
> /usr/include/mysql/my_config.h
> /* system headers define ulong */
> #define HAVE_ULONG 1
If I change unsigned long to ulong in struct myconn, the error appears then in
this line which leads me to the conclusion that ulong is undefined.
On the other side I can't reproduce the error with a small sample program
including in all the header files that appear in mysqlbackend.{h,c}
I'm a little bit at a loss with this problem now :-(
Norbert
--
OpenPGP public key
http://www.linuxnetworks.de/norbert.pubkey.asc
pgpxna1H6ZeiV.pgp
Description: PGP signature

