Number: 1373
Title: Compilation problems on HP-UX Itanium
Submitter: Geert Coelmont
Date: Fri Jun 6 05:33:35 2008
Subsys: Build/Installation
Version: 2.18
System: Other-Other-HP-UX B.11.23 U ia64
Severity: minor
Problem:
I had a few problems compiling graphviz on HP-UX Itanium.

1) complaint about unknown option +b in gcc (we use 4.2.2)
   solution: in configure script i had to add ${wl} twice in the line below:
        hppa*64*|ia64*)
          hardcode_libdir_flag_spec_ld='+b $libdir'
   becomes:
        hppa*64*|ia64*)
          hardcode_libdir_flag_spec_ld='${wl}+b ${wl}$libdir'
   this line appears a few times in the configure script, i only added it in the first occurence, but likely the other ones should change as well

2) lib/ast/pathpath.c and others missing F_OK / W_OK symbol I fixed this by removing the R_OK #define in ast_common.h <unistd.h> normally defines F_OK but only #ifndef R_OK

3) a few warnings about redefine MIN and MAX, nothing to worry about.

4) when linking inside cmd/dot I had an error on the following link command: gcc -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -o .libs/dot_builtins dot.o dot_builtins.o no_demand_loading.o -Wl,+b -Wl,/usr/local/lib/hpux32 -L/usr/local/lib ../../plugin/dot_layout/.libs/libgvplugin_dot_layout.so ../../plugin/neato_layout/.libs/libgvplugin_neato_layout.so ../../plugin/core/.libs/libgvplugin_core.so ../../lib/gvc/.libs/libgvc_builtins.so ../../lib/pathplan/.libs/libpathplan.so ../../lib/graph/.libs/libgraph.so ../../lib/cdt/.libs/libcdt.so -lgen ../../libltdl/.libs/libltdl.so ../../plugin/gd/.libs/libgvplugin_gd.so /cob/home/gcoelmon/graphviz-2.18/lib/gvc/.libs/libgvc.so /cob/home/gcoelmon/graphviz-2.18/lib/graph/.libs/libgraph.so /cob/home/gcoelmon/graphviz-2.18/lib/cdt/.libs/libcdt.so /cob/home/gcoelmon/graphviz-2.18/lib/pathplan/.libs/libpathplan.so /cob/home/gcoelmon/graphviz-2.18/libltdl/.libs/libltdl.so -L/usr/local/lib/hpux32 -lm ../../lib/gd/.libs/libgvgd_C.a /usr/local/lib/hpux32/libfreetype.so -lz -Wl,+b -W l,/usr/local/lib/graphviz I was able to fix this by adding -L${top_builddir}/lib/gvc/.libs into the variable am__append_2 in cmd/dot/Makefile

PS- dot and the graphviz suite are great tools! thanks!!
Comments:
[ellson]

1) This problem should be reported to the maintainers of autoconf. 2) I'll try making this change. I hope it doesn't break on other platforms.... 4) I don't understand this one.


Makefile.am contains:   dot_LDADD = $(top_builddir)/lib/gvc/libgvc.la
You command contains:  /cob/home/gcoelmon/graphviz-2.18/lib/gvc/.libs/libgvc.so

Some kind of libtool problem on your platform, perhaps?
Fix: see description
Owner: ellson
Status: *