Number: 1389
Title: Problem installing on HP-UX 11.23
Submitter: Brian Bukowski
Date: Wed Jul 16 14:00:33 2008
Subsys: Build/Installation
Version: 2.18
System: Other-Other-
Severity: minor
Problem:
I'm attempting to install Graphviz 2.18 on an HP-UX server. I extracted the tar file, ran a ./configure --with-Xawincludedir=/usr/contrib/X11R6/include --with-Xawlibdir=/usr/contrib/X11R6/lib, and then attempted to make the file. It got hung up while making the sfio.

It said the error occured in line 895. I looked in the sfio make file, and there aren't even 895 lines.


> > make
No suffix list.
        make  all-recursive
No suffix list.
Making all in libltdl
        make  all-am
Making all in lib
No suffix list.
Making all in cdt
Making all in graph
Making all in agraph
Making all in gd
Making all in pathplan
Making all in agutil
Making all in sfio
Make: line 895: syntax error.  Stop.
*** Error exit code 1

Stop. *** Error exit code 1

Stop. *** Error exit code 1


Input file: b1389.txt
Comments:
[brian] When I downloaded and tried to configure Graphviz-2.20.2, I wasn't even able to. I got this error message:


./configure
./configure[2414]: ${GRAPHVIZ_VERSION_MICRO:0:4}: The specified substitution is not valid for this command.
./configure[2414]: GRAPHVIZ_VERSION_BUILD=`expr ( ${GRAPHVIZ_VERSION_MICRO:0:4} - 2000 ) * 12 + ${GRAPHVIZ_VERSION_MICRO:4:2}`${GRAPHVIZ_VERSION_MICRO:6:2}: The specified substitution is not valid for this command.

[ellson]Perhaps this is a shell problem. Can you try running from a bash shell?

Or perhaps its with /usr/bin/expr ??


   $ expr --version
   expr (GNU coreutils) 6.12
   Copyright (C) 2008 Free Software Foundation, Inc.
   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.

Written by Mike Parker.

This expr stuff is for creating Windows compatible version strings. Probably we can find a way to avoid executing it on other platforms...

[ellson] On the suspicion that /usr/bin/expr is broken on HPUX, I've put in a change to configure.ac to avoid running expr except for the Windows builds.

The change should be in tomorrow's snapshot.

[glen] expr is not the broken thing here. It's the use of the construct ${XXX:n:m} which is supposed to be POSIX-compliant, but perhaps HPUX's shell isn't up to scratch.

[brian]

Sorry for the delay, I was out of the office yesterday. Thanks for making the change to the dev snapshot. I just downloaded and tried to install graphviz-2.21.20080718.0445.tar.gz. Here's the error message I received:


make
No suffix list.
        make  all-recursive
No suffix list.
Making all in libltdl
        make  all-am
Making all in lib
No suffix list.
Making all in cdt
        source='dtclose.c' object='dtclose.lo' libtool=yes 
        DEPDIR=.deps depmode=hp /bin/sh ../../config/depcomp 
        /bin/sh ../../libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I. -I../..   -I../.. -I/usr/local/include  -Wp,-H30000 -c -o dtclose.lo dtclose.c
 cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I/usr/local/include -Wp,-H30000 -c dtclose.c -Wp,-M.deps/dtclose.TPlo  -DPIC -o .libs/dtclose.o
(Bundled) cc: "cdt.h", line 53: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 53: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 53: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 54: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 54: error 1000: Unexpected symbol: "Dtdisc_t".
(Bundled) cc: "cdt.h", line 54: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 54: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 54: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 55: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 55: error 1000: Unexpected symbol: "Dtdisc_t".
(Bundled) cc: "cdt.h", line 55: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 55: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 55: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 57: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 57: error 1000: Unexpected symbol: "Dtdisc_t".
(Bundled) cc: "cdt.h", line 56: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 57: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 57: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 58: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 58: error 1000: Unexpected symbol: "Dtdisc_t".
(Bundled) cc: "cdt.h", line 58: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 58: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 58: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 60: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 60: error 1000: Unexpected symbol: "size_t".
(Bundled) cc: "cdt.h", line 59: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 60: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 60: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 61: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 61: error 1000: Unexpected symbol: "Dtdisc_t".
(Bundled) cc: "cdt.h", line 61: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 61: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 61: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 64: error 1000: Unexpected symbol: "Dtlink_t".
(Bundled) cc: "cdt.h", line 64: error 1573: Type of "right" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 64: error 1578: Size of struct or union member is unknown.
(Bundled) cc: "cdt.h", line 202: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 202: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "cdt.h", line 202: error 1573: Type of "<<<NULL_SYMBOL>>>" is undefined due to an illegal declaration.
(Bundled) cc: "cdt.h", line 203: error 1000: Unexpected symbol: "*".
(Bundled) cc: "cdt.h", line 203: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "cdt.h", line 204: error 1000: Unexpected symbol: "*".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop. *** Error exit code 1

Stop. *** Error exit code 1

Stop. *** Error exit code 1

Here's the Makefile from this attempt.

[north] We depend on having an ANSI C compiler. If you don't have an ANSI C compiler, you should probably give up at this point.
Owner: *
Status: *