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 :-)