Number: 1095
Title: Build of --enable-static --enable-shared=no appears to fail during install
Submitter: Mathias
Date: Wed Mar 7 14:08:45 2007
Subsys: Build
Version: 2.13
System: *-*-
Severity: minor
Problem:
I want to build a static library from graphviz-2.12 source. I assume that I do this with:

./configure --enable-static --enable-shared=no --prefix=/some/where

configure and make runs fine, but a 'make install' giving me the following error:

<D> make[4]: Entering directory `/home/me/test/graphviz-2.12/cmd/dot' (cd /home/me/test/graphviz-static/bin; for i in neato twopi fdp circo; do rm -f $i; ln -s dot $i; done;) if test "x" = "x"; then (cd /home/me/test/graphviz-static/bin; ./dot -c;); fi /bin/sh: line 1: ./dot: No such file or directory make[4]: *** [install-exec-hook] Error 127

in /home/me/test/graphviz-2.12/cmd/dot there is no ./dot binary but an ./dot_static one. (assuming of the --enable-static flag) and in /home/me/test/graphviz-static/bin there is no valid linking. What did I do wrong?


me@ipc837:~/test/graphviz-2.12/cmd/dot$ ls -l
total 4800
-rw-r--r--  1 me me   29200 Mar  7 12:53 Makefile
-rw-r--r--  1 me me    3616 Aug 29  2006 Makefile.am
-rw-r--r--  1 me me   30831 Dec  4 23:02 Makefile.in
-rw-r--r--  1 me me    2980 Aug  9  2006 Makefile.old
-rw-r--r--  1 me me   25663 Sep 29 18:05 dot.1
-rw-r--r--  1 me me    4376 Sep 11 20:33 dot.c
-rw-r--r--  1 me me   47592 Mar  7 13:00 dot.o
-rw-r--r--  1 me me   26546 Dec  4 23:07 dot.pdf
-rwxr-xr-x  1 me me 4708892 Mar  7 13:00 dot_static
-rw-r--r--  1 me me    2380 Mar  7 13:00 no_demand_loading.o
me@ipc837:~/test/graphviz-2.12/cmd/dot$

me@ipc837:~/test/graphviz-static/bin$ ls -l total 4612 lrwxrwxrwx 1 me me 3 Mar 7 14:37 circo -> dot -rwxr-xr-x 1 me me 4708892 Mar 7 14:37 dot_static lrwxrwxrwx 1 me me 3 Mar 7 14:37 fdp -> dot lrwxrwxrwx 1 me me 3 Mar 7 14:37 neato -> dot lrwxrwxrwx 1 me me 3 Mar 7 14:37 twopi -> dot me@ipc837:~/test/graphviz-static/bin$

I need the static libraries for linking all needed graphviz code statically into my application. My system is: Debian 3.1 (I'm not sure if I must use the the --enable-static flag)
Owner: *
Status: *