RTEMS web server linking error !
OUTWATER
vac4050 at cae597.rsc.raytheon.com
Fri May 19 16:04:01 UTC 2000
I'm having a different problem:
/home/vac4050/usr/local/rtems/bin/m68k-rtems-gcc --pipe
-B/home/vac4050/usr/local/rtems//gen68360/lib/ -specs bsp_specs -qrtems -g -Wall
-ansi -fasm -O4 -fomit-frame-pointer -mcpu32 -L
/home/vac4050/usr/local/rtems//gen68360/lib -o o-optimize/http.exe
o-optimize/init.o /home/vac4050/usr/local/rtems//gen68360/lib/no-dpmem.rel
/home/vac4050/usr/local/rtems//gen68360/lib/no-msg.rel
/home/vac4050/usr/local/rtems//gen68360/lib/no-mp.rel
/home/vac4050/usr/local/rtems//gen68360/lib/no-part.rel
/home/vac4050/usr/local/rtems//gen68360/lib/no-signal.rel
o-optimize/init.o: In function `Init':
/home/vac4050/projects/netdemos-4.5.0-beta3/http/init.c:76: undefined reference
to `_binary_tarfile_size'
/home/vac4050/projects/netdemos-4.5.0-beta3/http/init.c:76: undefined reference
to `_binary_tarfile_start'
collect2: ld returned 1 exit status
make: *** [o-optimize/http.exe] Error 1
Do I need to modify my linkcmds file to define _binary_tarfile_size and
_binary_tarfile_start, or is there something else wrong?
And suggestions appreciated!
-Keith
> Nick.SIMON at syntegra.bt.co.uk wrote:
> >
> > This problem still occurs with the http demo for beta3 - was there ever a
> > consensus on whether --noinhibit-exec was the right approach to this?
>
> You should try the basic steps by hand and see why the option is
> necessary.
> As I recall, the option is because you have no architecture information.
>
> But a slightly modified procedure that gives more control
> over what error to ignore is something like:
>
> + make a tarfile (or any random binary file)
> + use objcopy to convert it to a native .o file
> (I think you get the warning here)
> + link using that file.
>
> The nice thing about this trick is that you can use it to put
> anything in an application (FPGA image, etc.).
>
> --joel
>
> > -- Nick Simon
> >
> > > -----Original Message-----
> > > From: Ralf Corsepius [mailto:corsepiu at faw.uni-ulm.de]
> > > Sent: 30 March 2000 16:19
> > > To: Emmanuel Raguet
> > > Cc: rtems-users at usa.oarcorp.com
> > > Subject: Re: RTEMS web server linking error !
> > >
> > >
> > > Emmanuel Raguet wrote:
> > >
> > > > Ralf Corsepius wrote:
> > > > >
> > > > > > /opt/rtems/powerpc-rtems/bin/ld.exe -r -o o-optimize/temp.o
> > > > > > o-optimize/init.o -b binary o-optimize/tarfile
> > > > >
> > > > > => You are trying to link a tarfile. This will never work.
> > > >
> > > > Yes, it will work.
> > > > I had the same problem but I have added the
> > > > "--noinhibit-exec"
> > > > option in the ld command and now it works fine.
> > > >
> > >
> > > Hmm, from ld.info:
> > >
> > > --noinhibit-exec'
> > > Retain the executable output file whenever it is still usable.
> > > Normally, the linker will not produce an output file if it
> > > encounters errors during the link process; it exits without
> > > writing an output file when it issues any error whatsoever.
> > >
> > > Does this give any sense?
> > >
> > > May be I am missing something, but I am inclined to read this as
> > > "suppress linking errors and ignore them".
> > >
> > > Ralf
> > > --
> > > Ralf Corsepius
> > > Forschungsinstitut fuer Anwendungsorientierte
> > > Wissensverarbeitung (FAW)
> > > Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
> > > mailto:corsepiu at faw.uni-ulm.de FAX: +49/731/501-999
> > > http://www.faw.uni-ulm.de
> > >
> > >
>
> --
> Joel Sherrill, Ph.D. Director of Research & Development
> joel at OARcorp.com On-Line Applications Research
> Ask me about RTEMS: a free RTOS Huntsville AL 35805
> Support Available (256) 722-9985
More information about the users
mailing list