>Description:
        "NET" is defined on line 135 in myslq_com.h. When I include
        mysql.h (for embedded mysql) I cannot compile a program which also includes
        netwm_def.h, which defines a completely different "NET".
>How-To-Repeat:
        Try to compile something that includes these two header files:
        #include <mysql.h>
        #include <kwin.h> (using KDE from CVS)
        and you'll get:
           In file included from /home/dnaber/prg/kde3/include/kwin.h:27,
                                from kmmessage.cpp:47:
           /home/dnaber/prg/kde3/include/netwm_def.h:171: conflicting types for
           `struct NET'
           /home/dnaber/prg/mysql4/include/mysql/mysql_com.h:135: previous
           declaration as `typedef struct st_net NET'
>Fix:
        Please rename "NET" to something like "MySQL_NET"

>Submitter-Id:  <submitter ID>
>Originator:    Daniel Naber
>Organization:
>MySQL support: none
>Synopsis:      mysql_com.h header name space pollution
>Severity:      non-critical
>Priority:      medium
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-4.0.2-alpha (Source distribution)

>Environment:
        Suse 7.2 with KDE from CVS and Qt 3.06 from KDE's CVS (qt-copy)
System: Linux pluto 2.4.4-4GB #1 Wed May 16 00:37:55 GMT 2001 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)
Compilation info: CC='gcc'  CFLAGS=''  CXX='g++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
-rwxr-xr-x    1 root     root      1341670 Jul 12 12:40 /lib/libc.so.6
-rw-r--r--    1 root     root     24534176 Jul 12 12:35 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Jul 12 12:35 /usr/lib/libc.so
-rw-r--r--    1 root     root       859134 Mai 11  2001 /usr/lib/libc-client.a
lrwxrwxrwx    1 root     root           20 Jun  4  2001 /usr/lib/libc-client.so -> 
libc-client.so.2000c
-rwxr-xr-x    1 root     root       720640 Mai 11  2001 /usr/lib/libc-client.so.2000c
Configure command: ./configure --prefix=/home/dnaber/prg/mysql4 --with-embedded-server


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to