3 messages in com.mysql.lists.gui-toolsRe: ANNC: MySQL Administrator 1.0.11| From | Sent On | Attachments |
|---|---|---|
| Alfredo Kengi Kojima | 26 Aug 2004 07:42 | |
| Adam Majer | 26 Aug 2004 10:23 | |
| Adam Majer | 26 Aug 2004 10:28 |
| Subject: | Re: ANNC: MySQL Administrator 1.0.11![]() |
|---|---|
| From: | Adam Majer (ada...@galacticasoftware.com) |
| Date: | 08/26/2004 10:23:49 AM |
| List: | com.mysql.lists.gui-tools |
Alfredo Kengi Kojima wrote:
MySQL Administrator 1.0.11 has been released.
This version doesn't build from sources in Debian. (1.0.10 did)
i386-linux-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 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -c `test -f 'myx_shell.c' || echo './'`myx_shell.c myx_shell.c: In function `show_result': myx_shell.c:72: error: structure has no member named `name_length'
I replaced the line with,
#if MYSQL_VERSION_ID < 40100 unsigned int length= (field->name != 0 ? strnlen(field->name, field->max_length) : 0 ); #else unsigned int length= field->name_length; #endif
Also,
./libmysqlx.a(myx_shell.o)(.text+0x516): In function `myx_ts_execute_command': /home/adamm/work/debian/mysql-admin/mysql-admin-1.0.11/mysql-gui-common/library/source/myx_shell.c:229: undefined reference to `mysql_warning_count' ./libmysqlx.a(myx_shell.o)(.text+0x52a):/home/adamm/work/debian/mysql-admin/mysql-admin-1.0.11/mysql-gui-common/library/source/myx_shell.c:231: undefined reference to `mysql_warning_count' collect2: ld returned 1 exit status
added an if..endif clause to myx_shell.c
#if MYSQL_VERSION_ID > 40100 if(mysql_warning_count(shell->mysql)>0) { sprintf(buffer, "%i warning(s)\n", mysql_warning_count(shell->mysql)); SHOUT(buffer); } #endif
Then everything compiled correctly.
- Adam
-- Building your applications one byte at a time http://www.galacticasoftware.com




