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
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:
          hardcode_libdir_flag_spec_ld='+b $libdir'
          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/ ../../plugin/neato_layout/.libs/ ../../plugin/core/.libs/ ../../lib/gvc/.libs/ ../../lib/pathplan/.libs/ ../../lib/graph/.libs/ ../../lib/cdt/.libs/ -lgen ../../libltdl/.libs/ ../../plugin/gd/.libs/ /cob/home/gcoelmon/graphviz-2.18/lib/gvc/.libs/ /cob/home/gcoelmon/graphviz-2.18/lib/graph/.libs/ /cob/home/gcoelmon/graphviz-2.18/lib/cdt/.libs/ /cob/home/gcoelmon/graphviz-2.18/lib/pathplan/.libs/ /cob/home/gcoelmon/graphviz-2.18/libltdl/.libs/ -L/usr/local/lib/hpux32 -lm ../../lib/gd/.libs/libgvgd_C.a /usr/local/lib/hpux32/ -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!!

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. contains:   dot_LDADD = $(top_builddir)/lib/gvc/
You command contains:  /cob/home/gcoelmon/graphviz-2.18/lib/gvc/.libs/

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