[MacPorts] #13963: 'port install evince' fails with gcc 'parse
error' in comics-document.c -- OSX 10.4.11 PPC (fwd)
Kurt Hillig
khillig at umich.edu
Wed Jan 16 19:06:25 PST 2008
Apologies if you see this twice, but after taking a month break I'm back
trying to get gnucash installed once again - and once again I'm running
into a roadblock. I've already opened a ticket (see below), but 'port
info evince' says:
Maintainers: nomaintainer at macports.org
I'm not a C programmer, but I've coded in BASIC, FORTRAN, COBOL, Algol,
PL/1, Pascal, APL, assemblers from Motorola 6800s through the PDP-11 and
VAX/VMS to the IBM 3090, csh and Perl so I think I've got a pretty good
eye for syntax - and I don't see anything obviously wrong with the code.
Anyone have any ideas? I've got a (non-profit) corporate tax return to
get out some time in the next couple months, and I'm starting to get
nervous...
Dr. Kurt Hillig
UMNet Administration I always tell the Fax (734)763-4050
University of Michigan absolute truth, Phone (734)647-8778
Ann Arbor, MI 48105-3640 as I see it. EMail khillig(at)umich.edu
> Computers were invented to help people waste more time faster <
---------- Forwarded message ----------
Date: Thu, 17 Jan 2008 02:48:17 -0000
From: MacPorts <trac at macosforge.org>
Reply-To: noreply at macosforge.org
To: khillig at umich.edu, macports-tickets at lists.macosforge.org
Subject: [MacPorts] #13963: 'port install evince' fails with gcc 'parse error'
in comics-document.c -- OSX 10.4.11 PPC
#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:
Component: ports | Version: 1.6.0
Keywords: |
-------------------------------+--------------------------------------------
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>
MacPorts </projects/macports>
Ports system for Mac OS
!DSPAM:478ec216228071385515324!
More information about the macports-users
mailing list