Xymon Mailing List Archive search

4.2.0 client Compile error on Linux

3 messages in this thread

list Dean Casey · Wed, 20 Sep 2006 13:11:40 -0400 ·
I'm having trouble compiling the Hobbit client (version 4.2.0) on
Linux... specifically, the compile generates the following error:

 
/usr/bin/ld: bb.o: Relocations in generic ELF (EM: 2)

bb.o: could not read symbols: File in wrong format

 
I have copied the entire "make" command output below - sorry if this is
too lengthy, but wanted to give as much info as possible...

 
Created Makefile with the necessary information to build Hobbit

Some defaults are used, so do look at the Makefile before continuing.

 
Configuration complete - now run make (GNU make) to build the tools

rswpfssh01:/tmp/hobbit-4.2.0% make

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I`pwd`/include
-DCLIENTONLY=1" LDFLAGS="" OSDEF="-DLINUX" RPATHOPT="-Wl,--rpath="
PCREINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS=""
BBTOPDIR="/home/hobbit" BBLOGDIR="" BBHOSTNAME="" BBHOSTIP="10.26.10.16"
BBHOSTOS="" LOCALCLIENT="no" make -C lib client

make[1]: Entering directory `/tmp/hobbit-4.2.0/lib'

make[1]: Nothing to be done for `client'.

make[1]: Leaving directory `/tmp/hobbit-4.2.0/lib'

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I`pwd`/include
-DCLIENTONLY=1" LDFLAGS="" RPATHOPT="-Wl,--rpath=" SSLFLAGS=""
SSLINCDIR="" SSLLIBS="" NETLIBS="" BBHOME="/home/hobbit/client" make -C
common client

make[1]: Entering directory `/tmp/hobbit-4.2.0/common'

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DLINUX -I. -I/tmp/hobbit-4.2.0/include
-DCLIENTONLY=1 -o ../client/bb bb.o ../lib/hobbitclient.a 

/usr/bin/ld: bb.o: Relocations in generic ELF (EM: 2)

bb.o: could not read symbols: File in wrong format

collect2: ld returned 1 exit status

make[1]: *** [../client/bb] Error 1

make[1]: Leaving directory `/tmp/hobbit-4.2.0/common'

make: *** [common-client] Error 2

 
Here is the output of the "uname -a" command: 

 
Linux rswpfssh01 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
GNU/Linux

 
Any assistance would be very much appreciated, I am at a loss to
understand the reason for this compile failure - especially since the
source compiled OK on my Solaris boxes.

Dean Casey

P A T H F I R E

Email:   user-99832ab50ffd@xymon.invalid

Office:   XXX XXX XXXX
list Henrik Størner · Wed, 20 Sep 2006 21:32:43 +0200 ·
quoted from Dean Casey
On Wed, Sep 20, 2006 at 01:11:40PM -0400, Dean Casey wrote:
I'm having trouble compiling the Hobbit client (version 4.2.0) on
Linux... specifically, the compile generates the following error:

/usr/bin/ld: bb.o: Relocations in generic ELF (EM: 2)

bb.o: could not read symbols: File in wrong format
Could you try just doing a "make clean" first ? I suspect you might have
some .o files lying around from your Solaris compile.


Regards,
Henrik
list Dean Casey · Wed, 20 Sep 2006 17:32:27 -0400 ·
Oops. Thank you Henrik. Running "make clean" resolved the issue. 

"What a bonehead question that was!" he said, genuflecting obsequiously.


Dean Casey
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Wednesday, September 20, 2006 3:33 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] 4.2.0 client Compile error on Linux

On Wed, Sep 20, 2006 at 01:11:40PM -0400, Dean Casey wrote:
I'm having trouble compiling the Hobbit client (version 4.2.0) on
Linux... specifically, the compile generates the following error:

/usr/bin/ld: bb.o: Relocations in generic ELF (EM: 2)

bb.o: could not read symbols: File in wrong format
Could you try just doing a "make clean" first ? I suspect you might have
some .o files lying around from your Solaris compile.


Regards,
Henrik