I've recently been tasked with getting the hobbit client on some of our older servers. The older redhat box was no problem, but I've got a FreeBSD 2.2.6 box that is giving me fits.
I have downloaded the files to compile on the server, including installing GNU "make" and then finding out later that gmake was already installed.
When running gmake after a 'MAKE=gmake ./configure.client' I get the following :
ld: bb.o: malformed input file (not rel or archive)
gmake[1]: *** [../client/bb] Error 1
gmake[1]: Leaving directory 'usr/home/wish/hobbit-4.2.0/common'
gmake: *** [common-client] Error 2
As a separate issue (potentially) the Hobbit installer doesn't detect the "make" that I've installed, though I can type 'make' at the command line just fine where I couldn't before.
I've searched a bit through the archives and on the web, but can't find anything that seems to point me in the right direction.
Any tips ?
Thanks,
Bill Hart
Computer Support Supervisor
On Tue, Feb 13, 2007 at 02:35:27PM -0600, Bill Hart wrote:
When running gmake after a 'MAKE=gmake ./configure.client' I get the following :
ld: bb.o: malformed input file (not rel or archive)
.o files are created when building the Hobbit client - they are not part of the source archive. So I guess that you've copied over the source from a directory where you've built the Hobbit client for a different system.
Try running "gmake clean" - this will delete all of the files that are built, but keep your client configuration. After than, the normal "gmake" should build OK.
Regards, Henrik
Henrik,
Thanks for pointing out the obvious, I've been staring at it too long apparently.
I've now run it into the --rpath problem that someone else reported here : http://www.hswn.dk/hobbiton/2005/06/msg00001.html
Using that fix, I'm now getting :
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -I/usr/local/include
-L/usr/local/lib
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBSD -I.
-I/usr/home/wish/hobbit-4.2
.0/include -DCLIENTONLY=1 -o logfetch logfetch.c ../lib/hobbitclient.a
logfetch.c: In function logdata': logfetch.c:149: warning: implicit declaration of function fseeko'
logfetch.c:150: warning: implicit declaration of function ftello' logfetch.c:149: Undefined symbol _fseeko' referenced from text segment
logfetch.c:150: Undefined symbol _ftello' referenced from text segment logfetch.c:156: Undefined symbol _fseeko' referenced from text segment
logfetch.c:157: Undefined symbol _ftello' referenced from text segment gmake[1]: *** [logfetch] Error 1 gmake[1]: Leaving directory /usr/home/wish/hobbit-4.2.0/client'
gmake: *** [client] Error 2
I used this fix : http://www.hswn.dk/hobbiton/2006/07/msg00278.html to get around that.
Now I'm getting this :
orcahobbit.c: In function main': orcahobbit.c:82: warning: implicit declaration of function strtok_r'
orcahobbit.c:82: warning: assignment makes pointer from integer without
a cast
orcahobbit.c:83: warning: assignment makes pointer from integer without
a cast
orcahobbit.c:87: warning: assignment makes pointer from integer without
a cast
orcahobbit.c:88: warning: assignment makes pointer from integer without
a cast
orcahobbit.c:82: Undefined symbol _strtok_r' referenced from text segment orcahobbit.c:87: Undefined symbol _strtok_r' referenced from text
segment
orcahobbit.c:88: Undefined symbol _strtok_r' referenced from text segment gmake[1]: *** [orcahobbit] Error 1 gmake[1]: Leaving directory /usr/home/wish/hobbit-4.2.0/client'
gmake: *** [client] Error 2
I don't see a fix for this one.
This thread http://www.hswn.dk/hobbiton/2006/09/msg00104.html popped up, but it doesn't seem to have a resolution. I've tried to run the patch a couple of times, but not with any success, usually the patch errors as some of the fixes incorporated in it are already in the system, then I get the same errors when doing a gmake.
Thanks for all the help.
Bill Hart Burke Corporation
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Tuesday, February 13, 2007 2:59 PM To: hobbit at hswn.dk Subject: Re: [hobbit] FreeBSD client
On Tue, Feb 13, 2007 at 02:35:27PM -0600, Bill Hart wrote:
When running gmake after a 'MAKE=gmake ./configure.client' I get the following :
ld: bb.o: malformed input file (not rel or archive)
.o files are created when building the Hobbit client - they are not part of the source archive. So I guess that you've copied over the source from a directory where you've built the Hobbit client for a different system.
Try running "gmake clean" - this will delete all of the files that are built, but keep your client configuration. After than, the normal "gmake" should build OK.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Feb 14, 2007 at 09:09:09AM -0600, Bill Hart wrote:
Now I'm getting this :
orcahobbit.c: In function
main': orcahobbit.c:82: warning: implicit declaration of functionstrtok_r'
The really quick fix is to just remove the "orcahobbit" utility from the client build. You won't need it anyway - so just edit client/Makefile and delete "orcahobbit" from the line that reads PROGRAMS=hobbitlaunch logfetch clientupdate orcahobbit msgcache
Regards, Henrik
Thanks Henrik, that did the trick.
Bill Hart Burke Corporation
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Wednesday, February 14, 2007 4:18 PM To: hobbit at hswn.dk Subject: Re: [hobbit] FreeBSD client
On Wed, Feb 14, 2007 at 09:09:09AM -0600, Bill Hart wrote:
Now I'm getting this :
orcahobbit.c: In function
main': orcahobbit.c:82: warning: implicit declaration of functionstrtok_r'
The really quick fix is to just remove the "orcahobbit" utility from the client build. You won't need it anyway - so just edit client/Makefile and delete "orcahobbit" from the line that reads PROGRAMS=hobbitlaunch logfetch clientupdate orcahobbit msgcache
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (2)
-
bill.hart@burkecorp.com
-
henrik@hswn.dk