Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#33934 closed defect (fixed)

glib2: gnextstepsettingsbackend.c:343: error: parse error before 'in'

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: tiger Cc: cooljeanius (Eric Gallager)
Port: glib2

Description

The builds fails here:

/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..  -I/opt/local/include -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I../glib -I../glib -I.. -I../gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/opt/local/lib/gio/modules\" -DG_OS_CARBON  -I/opt/local/include -D_REENTRANT -xobjective-c -pipe -O2 -fstrict-aliasing -arch ppc -Wall -MT libgio_2_0_la-gnextstepsettingsbackend.lo -MD -MP -MF .deps/libgio_2_0_la-gnextstepsettingsbackend.Tpo -c -o libgio_2_0_la-gnextstepsettingsbackend.lo `test -f 'gnextstepsettingsbackend.c' || echo './'`gnextstepsettingsbackend.c
libtool: compile:  /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I../glib -I../glib -I.. -I../gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/opt/local/lib/gio/modules\" -DG_OS_CARBON -I/opt/local/include -D_REENTRANT -xobjective-c -pipe -O2 -fstrict-aliasing -arch ppc -Wall -MT libgio_2_0_la-gnextstepsettingsbackend.lo -MD -MP -MF .deps/libgio_2_0_la-gnextstepsettingsbackend.Tpo -c gnextstepsettingsbackend.c  -fno-common -DPIC -o .libs/libgio_2_0_la-gnextstepsettingsbackend.o
gnextstepsettingsbackend.c: In function 'g_nextstep_settings_backend_get_g_variant':
gnextstepsettingsbackend.c:343: error: parse error before 'in'
gnextstepsettingsbackend.c:350: error: 'name' undeclared (first use in this function)
gnextstepsettingsbackend.c:350: error: (Each undeclared identifier is reported only once
gnextstepsettingsbackend.c:350: error: for each function it appears in.)
gnextstepsettingsbackend.c:365: error: 'builder' undeclared (first use in this function)
gnextstepsettingsbackend.c: At top level:
gnextstepsettingsbackend.c:368: error: parse error before 'else'
gnextstepsettingsbackend.c:376: warning: type defaults to 'int' in declaration of 'value_type'
gnextstepsettingsbackend.c:376: error: 'type' undeclared here (not in a function)
gnextstepsettingsbackend.c:376: warning: initialization makes integer from pointer without a cast
gnextstepsettingsbackend.c:376: error: initializer element is not constant
gnextstepsettingsbackend.c:376: warning: data definition has no type or storage class
gnextstepsettingsbackend.c:377: error: parse error before '&' token
gnextstepsettingsbackend.c:377: warning: type defaults to 'int' in declaration of 'g_variant_builder_init'
gnextstepsettingsbackend.c:377: error: conflicting types for 'g_variant_builder_init'
../glib/gvariant.h:239: error: previous declaration of 'g_variant_builder_init' was here
gnextstepsettingsbackend.c:377: warning: data definition has no type or storage class
gnextstepsettingsbackend.c:390: error: parse error before '&' token
gnextstepsettingsbackend.c:390: warning: type defaults to 'int' in declaration of 'g_variant_builder_add_value'
gnextstepsettingsbackend.c:390: error: conflicting types for 'g_variant_builder_add_value'
../glib/gvariant.h:246: error: previous declaration of 'g_variant_builder_add_value' was here
gnextstepsettingsbackend.c:390: warning: data definition has no type or storage class
make[4]: *** [libgio_2_0_la-gnextstepsettingsbackend.lo] Error 1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.32.0/gio'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.32.0/gio'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.32.0/gio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.32.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.32.0'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.32.0" && /usr/bin/make -w all V=1 " returned error 2

Attachments (1)

main.log (583.6 KB) - added by ballapete (Peter "Pete" Dyballa) 13 years ago.
main.log

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Keywords: tiger added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: Upgrade glib2 2.30.3_0 < 2.32.0_0 fails on PPC Tiger in gnextstepsettingsbackend.cglib2: gnextstepsettingsbackend.c:343: error: parse error before 'in'

Confirmed on Tiger i386.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

I have filed a glib bug report.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Until it's resolved, you'll have to go back to glib2 @2.30.3_0.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

jeremyhu fixed this in glib2 in r91791; I'll make the same change in glib2-devel shortly.

comment:5 in reply to:  4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Replying to ryandesign@…:

I'll make the same change in glib2-devel shortly.

r91812

Next, you might run into #33988.

comment:6 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.