Number: 1379
Title: Can't compile on HP-UX
Submitter: Brian Bukowski
Date: Fri Jun 20 13:34:26 2008
Subsys: Build/Installation
Version: 2.18
System: Other-Other-
Severity: critical
Problem:
We're attempting to compile Graphviz 2.18 on a HP-UX server for use with Confluence wiki software. The server is using gcc 3.4.3 to compile. After running a ./configure command, and attempting to compile, a number of error messages appear:


No suffix list.
        make  all-recursive
No suffix list.
Making all in libltdl
        make  all-am
        /bin/sh ./libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I.       -c -o ltdl.lo ltdl.c
 cc -DHAVE_CONFIG_H -I. -c ltdl.c  -DPIC -o .libs/ltdl.o
(Bundled) cc: "ltdl.c", line 1982: error 1000: Unexpected symbol: "loader_data".
(Bundled) cc: "ltdl.c", line 2028: error 1000: Unexpected symbol: "loader_data".
(Bundled) cc: "ltdl.c", line 2027: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "ltdl.c", line 2031: error 1588: "lists" undefined.
(Bundled) cc: "ltdl.c", line 2032: error 1764: declarations as statements allowed only with ansi_extend option.
(Bundled) cc: "ltdl.c", line 2035: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "ltdl.c", line 2037: error 1558: The ! operator takes a scalar operand.
(Bundled) cc: "ltdl.c", line 2052: error 1564: Expression in while must be scalar.
(Bundled) cc: "ltdl.c", line 2054: error 1532: Reference through a non-pointer.
(Bundled) cc: "ltdl.c", line 2054: error 1600: Type clash on initialization.
(Bundled) cc: "ltdl.c", line 2060: error 1588: "module" undefined.
(Bundled) cc: "ltdl.c", line 2060: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "ltdl.c", line 2066: error 1532: Reference through a non-pointer.
(Bundled) cc: "ltdl.c", line 2066: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "ltdl.c", line 2073: error 1588: "module" undefined.
(Bundled) cc: "ltdl.c", line 2078: error 1000: Unexpected symbol: "loader_data".
(Bundled) cc: "ltdl.c", line 2077: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "ltdl.c", line 2079: error 1573: Type of "module" is undefined due to an illegal declaration.
(Bundled) cc: "ltdl.c", line 2082: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "ltdl.c", line 2088: error 1000: Unexpected symbol: "loader_data".
(Bundled) cc: "ltdl.c", line 2087: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "ltdl.c", line 2089: error 1573: Type of "module" is undefined due to an illegal declaration.
(Bundled) cc: "ltdl.c", line 2092: error 1588: "syms" undefined.
(Bundled) cc: "ltdl.c", line 2092: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type.
(Bundled) cc: "ltdl.c", line 2092: error 1549: Modifiable lvalue required for assignment operator.
(Bundled) cc: "ltdl.c", line 2094: error 1560: Modifiable lvalue required with operator "++".
(Bundled) cc: "ltdl.c", line 2094: error 1561: Increment and decrement operators take scalar operand.
(Bundled) cc: "ltdl.c", line 2095: error 1532: Reference through a non-pointer.
(Bundled) cc: "ltdl.c", line 2095: error 1564: Expression in while must be scalar.
(Bundled) cc: "ltdl.c", line 2097: error 1532: Reference through a non-pointer.
(Bundled) cc: "ltdl.c", line 2099: error 1532: Reference through a non-pointer.
(Bundled) cc: "ltdl.c", line 2102: error 1560: Modifiable lvalue required with operator "++".
(Bundled) cc: "ltdl.c", line 2102: error 1561: Increment and decrement operators take scalar operand.
*** Error exit code 1

Stop. *** Error exit code 1

Stop. *** Error exit code 1

Stop. *** Error exit code 1

Stop.

Any help would be greatly appreciated. Thanks.
Comments:
[ellson] The only help I can offer is to suggest that this is a libtool problem. First check that you have a recent libtool installed, then if the problem still exists, report the problem to them.

http://www.gnu.org/software/libtool/

Are you positive you are using gcc and not an HP compiler? I'm wondering about the "cc" in the libtool generated commands, and the ANSI complaints... Check what compiler was found in config.log. Graphviz tries to use platform cc when available, but perhaps in this case the use of gcc needs to be forced with:


   ./configure CC=gcc

[ellson] Brian is having problems compiling ltdl.c, not linking, and I don't think he is even using gcc


   /bin/sh ./libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I.       -c -o ltdl.lo ltdl.c

Libtool is used as a wrapper to CC so it can add the right -fPIC, or whatever, magic for the current compiler/platform to generate objects for use in shared libraries.

ltdl.c is code, supplied by libtool, that we use in graphviz to dynamically load plugins.

[ellson] > Unfortunately gcc is the only C compiler that we have access to. Have there been successful builds using gcc? If so, is there any way I can acquire the plugin to do this? Can you send your config.log

Also, try:


   gcc --version
   cc --version

just to be sure

Graphviz development builds are done using gcc, but we also build with Intel's icc and SGI's cc and Microsofts' Visual_C.

We build graphviz nightly on centos-4 using gcc-3.4.6 through to Fedora-Rawhide using gcc-4.3.1

Until about a month ago it was building nightly on Redhat-7 using gcc-2.9.6. That system was just too old to support anymore and was breaking for reasons unrelated to gcc.
Owner: *
Status: *