Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231823 - app-office/planner-0.14.3 compile failure: mrp-sql.c:2449: error: expected ‘;’ before ‘while’
Summary: app-office/planner-0.14.3 compile failure: mrp-sql.c:2449: error: expected ‘;...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: GNOME Office (OBSOLETE)
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: gtk2.14-compat 253940
  Show dependency tree
 
Reported: 2008-07-15 01:17 UTC by Ed Catmur
Modified: 2008-12-04 20:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mrp-sql-G_STMT_START.patch (mrp-sql-G_STMT_START.patch,443 bytes, patch)
2008-07-15 01:34 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2008-07-15 01:17:45 UTC
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.
Comment 1 Ed Catmur 2008-07-15 01:34:49 UTC
Created attachment 160406 [details, diff]
mrp-sql-G_STMT_START.patch

Turns out it's a glib issue.
Comment 2 Wormo (RETIRED) gentoo-dev 2008-07-15 06:38:21 UTC
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)?
Comment 3 Chris Mayo 2008-11-08 09:27:47 UTC
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
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-12-02 12:46:00 UTC
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.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-12-04 15:36:18 UTC
fixed in r1 and r2 (one for each libgda slot). Thanks for reporting and the patch.