On 4/15/13 1:21 AM, David Altimira wrote:
> Hi,
>
> I have recently tried to install octave but I got a problem when building it. 
> It failed when trying to build graphviz. Afterwards I tried to install 
> graphviz alone but I could not.
>

That is as it should be.

> I am using Mac Os X 10.8.3.
>
> The command I used to install is: sudo fink install graphviz-dev
>

You normally don't need to use 'sudo' before 'fink' if you have fink 
configured with the default options.

> System information:
>
> Package manager version: 0.34.7
> Distribution version: selfupdate-rsync Sun Apr 14 20:48:06 2013, 10.8, x86_64
> Trees: local/main stable/main
> Xcode.app: 4.6.1
> Xcode command-line tools: 4.6.0.0.1.1362189000
> Max. Fink build jobs:  1
>
> The last few lines reported are:
>

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. 
-I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt 
-I../../lib/pathplan -DDEMAND_LOADING=1 -I/sw/lib/ocaml 
-I/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Headers
 
-I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers 
-I/sw/lib/ocaml -idirafter 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers 
-I/sw/include -I/sw/include -g -O2 -MT libgv_ocaml_la-gv_ocaml.lo -MD 
-MP -MF .deps/libgv_ocaml_la-gv_ocaml.Tpo -c gv_ocaml.cpp  -fno-common 
-DPIC -o .libs/libgv_ocaml_la-gv_ocaml.o


> gv_ocaml.cpp:866:20: error: static declaration of 'caml_array_length' follows 
> non-static declaration
>      SWIGSTATIC int caml_array_length( CAML_VALUE arr );
>                     ^
> /sw/lib/ocaml/caml/mlvalues.h:252:21: note: previous declaration is here
> CAMLextern mlsize_t caml_array_length (value);   /* size in items */
>                      ^
> 1 error generated.

<snip>

> Failed: phase compiling: graphviz-2.26.3-6 failed
>
> I have tried to search a solution to this problem, but I could not find any 
> solution. I would appreciate if anybody could explain me why I am getting 
> this error and the steps I should follow to solve it.
>
> Thanks,
>
> David.

I was able to reproduce this problem after installing the new 
ocaml-4.00.1.  Ocaml seems to like to change things around incompatibly. 
  I've cc'ed the graphviz maintainer.

As a workaround, you might try installing the prior version of ocaml, 
and then build graphviz:

1)  Download

http://fink.cvs.sourceforge.net/viewvc/fink/dists/10.7/stable/main/finkinfo/languages/ocaml.info?revision=1.4
 


and put that in /sw/fink/10.7/local/main/finkinfo

2)  Copy /sw/fink/dists/stable/main/finkinfo/languages/ocaml.patch over 
to /sw/fink/dists/local/main/finkinfo

3)  Use "fink install ocaml-3.12.1-1" to install that version.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to