#13963 closed defect (fixed)
'port install evince' fails with gcc 'parse error' in comics-document.c -- OSX 10.4.11 PPC
Reported by: | khillig@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | evince nomaintainer | Cc: | sfiera@… |
Port: |
Description (last modified by jmpalacios (Juan Manuel Palacios))
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...
Change History (6)
comment:1 Changed 17 years ago by sfiera@…
Cc: | sfiera@… added |
---|---|
Keywords: | evince nomaintainer added |
Milestone: | → Port Bugs |
comment:2 Changed 17 years ago by sfiera@…
And now without the overzealous WikiFormatting:
I don't have GNOME installed (nor the time to install all of it), but on my system it appears that, depending on the definition of __DARWIN_UNIX03
, /usr/include/stdio.h may define stdout as a value containing an &.
It might be worth editing the portfile (it's at port file evince
) to include the following:
configure.cflags-append "-D__DARWIN_UNIX03=1"
...and if that doesn't work, try:
configure.cflags-append "-D__DARWIN_UNIX03=0"
comment:3 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Description: | modified (diff) |
---|
comment:5 Changed 17 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Marking fixed as per comment:4.
Copying what I just emailed:
I don't have GNOME installed (nor the time to install all of it), but on my system it appears that, depending on the definition of DARWIN_UNIX03, /usr/include/stdio.h may define stdout as a value containing an &.
It might be worth editing the portfile (it's at
port file evince
) to include the following:...and if that doesn't work, try: