installing dia

Ryan Schmidt ryandesign at macports.org
Thu Aug 13 00:58:29 PDT 2009


On Aug 12, 2009, at 11:50, John Jason Brzozowski wrote:

> More errors, yikes:
>
> --->  Building gettext
> Error: Target org.macports.build returned: shell command " cd "/opt/ 
> local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel 
> _gettext/work/gettext-0.17" && make all " returned error 2
> Command output: make[3]: Nothing to be done for `all'.
>
> /usr/bin/gcc-4.0 -std=gnu99 -O2 -o .libs/xgettext xgettext- 
> xgettext.o xgettext-x-c.o xgettext-x-po.o xgettext-x-sh.o xgettext- 
> x-python.o xgettext-x-lisp.o xgettext-x-elisp.o xgettext-x-librep.o  
> xgettext-x-scheme.o xgettext-x-smalltalk.o xgettext-x-java.o  
> xgettext-x-csharp.o xgettext-x-awk.o xgettext-x-ycp.o xgettext-x- 
> tcl.o xgettext-x-perl.o xgettext-x-php.o xgettext-x-rst.o xgettext- 
> x-glade.o -Wl,-framework -Wl,CoreFoundation  -L/opt/local/ 
> lib ./.libs/libgettextsrc.dylib /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel 
> _gettext/work/gettext-0.17/gettext-tools/gnulib-lib/.libs/ 
> libgettextlib.dylib -lncurses /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel 
> _gettext/work/gettext-0.17/gettext-tools/intl/.libs/libintl.dylib / 
> opt/local/lib/libiconv.dylib -lc /opt/local/lib/libexpat.dylib
> i686-apple-darwin9-gcc-4.0.1: /opt/local/lib/libexpat.dylib: No  
> such file or directory
> make[4]: *** [xgettext] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1

Is expat installed? It should be, since gettext depends on it. If  
not, install it. Does /opt/local/lib/libexpat.dylib exist? If not,  
rebuild expat. (sudo port -nf upgrade expat)


> Error: Unable to upgrade port: 1
> --->  Fetching libxslt
> --->  Attempting to fetch libxslt-1.1.24.tar.gz from http:// 
> distfiles.macports.org/libxslt
> --->  Verifying checksum(s) for libxslt
> --->  Extracting libxslt
> --->  Configuring libxslt
> --->  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_textp 
> roc_libxslt/work/libxslt-1.1.24" && make all " returned error 2
>
> /usr/bin/gcc-4.0 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup - 
> o .libs/libxslt.1.1.24.dylib  .libs/attrvt.o .libs/xslt.o .libs/ 
> xsltutils.o .libs/pattern.o .libs/templates.o .libs/ 
> variables.o .libs/keys.o .libs/numbers.o .libs/extensions.o .libs/ 
> extra.o .libs/functions.o .libs/namespaces.o .libs/imports.o .libs/ 
> attributes.o .libs/documents.o .libs/preproc.o .libs/ 
> transform.o .libs/security.o  -L/opt/local/lib /opt/local/lib/ 
> libxml2.dylib -lz -lpthread /opt/local/lib/libiconv.dylib -lm  - 
> install_name  /opt/local/lib/libxslt.1.dylib -compatibility_version  
> 3 -current_version 3.24
> i686-apple-darwin9-gcc-4.0.1: /opt/local/lib/libxml2.dylib: No such  
> file or directory
> make[2]: *** [libxslt.la] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Same as above: Is libxml2 installed? It should be, since libxslt  
depends on it. If not, install it. Does /opt/local/lib/libxml2.dylib  
exist? If not, rebuild libxml2.


> --->  Building fontconfig
> Error: Target org.macports.build returned: shell command " cd "/opt/ 
> local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_graph 
> ics_fontconfig/work/fontconfig-2.7.1" && make all " returned error 2
> make  all-am
> /bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 - 
> version-info 5:1:4 -no-undefined  -L/opt/local/lib -o  
> libfontconfig.la -rpath /opt/local/lib fcatomic.lo fcblanks.lo  
> fccache.lo fccfg.lo fccharset.lo fcdbg.lo fcdefault.lo fcdir.lo  
> fcformat.lo fcfreetype.lo fcfs.lo fcinit.lo fclang.lo fclist.lo  
> fcmatch.lo fcmatrix.lo fcname.lo fcpat.lo fcserialize.lo fcstr.lo  
> fcxml.lo ftglue.lo -liconv -L/opt/local/lib -lfreetype -lz  -lexpat
> libtool: link: /usr/bin/gcc-4.0 -dynamiclib  -o .libs/libfontconfig. 
> 1.dylib  .libs/fcatomic.o .libs/fcblanks.o .libs/fccache.o .libs/ 
> fccfg.o .libs/fccharset.o .libs/fcdbg.o .libs/fcdefault.o .libs/ 
> fcdir.o .libs/fcformat.o .libs/fcfreetype.o .libs/fcfs.o .libs/ 
> fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/ 
> fcmatrix.o .libs/fcname.o .libs/fcpat.o .libs/fcserialize.o .libs/ 
> fcstr.o .libs/fcxml.o .libs/ftglue.o   -L/opt/local/lib /opt/local/ 
> lib/libiconv.dylib /opt/local/lib/libfreetype.dylib -lz /opt/local/ 
> lib/libexpat.dylib    -install_name  /opt/local/lib/libfontconfig. 
> 1.dylib -compatibility_version 6 -current_version 6.1 -Wl,- 
> single_module
> i686-apple-darwin9-gcc-4.0.1: /opt/local/lib/libfreetype.dylib: No  
> such file or directory
> i686-apple-darwin9-gcc-4.0.1: /opt/local/lib/libexpat.dylib: No  
> such file or directory
> make[3]: *** [libfontconfig.la] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Same thing: fontconfig does depend on freetype and expat.


> --->  Building Xft2
> 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_X 
> ft2/work/libXft-2.1.13" && make all " returned error 2
>
> /usr/bin/gcc-4.0 -dynamiclib  -o .libs/libXft.2.1.13.dylib  .libs/ 
> xftcolor.o .libs/xftcore.o .libs/xftdbg.o .libs/xftdpy.o .libs/ 
> xftdraw.o .libs/xftextent.o .libs/xftfont.o .libs/ 
> xftfreetype.o .libs/xftglyphs.o .libs/xftinit.o .libs/ 
> xftlist.o .libs/xftname.o .libs/xftrender.o .libs/xftstr.o .libs/ 
> xftswap.o .libs/xftxlfd.o  -L/opt/local/lib /opt/local/lib/ 
> libfontconfig.dylib libfreetype.dylib libexpat.dylib /opt/local/lib/ 
> libexpat.dylib /opt/local/lib/libfreetype.dylib -lz /opt/local/lib/ 
> libXrender.dylib /opt/local/lib/libX11.dylib /opt/local/lib/ 
> libXau.dylib /opt/local/lib/libXdmcp.dylib  -install_name  /opt/ 
> local/lib/libXft.2.dylib -compatibility_version 4 -current_version  
> 4.13
> i686-apple-darwin9-gcc-4.0.1: /opt/local/lib/libfontconfig.dylib:  
> No such file or directory
> i686-apple-darwin9-gcc-4.0.1: libfreetype.dylib: No such file or  
> directory
> i686-apple-darwin9-gcc-4.0.1: libexpat.dylib: No such file or  
> directory
> i686-apple-darwin9-gcc-4.0.1: /opt/local/lib/libexpat.dylib: No  
> such file or directory
> i686-apple-darwin9-gcc-4.0.1: /opt/local/lib/libfreetype.dylib: No  
> such file or directory
> make[2]: *** [libXft.la] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Same thing: Xft2 depends on fontconfig, freetype, expat. It looks odd  
to me that we see bare library names here for freetype and expat,  
without their prefixes, but maybe that's normal; let's deal with the  
other bits first.


> --->  Building glib2
> Error: Target org.macports.build returned: shell command " cd "/opt/ 
> local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel 
> _glib2/work/glib-2.20.4" && make all " returned error 2i686-apple- 
> darwin9-gcc-4.0.1: /opt/local/lib/libintl.dylib: No such file or  
> directory
> make[4]: *** [libglib-2.0.la] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Same thing: glib2 does require gettext (which provides libintl).


> --->  Configuring atk
> Error: Target org.macports.configure returned: configure failure:  
> shell command " cd "/opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel 
> _atk/work/atk-1.26.0" && ./configure --prefix=/opt/local --enable- 
> static " returned error 1
> Command output: checking if the linker (/usr/libexec/gcc/i686-apple- 
> darwin9/4.0.1/ld) is GNU ld... no
> checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686- 
> apple-darwin9/4.0.1/ld) supports shared libraries... yes
> checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common
> checking if /usr/bin/g++-4.0 PIC flag -fno-common works... yes
> checking if /usr/bin/g++-4.0 static flag -static works... no
> checking if /usr/bin/g++-4.0 supports -c -o file.o... yes
> checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686- 
> apple-darwin9/4.0.1/ld) supports shared libraries... yes
> checking dynamic linker characteristics... darwin9.8.0 dyld
> checking how to hardcode library paths into programs... immediate
> appending configuration tag "F77" to libtool
> checking for some Win32 platform... no
> checking for native Win32 platform... no
> checking for aclocal flags...
> checking for pkg-config... /opt/local/bin/pkg-config
> checking pkg-config is at least version 0.16... yes
> checking for GLIB - version >= 2.0.0...
> *** 'pkg-config --modversion glib-2.0' returned 2.14.1, but GLIB  
> (2.12.9)
> *** was found! If pkg-config was correct, then it is best

atk requires a newer glib2 than you had; glib2 needs to be upgraded  
first, and MacPorts did try to, but failed. MacPorts 1.8 will no  
longer try to upgrade a port if one of its dependencies failed. If  
you want that behavior with MacPorts 1.7.1 or earlier, the -x switch  
does that, e.g. "sudo port -x upgrade atk" would not attempt to  
upgrade atk if its dependency glib2 failed to upgrade. I use the -x  
switch every time I upgrade anything.




More information about the macports-users mailing list