libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libplanner -I.. -I../libplanner -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -DSTORAGEMODULEDIR=\"/usr/lib/planner/storage-modules\" -DFILEMODULEDIR=\"/usr/lib/planner/file-modules\" -DPLUGINDIR=\"/usr/lib/planner/plugins\" -DDATADIR=\"/usr/share\" -I/usr/include/libgda-3.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DGDA_VERSION=30 -ggdb -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -MT libstorage_sql_la-mrp-sql.lo -MD -MP -MF .deps/libstorage_sql_la-mrp-sql.Tpo -c mrp-sql.c -fPIC -DPIC -o .libs/libstorage_sql_la-mrp-sql.o mrp-sql.c: In function ‘sql_write_project’: mrp-sql.c:2449: error: expected ‘;’ before ‘while’ mrp-sql.c:2450: error: expected ‘while’ before ‘return’ mrp-sql.c:2455: error: expected ‘;’ before ‘while’ mrp-sql.c:2456: error: expected ‘while’ before ‘return’ mrp-sql.c:2477: error: expected ‘;’ before ‘while’ mrp-sql.c:2478: error: expected ‘while’ before ‘return’ mrp-sql.c:2538: error: expected ‘;’ before ‘while’ mrp-sql.c:2539: error: expected ‘while’ before ‘return’ mrp-sql.c: In function ‘mrp_sql_save_project’: mrp-sql.c:3726: error: expected ‘;’ before ‘while’ mrp-sql.c:3727: error: expected ‘while’ before ‘goto’ make[2]: *** [libstorage_sql_la-mrp-sql.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-office/planner-0.14.3/work/planner-0.14.3/libplanner' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-office/planner-0.14.3/work/planner-0.14.3' make: *** [all] Error 2 Could be because I have gcc-4.3.1-r1.
Created attachment 160406 [details, diff] mrp-sql-G_STMT_START.patch Turns out it's a glib issue.
Thanks for the report -- and the patch! What version of glib are you using (how about attaching your emerge --info for the maintainers to review)?
Also with gcc-4.3.2 and glib-2.18.1. N.B. This has been accepted upstream: http://bugzilla.gnome.org/show_bug.cgi?id=539993 http://svn.gnome.org/viewvc/planner/trunk/libplanner/mrp-sql.c?r1=881&r2=922
d'oh ! I suck for forgetting there was a patch here. I need to add another one for proper libgda selection anyway because it will currently select highest version available on the system which isn't exactly ideal for us.
fixed in r1 and r2 (one for each libgda slot). Thanks for reporting and the patch.