Operating System - HP-UX
1753894 Members
7568 Online
108809 Solutions
New Discussion

help compiling collectd in itanium HP-UX 11.31

 
jrd87
Occasional Visitor

help compiling collectd in itanium HP-UX 11.31

Hi,

I am trying to compile collectd 5.7.2 on an itaniuam server with HP-UX 11.31 operating system.

This is the error that shows me when I run the command make:

 

....

....

libtool: link: ar cru .libs/libltdlc.a .libs/libltdlc_la-preopen.o .libs/libltdlc_la-lt__alloc.o .libs/libltdlc_la-lt_dlloader.o .libs/libltdlc_la-lt_error.o .libs/libltdlc_la-ltdl.o .libs/libltdlc_la-slist.o .libs/argz.o .libs/lt__strl.o .libs/libltdlcS.o  .libs/libltdlc.lax/dlopen.a/dlopen.o  .libs/libltdlc.lax/shl_load.a/shl_load.o
libtool: link: ranlib .libs/libltdlc.a
libtool: link: rm -fr .libs/libltdlc.lax
libtool: link: ( cd ".libs" && rm -f "libltdlc.la" && ln -s "../libltdlc.la" "libltdlc.la" )
Making all in proto
No suffix list.
Making all in src
        make  all-recursive
Making all in libcollectdclient
        make  all-am
  CC       libcollectdclient_la-network.lo
In file included from network.c:29:
../../src/daemon/collectd.h:195:2: error: #error "Cannot determine byte order"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

this is the content of the file ../../src/daemon/collectd.h at line 195:

#ifndef BYTE_ORDER
#if defined(BIG_ENDIAN) && !defined(LITTLE_ENDIAN)
#undef BIG_ENDIAN
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234
#define BYTE_ORDER BIG_ENDIAN
#elif !defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
#undef LITTLE_ENDIAN
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#endif
#if !defined(BYTE_ORDER) || !defined(BIG_ENDIAN)
#error "Cannot determine byte order"  <--line 195
#endif

That happening if I just run ./configure and make

if i run  ./configure --with-nan-emulation CC="cc -Ae", i obtain  the following error:

 

...

...

libtool: link: rm -f .libs/libltdlc.nm .libs/libltdlc.nmS .libs/libltdlc.nmT
libtool: link: (cd .libs && cc -Ae -g -c  -DPIC "libltdlcS.c")
libtool: link: rm -f ".libs/libltdlcS.c" ".libs/libltdlc.nm" ".libs/libltdlc.nmS" ".libs/libltdlc.nmT"
libtool: link: (cd .libs/libltdlc.lax/dlopen.a && ar x "/root/software/collectd/collectd-5.7.2/libltdl/./.libs/dlopen.a")
libtool: link: (cd .libs/libltdlc.lax/shl_load.a && ar x "/root/software/collectd/collectd-5.7.2/libltdl/./.libs/shl_load.a")
libtool: link: ar cru .libs/libltdlc.a .libs/libltdlc_la-preopen.o .libs/libltdlc_la-lt__alloc.o .libs/libltdlc_la-lt_dlloader.o .libs/libltdlc_la-lt_error.o .libs/libltdlc_la-ltdl.o .libs/libltdlc_la-slist.o .libs/argz.o .libs/lt__strl.o .libs/libltdlcS.o  .libs/libltdlc.lax/dlopen.a/dlopen.o  .libs/libltdlc.lax/shl_load.a/shl_load.o
libtool: link: ranlib .libs/libltdlc.a
libtool: link: rm -fr .libs/libltdlc.lax
libtool: link: ( cd ".libs" && rm -f "libltdlc.la" && ln -s "../libltdlc.la" "libltdlc.la" )
Making all in proto
No suffix list.
Making all in src
        make  all-recursive
Making all in libcollectdclient
        make  all-am
  CC       libcollectdclient_la-client.lo
cc: error 1914: bad form for `-W' option
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

 

Has anyone faced this problem?

Thanks in advance.

 

 

 

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: help compiling collectd in Integrity HP-UX 11.31

The byte order is of course big endian.

 

>CC       libcollectdclient_la-client.lo
>cc: error 1914: bad form for `-W' option

 

I don't see any -W there.  Also, why aren't there more options and files on that CC line?

Also, don't you need to replace CC by aCC?

jrd87
Occasional Visitor

Re: help compiling collectd in Integrity HP-UX 11.31

Hi Dennis

I have changed the configure command like this:

      ./configure --with-nan-emulation CC="aCC -Ae"

I get this error again:

 

...

...

 /bin/sh ./config.status
config.status: creating src/libcollectdclient/collectd/lcc_features.h
config.status: creating Makefile
config.status: creating proto/Makefile
config.status: creating src/Makefile
config.status: creating src/daemon/Makefile
config.status: creating src/collectd.conf
config.status: creating src/libcollectdclient/Makefile
config.status: creating src/libcollectdclient/libcollectdclient.pc
config.status: creating src/liboconfig/Makefile
config.status: creating bindings/Makefile
config.status: creating bindings/java/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing libtool commands
config.status: executing depfiles commands
Making all in src
        make  all-recursive
Making all in libcollectdclient
        make  all-am
  CC       libcollectdclient_la-client.lo
aCC: error 1914: bad form for `-W' option    <------- error
*** Error exit code 1

 

What i am doing wrong ?

 

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

 

Dennis Handly
Acclaimed Contributor

Re: help compiling collectd in Integrity HP-UX 11.31

>      ./configure --with-nan-emulation CC="aCC -Ae"

 

Oops, you should change that back to: CC="cc -Ae".

 

>CC       libcollectdclient_la-client.lo
>aCC: error 1914: bad form for `-W' option    <------- error
> What i am doing wrong?

 

I don't see any -W options on that command line.

Are there any makefile lines starting with "@"?  That will suppress the make command line echoing.

And that's probably hiding the compile line with -W.

You could "export CCOPTS=-v" to see if that provides more info.  Or at least point to the last valid compiler invocation.