Bug #3243 build broken
Submitted: 19 Mar 2004 17:26 Modified: 20 Mar 2004 10:48
Reporter: Sergey Matveychuk Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S1 (Critical)
Version:1.0.2b alpha OS:FreeBSD (FreeBSD)
Assigned to: Alfredo Kojima CPU Architecture:Any

[19 Mar 2004 17:26] Sergey Matveychuk
Description:
cc -DPACKAGE=\"mysql-gui-common\" -DVERSION=\"0.1.0\"  -I. -I.  -I../include -I../public_interface/linux        -I/usr/local/include/mysql -O -pipe -march=athlon-xp -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include      -O -pipe -march=athlon-xp -c myx_library.c
In file included from myx_library.c:56:
/usr/local/include/mysql/m_ctype.h:45: error: syntax error before "pchar"
myx_library.c: In function `myx_get_server_info':
myx_library.c:310: error: structure has no member named `protocol'
myx_library.c:310: error: `MYSQL_PROTOCOL_MEMORY' undeclared (first use in this function)
myx_library.c:310: error: (Each undeclared identifier is reported only once
myx_library.c:310: error: for each function it appears in.)
myx_library.c:314: error: structure has no member named `protocol'
myx_library.c:314: error: `MYSQL_PROTOCOL_SOCKET' undeclared (first use in this function)
myx_library.c:318: error: structure has no member named `protocol'
myx_library.c:318: error: `MYSQL_PROTOCOL_PIPE' undeclared (first use in this function)
myx_library.c:322: error: structure has no member named `protocol'
myx_library.c:322: error: `MYSQL_PROTOCOL_TCP' undeclared (first use in this function)
myx_library.c: In function `myx_get_server_charset_name':
myx_library.c:485: error: structure has no member named `csname'
gmake[2]: *** [myx_library.o] Error 1
gmake[2]: Leaving directory `/usr/ports/databases/mysql-administrator.new/work/mysql-administrator-1.0.2b-alpha/mysql-gui-common/library/source'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/databases/mysql-administrator.new/work/mysql-administrator-1.0.2b-alpha/mysql-gui-common/library'
gmake: *** [all-recursive] Error 1
*** Error code 2

How to repeat:
cd mysql-gui-common
automake
autoconf
configure
make

Suggested fix:
There are no some files in tarball.
[20 Mar 2004 10:48] Alfredo Kojima
Hi

The problem you've reported is because the required MySQL client library version is 5.0 or later. You can comment out the code in question if you'd like to continue with your current client libraries anyway. I'll probably add some tests to that code so it will build with 4.x client libs as well.

Thanks for the report.
[2 Apr 2004 20:41] Robert Paskowitz
Perhaps a ./configure option, or some form of test. 
 
When do you think this will be resolved? Am trying to setup automated 
installations from source, and would perfer not to half to go commenting code 
out. Thanks.
[2 Apr 2004 23:05] Alfredo Kojima
I've added #ifdefs checking for that. I'll probably release another alpha
during this weekend or next week, which will have this problem fixed.