Problems linking to calloc
joel.sherrill at OARcorp.com
Thu Jan 8 21:31:25 UTC 2004
Mark Mussetter wrote:
> Thank you for responding so quickly!
> That seemed to do the trick for this round of errors. There was a
> problem in my Arch.rules file. I had commented out the CFLAGS +=
> ..... line and tried to duplicate it with my own requirements. I
> must've had a tab instead of spaces (or vice versa). I uncommented the
> old CFLAGS += ...... line and changed it to meet my requirements and it
> Thanks again,
No problem. When you get Microwindows up, it would be VERY VERY much
appreciated if you could announce it and submit that work. There has
no feedback or updates on Microwindows for a while.
> At 02:49 PM 1/8/2004 -0600, you wrote:
>> Mark Mussetter wrote:
>>> Hi everyone,
>>> I am running rtems-4.6.0pre5 on a motorola 5272. I am also going to
>>> run Microwindows on top of rtems. I can get a clean build of
>>> Microwindows for rtems, but if I try to build any demos, I get errors
>>> from the linker saying that it can't find calloc,
>>> rtems_semaphore_obtain, and others.
>>> We do have the code for these functions in the rtems tree, but they
>>> aren't getting linked in for some reason.
>>> Is there a library that needs to be linked in that we are missing?
>> I don't see the "-B... -qrtems" part of the FCC arguments on this
>> so you are not linking against RTEMS.
>>> Below is a clip from the build log:
>>> /opt/rtems-4.6/bin/m68k-rtems-gcc -I.
>>> -L/microwindows/microwindows-0.90-rtems/src/lib nxscribble.o
>>> scribwidget.o hre_api.o li_recognizer.o bitvector.o matrix.o sc.o
>>> util.o -o /microwindows/microwindows-0.90-rtems/src/bin/nxscribble
>>> /usr/lib/libfreetype.a -lm
>>> warning: cannot find entry symbol _start; defaulting to 80000074
>>> In function `GrNewBitmapFromPixmap':
>>> nxutil.o(.text+0x516): undefined reference to `calloc'
>>> In function `GsAcceptClientFd':
>>> srvmain.o(.text+0x22): undefined reference to `close'
>>> In function `GrOpen':
>>> srvmain.o(.text+0xc6): undefined reference to `rtems_semaphore_obtain'
>>> srvmain.o(.text+0xf0): undefined reference to `rtems_semaphore_release'
>>> srvmain.o(.text+0x11c): undefined reference to `rtems_semaphore_release'
>>> and on and on and on......
>>> <END SNIP>
>>> Thanks for any help you might provide,
>> 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
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