Bug #5321 MA 1.0.11 does not compiled against MySQL 4.0.20
Submitted: 31 Aug 2004 17:19 Modified: 1 Sep 2004 18:20
Reporter: Tilman Giese Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Administrator Severity:S1 (Critical)
Version:1.0.11 OS:Linux (SuSE Linux 9.1 Professional)
Assigned to: Alfredo Kojima CPU Architecture:Any

[31 Aug 2004 17:19] Tilman Giese
Description:
When compiling MySQL Administrator 1.0.11 I get the following error:

------------------------------
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mysql-gui-common\" -DVERSION=\"0.5.1\" -DGTKMM_VERSION=20000  -I. -I. -I../include -I../shared_include -I../public_interface/linux -I/usr/include/mysql -march=athlon-xp -fexpensive-optimizations -fmessage-length=0 -fomit-frame-pointer -ffixed-ebp -DPIC -fPIC -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include/libxml2       -O3 -march=athlon-xp -fexpensive-optimizations -fmessage-length=0 -fomit-frame-pointer -ffixed-ebp -DPIC -fPIC -MT myx_shell.o -MD-MP -MF ".deps/myx_shell.Tpo" \
  -c -o myx_shell.o `test -f 'myx_shell.c' || echo './'`myx_shell.c; \
then mv -f ".deps/myx_shell.Tpo" ".deps/myx_shell.Po"; \
else rm -f ".deps/myx_shell.Tpo"; exit 1; \
fi
myx_shell.c: In function `show_result':
myx_shell.c:72: error: structure has no member named `name_length'
make[2]: *** [myx_shell.o] Error 1

------------------------------

Using length instead of name_length fixes this problem but leads to another one:

------------------------------
gcc  -O3 -march=athlon-xp -fexpensive-optimizations -fmessage-length=0 -fomit-frame-pointer -ffixed-ebp -DPIC -fPIC   -o test  test.o -L. -lmysqlx -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto  -L/opt/gnome/lib -lxml2 -lpthread -lz -lm -lglib-2.0   -L/usr/lib -lpcre
./libmysqlx.a(myx_shell.o)(.text+0x552): In function `myx_ts_execute_command':
: undefined reference to `mysql_warning_count'
./libmysqlx.a(myx_shell.o)(.text+0x571): In function `myx_ts_execute_command':
: undefined reference to `mysql_warning_count'
collect2: ld returned 1 exit status

How to repeat:
Compile MySQL Administrator 1.0.11 against MySQL 4.0.20. (MA 1.0.10 work well as the problematic file does not exist :-)
[1 Sep 2004 18:20] Jorge del Conde
Hi!

This is not a bug.  While MySQL Administrator (as does mysql) is backwards compatible with 4.0.X, its compiled using the 5.0 client libraries.  This enables us to make use of features found in 4.1 & 5.0 while still maintaining compatibility with 4.0.