[MacPorts] #13963: 'port install evince' fails with gcc 'parse error' in comics-document.c -- OSX 10.4.11 PPC (fwd)
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@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@macosforge.org> Reply-To: noreply@macosforge.org To: khillig@umich.edu, macports-tickets@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@umich.edu | Owner: macports-tickets@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!
On 16 Jan, 2008, at 22:06, Kurt Hillig wrote:
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@macports.org
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, trying: configure.cflags-append "-D__DARWIN_UNIX03=0" If either of those works, post to the ticket [1] and I can amend the portfile. But I'm just shooting in the dark here; I hope something comes of it :) [1] http://trac.macosforge.org/projects/macports/ticket/13963 Chris
Kurt, I will not be able to help. I do have this additional information and questions though. I ran the install command and it fails for me at xmlto - I have this problem from an earlier install. I wonder if my issue is because I am on intel.
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
My questions are: what version of xmlto do you have installed? what version of xcode are you using? I have found that older versions (<2.4) have issues with compiling some ports. Good luck. Michael
On Wed, 16 Jan 2008, Michael Franz wrote:
I will not be able to help. I do have this additional information and questions though.
I ran the install command and it fails for me at xmlto - I have this problem from an earlier install. I wonder if my issue is because I am on intel.
[snip]
My questions are: what version of xmlto do you have installed?
I'll have to check when I get home tonight. I assume that this is something installed with macports? If not I'll have to figure out what/where it is first...
what version of xcode are you using? I have found that older versions (<2.4) have issues with compiling some ports.
Either 2.4 or 2.5 - again, I'll have to check when I get home. 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 <
On Wed, 16 Jan 2008, Chris Pickel wrote:
On 16 Jan, 2008, at 22:06, Kurt Hillig wrote:
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@macports.org
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, trying:
configure.cflags-append "-D__DARWIN_UNIX03=0"
This sounds promising - I'll take a look when I get home tonight and let you know what happens!
If either of those works, post to the ticket [1] and I can amend the portfile. But I'm just shooting in the dark here; I hope something comes of it :)
I'd keep my fingers crossed but that makes it really hard to type... ;-) 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 <
Good news, bad news - but the good news is good! I edited the portfile to read: : configure.args \ --disable-scrollkeeper \ --enable-nautilus \ --with-print=gtk configure.ldflags-append -lstdc++ configure.cflags-append "-D__DARWIN_UNIX03=1" : and it worked: G5Q:khillig > sudo port install evince Portfile changed since last build; discarding previous state. ---> Fetching evince ---> Verifying checksum(s) for evince ---> Extracting evince ---> Configuring evince ---> Building evince with target all ---> Staging evince into destroot Warning: violation by /opt/local/man Warning: evince violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! ---> Installing evince 2.21.1_0 ---> Activating evince 2.21.1_0 ---> Cleaning evince The bad news: see the warnings above. Thanks! Now we'll see if everything else will build and install properly... 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 <
On Wed, 16 Jan 2008, Chris Pickel wrote:
On 16 Jan, 2008, at 22:06, Kurt Hillig wrote:
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@macports.org
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, trying:
configure.cflags-append "-D__DARWIN_UNIX03=0"
If either of those works, post to the ticket [1] and I can amend the portfile. But I'm just shooting in the dark here; I hope something comes of it :)
[1] http://trac.macosforge.org/projects/macports/ticket/13963
Chris
!DSPAM:478ecc1f296662129515775!
participants (3)
-
Chris Pickel
-
Kurt Hillig
-
Michael Franz