- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- help compiling collectd in itanium HP-UX 11.31
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2017 05:24 AM
07-10-2017 05:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2017 10:24 AM
07-10-2017 10:24 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2017 03:17 AM
07-11-2017 03:17 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2017 07:25 PM
07-22-2017 07:25 PM
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.