gnumeric will not install

Ryan Schmidt ryandesign at macports.org
Sun Apr 11 16:22:04 PDT 2010


Hi Paul. Don't forget to Reply All so your replies go to the list too, not just to me. I'm including your message in full below for the benefit of the archives:


On Apr 11, 2010, at 09:44, reiser.paul at gmail.com wrote:

> On Apr 11, 2010, at 09:44, reiser.paul at gmail.com wrote:
> 
>> On Sun, Apr 11, 2010 at 8:56 AM, Ryan Schmidt wrote:
>> 
>>> On Apr 11, 2010, at 07:02, reiser.paul at gmail.com wrote:
>>> 
>>> >  sudo port install gnumeric
>>> > --->  Computing dependencies for gnumeric
>>> > --->  Building libxslt
>>> > Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/
>>> > build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libxslt/work/libxslt-1.1.26" && /usr/bin/make -j2 all " returned error 2
>>> > Command output:       _xsltSubtreeCheck in
>>> >
>>> > etc.
>>> 
>>> Need more of the log to know what went wrong. Clean, try again with the debug switch.
>>> 
>>> sudo port clean libxslt
>>> sudo port -d install libxslt
>>> 
>>> > Running OS X 10.6.1 Snow Leopard on
>> 

> Hi Ryan - thanks for the help. I entered the commands you gave:
> 
> port clean libxslt
> sudo port -d install libxslt
> 
> This gave a lot of output which I did not copy. I didn't notice any error messages in the output, and the last few lines were:
> 
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> 
> DEBUG: Executing org.macports.clean (libxslt)
> --->  Removing build directory for libxslt
> DEBUG: Removing directory: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libxslt
> DEBUG: delete: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libxslt
> DEBUG: Removing symlink: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libxslt/work
> DEBUG: delete: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libxslt/work
> 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> I will rerun this and copy the complete output if you need it.

Ok, interesting, it built libxslt correctly this time. Perhaps you had an incomplete MacPorts build attempt of libxslt on your drive from a long time ago (from a prior computer? from a prior version of Mac OS X?)


> I then entered:
> 
> sudo port install gnumeric > GnumericInstall.txt
> 
> I have attached the GnumericInstall.txt file. Also the following appeared on the terminal:
> 
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> 
> ~/SL/AAWhat> sudo port install gnumeric > GnumericInstall.txt
> Password:
> Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xrender/work/libXrender-0.9.5" && /usr/bin/make -j2 all " returned error 2
> Command output:       _XRenderCompositeTrapezoids in Trap.o
>       _XRenderCompositeTriangles in Tri.o
>       _XRenderCompositeTriStrip in Tri.o
>       _XRenderCompositeTriFan in Tri.o
>   "_XInitExtension", referenced from:
>       _XRenderFindDisplay in Xrender.o
>   "__XAllocTemp", referenced from:
>       _XRenderSetPictureClipRegion in Picture.o
>   "_XParseColor", referenced from:
>       _XRenderParseColor in Color.o
>   "_XCreatePixmap", referenced from:
>       _XRenderFindDisplay in Xrender.o
>   "_XFreePixmap", referenced from:
>       _XRenderFindDisplay in Xrender.o
>   "__XVIDtoVisual", referenced from:
>       _XRenderQueryFormats in Xrender.o
>   "__XLockMutex_fn", referenced from:
>       _XRenderDepthCheckErrorHandler in Xrender.o
>       _XRenderFindDisplay in Xrender.o
>       _XRenderFindDisplay in Xrender.o
>       _XRenderFindDisplay in Xrender.o
>       _XRenderFindDisplay in Xrender.o
>       _XRenderCloseDisplay in Xrender.o
>   "_XSync", referenced from:
>       _XRenderFindDisplay in Xrender.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [libXrender.la] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> Error: The following dependencies failed to build: gnome-doc-utils py26-libxml2 python26 tk Xft2 xrender tcl xorg-libXScrnSaver xorg-scrnsaverproto rarian getopt intltool gnome-common p5-getopt-long p5-pathtools p5-scalar-list-utils goffice gtk2 atk glib2 gtk-doc cairo libpixman jasper pango shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto libart_lgpl libglade2 libgsf gconf dbus-glib dbus orbit2 libidl policykit gnome-vfs desktop-file-utils popt gnome-mime-data libbonobo libbonoboui libgnome esound audiofile libgnomecanvas libgnomeprintui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax libgnomeprint bison libgnomecups libgnomeui gnome-keyring libgcrypt libgpg-error libtasn1 py25-gtk py25-cairo py25-numpy atlas gcc43 gmp mpfr gzip fftw-3 py25-nose py25-distribute python25 py25-gobject
> Error: Status 1 encountered during processing.
> ~/SL/AAWhat> 
> 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Note that I did not do this in my ~ directory, please let me know if that matters, and I will do it again.
> Also I should note that, based on the advice of http://www.flyn.org/apple/ I previously have created a ~/.bash_profile file containing (only) the following lines:
> 
> export PATH="/opt/local/bin:$PATH"
> export CPPFLAGS="-I/opt/local/include $CPPFLAGS"
> export LDFLAGS="-L/opt/local/lib $LDFLAGS
> 
> Again, thanks for any help
> Paul Reiser


Ok, now we're having a possibly similar problem with xrender. I again can't tell exactly what's wrong because this is not the complete debug output. The last lines of output aren't the interesting ones; the interesting ones are often hundreds or thousands of lines back in the log, that's why I ask for the full log.

It could be the same issue as with libxslt -- that you somehow have an old partial build of xrender around. Rather than solve it for xrender and leave open the possibility of encountering this for yet another port down the road, let's clean *every* port just to make sure:

sudo port clean all

This will take some minutes but ensure *everything* is cleaned up. Then try installing again -- with the debug switch, just in case it fails again so you can supply the full output. Here's the command I recommend:

sudo port -d install libxslt 2>&1 | tee ~/Desktop/libxslt.txt

This captures both stdout and stderr to the file libxslt.txt on your desktop, and you still get to see it on your screen while it's running.


Another possibility (besides interference from a partial build from an old machine) is that a dependency of xrender is not built for the right architecture; in this case that would have to be xorg-libX11. A common reason for this is if you upgraded to Snow Leopard, or migrated a pre-Snow Leopard machine's data to a Snow Leopard machine using Migration Assistant, and you were previously using MacPorts, and you didn't reinstall all your ports after upgrading. If that sounds likely, see the Migration page for instructions:

http://trac.macports.org/wiki/Migration




More information about the macports-users mailing list