[collectd] Fwd: Unable to compile on HP-UX Itanium

Volker Voßkämper vvo at cenote.de
Tue Feb 4 15:52:23 CET 2020


Hi Dago,

that took me a big step further !
But still errors:

./configure --with-libgcrypt=no --disable-all-plugins CC=gcc
CPPFLAGS="-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
-D_LITTLE_ENDIAN=1234 -D_BIG_ENDIAN=4321 -D_BYTE_ORDER=4321
-D__ENDIAN_DEFINED=1" LDFLAGS="-lpthread"

$ make
(...)
  CC       src/daemon/collectd-utils_llist.o
  CC       src/daemon/collectd-utils_random.o
  CC       src/daemon/collectd-utils_subst.o
  CC       src/daemon/collectd-utils_time.o
  CC       src/daemon/collectd-types_list.o
  CC       src/daemon/collectd-utils_threshold.o
  CC       src/daemon/collectd-cmd.o
  CC       src/utils/avltree/avltree.lo
  CCLD     libavltree.la
  CC       src/utils/common/common.lo
cc1: warnings being treated as errors
src/utils/common/common.c: In function 'set_sock_opts':
src/utils/common/common.c:1473: warning: passing argument 5 of
'getsockopt' from incompatible pointer type
*** Error exit code 1




 with cc gives more warnings and similar error

./configure --with-libgcrypt=no --disable-all-plugins CC=cc
CPPFLAGS="-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
-D_LITTLE_ENDIAN=1234 -D_BIG_ENDIAN=4321 -D_BYTE_ORDER=4321
-D__ENDIAN_DEFINED=1" LDFLAGS="-lpthread"

$ make
(...)
"src/daemon/plugin.c", line 2411: warning #2513-D: a value of type "void *"
          cannot be assigned to an entity of type "plugin_log_cb"
      callback = cf->cf_callback;
               ^

  CC       src/daemon/collectd-utils_cache.o
  CC       src/daemon/collectd-utils_complain.o
  CC       src/daemon/collectd-utils_llist.o
  CC       src/daemon/collectd-utils_random.o
  CC       src/daemon/collectd-utils_subst.o
  CC       src/daemon/collectd-utils_time.o
  CC       src/daemon/collectd-types_list.o
  CC       src/daemon/collectd-utils_threshold.o
  CC       src/daemon/collectd-cmd.o
  CC       src/utils/avltree/avltree.lo
  CCLD     libavltree.la
  CC       src/utils/common/common.lo
"src/utils/common/common.c", line 1473: warning #2167-D: argument of type
          "socklen_t *" is incompatible with parameter of type "int *"
                        &(socklen_t){sizeof(socktype)});
                        ^

  CCLD     libcommon.la
  CC       src/liboconfig/liboconfig_la-oconfig.lo
  CC       src/liboconfig/liboconfig_la-scanner.lo
  CC       src/liboconfig/liboconfig_la-parser.lo
  CCLD     liboconfig.la
  CCLD     collectd
ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyinput" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyunput" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyolsp" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyoutput" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yytextuc" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyextra" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyfnd" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyprevious" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yylsp" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yylstate" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yytextarr" in file /usr/lib/hpux32/libl.so
ld: (Warning) Unsatisfied symbol "yyback" in file /usr/lib/hpux32/libl.so
13 warnings.
  CC       src/collectdmon.o
  CCLD     collectdmon
  CC       src/utils/cmds/cmds.lo
  CC       src/utils/cmds/flush.lo
  CC       src/utils/cmds/getthreshold.lo
  CC       src/utils/cmds/getval.lo
  CC       src/utils/cmds/listval.lo
  CC       src/utils/cmds/putnotif.lo
  CC       src/utils/cmds/putval.lo
  CC       src/utils/cmds/parse_option.lo
  CC       src/utils/metadata/meta_data.lo
  CCLD     libmetadata.la
  CCLD     libcmds.la
  CC       src/utils/format_graphite/format_graphite.lo
  CCLD     libformat_graphite.la
  CC       src/utils/format_json/libformat_json_la-format_json.lo
  CCLD     libformat_json.la
  CC       src/utils/ignorelist/ignorelist.lo
  CCLD     libignorelist.la
  CC       src/utils/latency/latency.lo
  CC       src/utils/latency/latency_config.lo
  CCLD     liblatency.la
  CC       src/utils/lookup/vl_lookup.lo
  CCLD     liblookup.la
  CC       src/utils/mount/mount.lo
  CCLD     libmount.la
        echo timestamp > classnoinst.stamp
        if test ! -d buildperl; then \
          mkdir -p buildperl/Collectd/Plugins; \
          cp ./bindings/perl/lib/Collectd.pm buildperl/; \
          cp ./bindings/perl/Makefile.PL buildperl/; \
          cp ./bindings/perl/lib/Collectd/Unixsock.pm buildperl/Collectd/; \
          cp ./bindings/perl/lib/Collectd/Plugins/OpenVZ.pm
buildperl/Collectd/Plugins/; \
        fi
        touch .perl-directory-stamp
cd buildperl && /usr/bin/perl Makefile.PL PREFIX=NONE
WARNING: TEST_REQUIRES is not a known parameter.
'TEST_REQUIRES' is not a known MakeMaker parameter name.
Writing Makefile for Collectd
        cd buildperl && make
cp Collectd.pm blib/lib/Collectd.pm
cp Collectd/Plugins/OpenVZ.pm blib/lib/Collectd/Plugins/OpenVZ.pm
cp Collectd/Unixsock.pm blib/lib/Collectd/Unixsock.pm
Manifying blib/man3/Collectd::Unixsock.3


then I tried with c99

./configure --with-libgcrypt=no --disable-all-plugins CC=c99
CPPFLAGS="-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE
-D_LITTLE_ENDIAN=1234 -D_BIG_ENDIAN=4321 -D_BYTE_ORDER=4321
-D__ENDIAN_DEFINED=1" LDFLAGS="-lpthread"

$ make
(...)
  CC       src/utils/lookup/vl_lookup.lo
  CCLD     liblookup.la
  CC       src/utils/mount/mount.lo
"src/utils/mount/mount.c", line 524: warning #2011-D: unrecognized
          preprocessing directive
  #warn "This version of `getmntent' hat not yet been implemented!"
   ^

  CCLD     libmount.la
        echo timestamp > classnoinst.stamp
        if test ! -d buildperl; then \
          mkdir -p buildperl/Collectd/Plugins; \
          cp ./bindings/perl/lib/Collectd.pm buildperl/; \
          cp ./bindings/perl/Makefile.PL buildperl/; \
          cp ./bindings/perl/lib/Collectd/Unixsock.pm buildperl/Collectd/; \
          cp ./bindings/perl/lib/Collectd/Plugins/OpenVZ.pm
buildperl/Collectd/Plugins/; \
        fi
        touch .perl-directory-stamp
cd buildperl && /usr/bin/perl Makefile.PL PREFIX=NONE
WARNING: TEST_REQUIRES is not a known parameter.
'TEST_REQUIRES' is not a known MakeMaker parameter name.
Writing Makefile for Collectd
        cd buildperl && make
Makefile out-of-date with respect to Makefile.PL
Cleaning current config before rebuilding Makefile...
         make -f Makefile.old clean > /dev/null 2>&1
        /usr/bin/perl Makefile.PL "PREFIX=NONE"
WARNING: TEST_REQUIRES is not a known parameter.
'TEST_REQUIRES' is not a known MakeMaker parameter name.
Writing Makefile for Collectd
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
        false
*** Error exit code 1

after rerunning make I got a binary but it is complaining about
missing hpux32 libs

$ ./collectd --help
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yylsp' in load module
'/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyolsp' in load
module '/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyfnd' in load module
'/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yytextuc' in load
module '/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yylenguc' in load
module '/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yytextarr' in load
module '/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yylstate' in load
module '/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyprevious' in load
module '/usr/lib/hpux32/libl.so.1'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyextra' in load
module '/usr/lib/hpux32/libl.so.1'.

I am on IA64 ?!?



More information about the collectd mailing list