[MacPorts] #13963: 'port install evince' fails with gcc 'parse
error' in comics-document.c -- OSX 10.4.11 PPC
MacPorts
trac at macosforge.org
Thu Jan 17 10:07:48 PST 2008
#13963: 'port install evince' fails with gcc 'parse error' in comics-document.c --
OSX 10.4.11 PPC
--------------------------------+-------------------------------------------
Reporter: khillig at umich.edu | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: | Keywords: evince nomaintainer
--------------------------------+-------------------------------------------
Old description:
> G5Q:khillig > sudo port install -f evince
> ---> Fetching evince
> ---> Verifying checksum(s) for evince
> ---> Extracting evince
> ---> Configuring evince
> ---> Building evince with target all
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_evince/work/evince-2.21.1"
> && make all " returned error 2
> Command output: then mv -f ".deps/tiff-document.Tpo" ".deps/tiff-
> document.Plo"; else rm -f ".deps/tiff-document.Tpo"; exit 1; fi
> mkdir .libs
> /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
> -I../../libdocument -DXTHREADS -D_REENTRANT -DORBIT2=1
> -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
> -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
> -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include
> -I/opt/local/include/freetype2 -I/opt/local/include/libpng12
> -I/usr/X11R6/include -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib
> /gnome-vfs-2.0/include -I/opt/local/include/gconf/2
> -I/opt/local/include/orbit-2.0 -DORBIT2=1 -D_REENTRANT
> -I/opt/local/include/libgnome-2.0 -I/opt/local/include/orbit-2.0
> -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-vfs-2.0
> -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-
> activation-2.0 -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE
> -I/opt/local/include -O2 -MT tiff-document.lo -MD -MP -MF .deps/tiff-
> document.Tpo -c tiff-document.c -fno-common -DPIC -o .libs/tiff-
> document.o
> <snip>
> Making all in comics
> if /bin/sh ../../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0
> -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libdocument -DXTHREADS
> -D_REENTRANT -DORBIT2=1 -I/opt/local/include/gtk-2.0
> -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
> -I/opt/local/include/cairo -I/opt/local/include/pango-1.0
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include -I/opt/local/include/freetype2
> -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include
> /gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include
> -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -DORBIT2=1
> -D_REENTRANT -I/opt/local/include/libgnome-2.0
> -I/opt/local/include/orbit-2.0 -I/opt/local/include/gconf/2
> -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include
> -I/opt/local/include -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libbonobo-2.0
> -I/opt/local/include/bonobo-activation-2.0 -DGDK_MULTIHEAD_SAFE
> -DGTK_MULTIHEAD_SAFE -I/opt/local/include -O2 -MT comics-document.lo
> -MD -MP -MF ".deps/comics-document.Tpo" -c -o comics-document.lo comics-
> document.c; \
> then mv -f ".deps/comics-document.Tpo" ".deps/comics-document.Plo"; else
> rm -f ".deps/comics-document.Tpo"; exit 1; fi
> mkdir .libs
> /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
> -I../../libdocument -DXTHREADS -D_REENTRANT -DORBIT2=1
> -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
> -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
> -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include
> -I/opt/local/include/freetype2 -I/opt/local/include/libpng12
> -I/usr/X11R6/include -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib
> /gnome-vfs-2.0/include -I/opt/local/include/gconf/2
> -I/opt/local/include/orbit-2.0 -DORBIT2=1 -D_REENTRANT
> -I/opt/local/include/libgnome-2.0 -I/opt/local/include/orbit-2.0
> -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-vfs-2.0
> -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-
> activation-2.0 -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE
> -I/opt/local/include -O2 -MT comics-document.lo -MD -MP -MF .deps/comics-
> document.Tpo -c comics-document.c -fno-common -DPIC -o .libs/comics-
> document.o
> comics-document.c: In function 'comics_document_load':
> comics-document.c:109: error: parse error before '&' token
> comics-document.c:117: error: 'quoted_file' undeclared (first use in this
> function)
> comics-document.c:117: error: (Each undeclared identifier is reported
> only once
> comics-document.c:117: error: for each function it appears in.)
> comics-document.c:118: error: 'mime_type' undeclared (first use in this
> function)
> comics-document.c:140: error: invalid lvalue in unary '&'
> comics-document.c:155: warning: passing argument 1 of 'g_strsplit' from
> incompatible pointer type
> make[3]: *** [comics-document.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I took a look at comics-document.c and I don't see anything obviously
> wrong with line 109, where the first error is reported:
>
> gchar *list_files_command = NULL, *stdout, *quoted_file,
> *mime_type;
>
> The error message - parse error before '&' token - is mysterious to me,
> as there is no '&' on that line; given the other reported errors it looks
> like it's barfing on the '*stdout', since it says 'quoted_file' and
> 'mime_type' are undeclared, and the error on line 140 refers to this:
>
> success = g_spawn_command_line_sync (list_files_command,
> &stdout, NULL, &retval,
> error);
>
> where I suspect the '&stdout' is the culprit.
>
> I'm not a C programmer (I can still code in FORTRAN, for what that's
> worth) so I'm not sure what a suitable fix is; but this port has no
> maintainer...
New description:
{{{
G5Q:khillig > sudo port install -f evince
---> Fetching evince
---> Verifying checksum(s) for evince
---> Extracting evince
---> Configuring evince
---> Building evince with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_evince/work/evince-2.21.1"
&& make all " returned error 2
Command output: then mv -f ".deps/tiff-document.Tpo" ".deps/tiff-
document.Plo"; else rm -f ".deps/tiff-document.Tpo"; exit 1; fi
mkdir .libs
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I../../libdocument -DXTHREADS -D_REENTRANT -DORBIT2=1
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
-I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng12
-I/usr/X11R6/include -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib
/gnome-vfs-2.0/include -I/opt/local/include/gconf/2
-I/opt/local/include/orbit-2.0 -DORBIT2=1 -D_REENTRANT
-I/opt/local/include/libgnome-2.0 -I/opt/local/include/orbit-2.0
-I/opt/local/include/gconf/2 -I/opt/local/include/gnome-vfs-2.0
-I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-
activation-2.0 -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE
-I/opt/local/include -O2 -MT tiff-document.lo -MD -MP -MF .deps/tiff-
document.Tpo -c tiff-document.c -fno-common -DPIC -o .libs/tiff-
document.o
<snip>
Making all in comics
if /bin/sh ../../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0
-DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libdocument -DXTHREADS
-D_REENTRANT -DORBIT2=1 -I/opt/local/include/gtk-2.0
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
-I/opt/local/include/cairo -I/opt/local/include/pango-1.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include
/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include
-I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -DORBIT2=1
-D_REENTRANT -I/opt/local/include/libgnome-2.0
-I/opt/local/include/orbit-2.0 -I/opt/local/include/gconf/2
-I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include
-I/opt/local/include -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/libbonobo-2.0
-I/opt/local/include/bonobo-activation-2.0 -DGDK_MULTIHEAD_SAFE
-DGTK_MULTIHEAD_SAFE -I/opt/local/include -O2 -MT comics-document.lo -MD
-MP -MF ".deps/comics-document.Tpo" -c -o comics-document.lo comics-
document.c; \
then mv -f ".deps/comics-document.Tpo" ".deps/comics-document.Plo"; else
rm -f ".deps/comics-document.Tpo"; exit 1; fi
mkdir .libs
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I../../libdocument -DXTHREADS -D_REENTRANT -DORBIT2=1
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
-I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng12
-I/usr/X11R6/include -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib
/gnome-vfs-2.0/include -I/opt/local/include/gconf/2
-I/opt/local/include/orbit-2.0 -DORBIT2=1 -D_REENTRANT
-I/opt/local/include/libgnome-2.0 -I/opt/local/include/orbit-2.0
-I/opt/local/include/gconf/2 -I/opt/local/include/gnome-vfs-2.0
-I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-
activation-2.0 -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE
-I/opt/local/include -O2 -MT comics-document.lo -MD -MP -MF .deps/comics-
document.Tpo -c comics-document.c -fno-common -DPIC -o .libs/comics-
document.o
comics-document.c: In function 'comics_document_load':
comics-document.c:109: error: parse error before '&' token
comics-document.c:117: error: 'quoted_file' undeclared (first use in this
function)
comics-document.c:117: error: (Each undeclared identifier is reported only
once
comics-document.c:117: error: for each function it appears in.)
comics-document.c:118: error: 'mime_type' undeclared (first use in this
function)
comics-document.c:140: error: invalid lvalue in unary '&'
comics-document.c:155: warning: passing argument 1 of 'g_strsplit' from
incompatible pointer type
make[3]: *** [comics-document.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
}}}
I took a look at comics-document.c and I don't see anything obviously
wrong with line 109, where the first error is reported:
{{{
gchar *list_files_command = NULL, *stdout, *quoted_file,
*mime_type;
}}}
The error message - parse error before '&' token - is mysterious to me, as
there is no '&' on that line; given the other reported errors it looks
like it's barfing on the '*stdout', since it says 'quoted_file' and
'mime_type' are undeclared, and the error on line 140 refers to this:
{{{
success = g_spawn_command_line_sync (list_files_command,
&stdout, NULL, &retval,
error);
}}}
where I suspect the '&stdout' is the culprit.
I'm not a C programmer (I can still code in FORTRAN, for what that's
worth) so I'm not sure what a suitable fix is; but this port has no
maintainer...
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13963#comment:3>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list