Bug #19168 compilation error on mysql-gui-common
Submitted: 18 Apr 2006 16:37 Modified: 26 Apr 2006 15:51
Reporter: Pascal Parois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S1 (Critical)
Version:1239 OS:Linux (fedora core 5)
Assigned to: Alfredo Kojima CPU Architecture:Any

[18 Apr 2006 16:37] Pascal Parois
Description:
Compilation error:

make[3]: Entering directory `/usr/local/mysql-gui-common/library/source'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -Wsign-compare -I../include -I../../library_util/shared_include -I../../library_util/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -O2 -MT myx_xml_user_connections.o -MD -MP -MF ".deps/myx_xml_user_connections.Tpo" -c -o myx_xml_user_connections.o myx_xml_user_connections.c; \
then mv -f ".deps/myx_xml_user_connections.Tpo" ".deps/myx_xml_user_connections.Po"; else rm -f ".deps/myx_xml_user_connections.Tpo"; exit 1; fi
myx_xml_user_connections.c: In function ‘parse_im_connection’:
myx_xml_user_connections.c:1093: attention : pointer targets in passing argument 2 of ‘get_child_count’ differ in signedness
myx_xml_user_connections.c:1095: erreur: invalid lvalue in unary ‘&’
make[3]: *** [myx_xml_user_connections.o] Erreur 1

How to repeat:
$PKG_CONFIG=/usr/bin/pkg-config ./configure --enable-grt --enable-canvas 
$make

Suggested fix:
Change line 1095 from

try_to_get_int_field(doc, cur, "password_storage_type", &(int)pwd_storage_type);

to

try_to_get_int_field(doc, cur, "password_storage_type", (int*)&pwd_storage_type);
[26 Apr 2006 15:51] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html