Re: [greenstone-users] Problem: wrong ELF machine type: EM_386

From rain Hanks
DateTue, 24 Feb 2004 18:36:29 +0000
Subject Re: [greenstone-users] Problem: wrong ELF machine type: EM_386
Thank you John,

I followed your advise and installed a binary version of gdbm for solaris,
and run my configure script again, it works perfect. Many thanks.

Now I encounter another problem, when I try to make install, it gives me the
following error mesages:

installing src/recpt
make[1]: Entering directory
`/export/home/yzhu/greenstone/gsdl-2.41-src/gsdl/src/recpt'
../.././install-sh -c -m 755 -s library ../../cgi-bin
../.././install-sh: strip: not found
make[1]: *** [install] Error 1
make[1]: Leaving directory
`/export/home/yzhu/greenstone/gsdl-2.41-src/gsdl/src/recpt'
make: *** [install] Error 1

It seems to me the path for strip has not been set up correctly, the strip
command is under /usr/ccs/bin, but I tried to change the path in Makefile,
but I am not quite sure where I should put the path, I tried many places,
but it didn't work. Would you please give me some hint?

Thank you very much!
Best regards,
Rain

--------quote "John R. McPherson" <jrm21@cs.waikato.ac.nz> :

>From: "John R. McPherson" <jrm21@cs.waikato.ac.nz>
>To: rain Hanks <rainsnowmaster@hotmail.com>
>CC: greenstone-users@list.scms.waikato.ac.nz
>Subject: Re: [greenstone-users] Problem: wrong ELF machine type: EM_386
>Date: Fri, 20 Feb 2004 09:26:40 +1300
>
>On Thu, Feb 19, 2004 at 05:35:21PM +0000, rain Hanks wrote:
> > Hello,
> >
> > I encountered a problem when I try to do " make all" to complile the
> > gsdl-2.41 files. When the "make all" reaches the directory src/recpt,
>the
> > following problems occur:
> >
> > making all in src/recpt
> >
> > make[1]: Entering directory
> > `/export/home/yzhu/greenstone/gsdl-2.41-src/gsdl/src/recpt'
> > g++ -o library receptionist.o cgiwrapper.o cgiargs.o action.o
> > browserclass.o converter.o recptconfig.o cgiutils.o OIDtools.o
> > browsetools.o statusaction.o pageaction.o comtypes.o recptproto.o
>...
> > -L/export/home/yzhu/greenstone/gdbm/lib -lgdbm -lcrypt -lstdc++ -lm
> >
> > ld: warning: file
> > /export/home/yzhu/greenstone/gdbm/lib/libgdbm.a(gdbmopen.o): wrong ELF
> > machine type: EM_386
> > Undefined first referenced
> > symbol in file
> > gdbm_delete infodbclass.o
> > gdbm_firstkey infodbclass.o
> > gdbm_nextkey infodbclass.o
> > gdbm_close infodbclass.o
> > gdbm_store infodbclass.o
> > gdbm_errno infodbclass.o
> > gdbm_fetch infodbclass.o
> > gdbm_open infodbclass.o
> > ld: fatal: Symbol referencing errors. No output written to library
> > collect2: ld returned 1 exit status
> > make[1]: *** [library] Error 1
> > make[1]: Leaving directory
> > `/export/home/yzhu/greenstone/gsdl-2.41-src/gsdl/src/recpt'
> > make: *** [all] Error 1
> >
> > Could anyone help me figure out what is wrong with it? What does
> > "wrong ELF machine type: EM_386" mean? something wrong with the
> > compiler?
>
>You didn't say what operating system or architecture you are using,
>so I'm assuming you are on a Sun Sparc machine :)
>
>ELF refers to the executable file format, so it looks like there is a
>problem with your gdbm library compilation (EM_386 refers to Intel
>architectures). I haven't seen anything like that before, so I can't
>really offer any insights. Perhaps you could try installing a binary
>version of gdbm for solaris, and run your configure script again
>(without the --with-gdbm=... option).
>
>John
>
>
><< attach3 >>

_________________________________________________________________
Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer!
http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/