failed to build dia

Normen Müller normen.mueller at googlemail.com
Mon Sep 29 03:16:10 PDT 2008


Normen Müller wrote:
> He,
> 
>    I am trying to install dia, but get the following error:
> 
> # port install dia
> --->  Fetching gtk2
> Error: Some libs are missing from your X11 installation. Please run this 
> command:
> Error: sudo ln -s libXrandr.2.dylib /usr/X11/lib/libXrandr.2.0.0.dylib
> Error: Target org.macports.fetch returned: missing 
> /usr/X11/lib/libXrandr.2.0.0.dylib
> Error: The following dependencies failed to build: gtk2 libart_lgpl
> Error: Status 1 encountered during processing.
> 
> However, at /usr/X11/lib there exist the following respective libs:
> 
> # ls -al /usr/X11/lib/libXrandr.*
> lrwxr-xr-x  1 root  wheel      17 Aug  4 21:18 
> /usr/X11/lib/libXrandr.2.1.0.dylib -> libXrandr.2.dylib
> -rwxr-xr-x  1 root  wheel  164144 Mar  5  2008 
> /usr/X11/lib/libXrandr.2.dylib
> lrwxr-xr-x  1 root  wheel      17 Feb 21  2008 
> /usr/X11/lib/libXrandr.dylib -> libXrandr.2.dylib
> -rwxr-xr-x  1 root  wheel     955 May 10 11:41 /usr/X11/lib/libXrandr.la
> 
> BTW, aren't the parameter order of 'ln' in ``Error: sudo ln -s 
> libXrandr.2.dylib /usr/X11/lib/libXrandr.2.0.0.dylib'' wrong?
> 
> Cheers,
>  /nm

I created the following link

# ln -s /usr/X11/lib/libXrandr.2.dylib /usr/X11/lib/libXrandr.2.0.0.dylib
# ls -al /usr/X11/lib/libXrandr.*
lrwxr-xr-x  1 root  wheel      30 Sep 29 11:46 /usr/X11/lib/libXrandr.2.0.0.dylib -> /usr/X11/lib/libXrandr.2.dylib
lrwxr-xr-x  1 root  wheel      17 Aug  4 21:18 /usr/X11/lib/libXrandr.2.1.0.dylib -> libXrandr.2.dylib
-rwxr-xr-x  1 root  wheel  164144 Mar  5  2008 /usr/X11/lib/libXrandr.2.dylib
lrwxr-xr-x  1 root  wheel      17 Feb 21  2008 /usr/X11/lib/libXrandr.dylib -> libXrandr.2.dylib
-rwxr-xr-x  1 root  wheel     955 May 10 11:41 /usr/X11/lib/libXrandr.la

Then I tried to re-execute the installation of dia, but:

# port install dia
--->  Fetching gtk2
--->  Attempting to fetch gtk+-2.14.3.tar.bz2 from http://mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/gtk+/2.14/
--->  Verifying checksum(s) for gtk2
--->  Extracting gtk2
--->  Configuring gtk2
--->  Building gtk2 with target all
--->  Staging gtk2 into destroot
--->  Installing gtk2 2.14.3_1+x11
--->  Activating gtk2 2.14.3_1+x11
--->  Cleaning gtk2
--->  Fetching libart_lgpl
--->  Attempting to fetch libart_lgpl-2.3.20.tar.bz2 from http://mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/libart_lgpl/2.3/
--->  Verifying checksum(s) for libart_lgpl
--->  Extracting libart_lgpl
--->  Configuring libart_lgpl
--->  Building libart_lgpl with target all
--->  Staging libart_lgpl into destroot
--->  Installing libart_lgpl 2.3.20_0
--->  Activating libart_lgpl 2.3.20_0
--->  Cleaning libart_lgpl
--->  Fetching dia
--->  Attempting to fetch dia-0.96.1.tar.bz2 from http://mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/dia/0.96/
--->  Verifying checksum(s) for dia
--->  Extracting dia
--->  Applying patches to dia
--->  Configuring dia
--->  Building dia 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_dia/work/dia-0.96.1" && make all " returned error 2
Command output:       flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_stream_close", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_stream_write", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_stream_rewind", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_image_destroy", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_image_readcmpt", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_init", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_matrix_destroy", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_image_chclrspc", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_matrix_create", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_stream_memopen", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
  "_jas_image_decode", referenced from:
      flat_namespace undefines in libgdk_pixbuf-2.0.dylib
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [dia] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Any ideas?

Cheers,
  /nm



More information about the macports-users mailing list