Problems linking to calloc
Brett Swimley
brett.swimley at aedbozeman.com
Thu Jan 8 21:35:58 UTC 2004
I suppose I should report that I've been working a bit with Mark (but on
a separate application) and have Microwindows up and running with Nano-X
and freetype2 on a small (PDA sized) LCD display. I've used quite a bit
of Rosimildo's work.
I'll get some info together.
Regards,
Brett Swimley
Joel Sherrill wrote:
> 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 worked.
>
> >
>
>> 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.
>
> --joel
>
>
>> Mark
>>
>> 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:
>>>> <SNIP>
>>>> /opt/rtems-4.6/bin/m68k-rtems-gcc -I.
>>>> -I/microwindows/microwindows-0.90-rtems/src/include
>>>> -I/usr/include/freetype2
>>>> -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
>>>> /microwindows/microwindows-0.90-rtems/src/lib/libnano-X.a
>>>> /microwindows/microwindows-0.90-rtems/src/lib/libmwengine.a
>>>> /microwindows/microwindows-0.90-rtems/src/lib/libmwdrivers.a
>>>> /microwindows/microwindows-0.90-rtems/src/lib/libmwfonts.a
>>>> /usr/lib/libfreetype.a -lm
>>>> /opt/rtems-4.6/lib/gcc-lib/m68k-rtems/3.2.3/../../../../m68k-rtems/bin/ld:
>>>> warning: cannot find entry symbol _start; defaulting to 80000074
>>>> /microwindows/microwindows-0.90-rtems/src/lib/libnano-X.a(nxutil.o):
>>>> In function `GrNewBitmapFromPixmap':
>>>> nxutil.o(.text+0x516): undefined reference to `calloc'
>>>> /microwindows/microwindows-0.90-rtems/src/lib/libnano-X.a(srvmain.o):
>>>> In function `GsAcceptClientFd':
>>>> srvmain.o(.text+0x22): undefined reference to `close'
>>>> /microwindows/microwindows-0.90-rtems/src/lib/libnano-X.a(srvmain.o):
>>>> 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,
>>>> Mark
>>>
>>>
>>>
>>>
>>> --
>>> 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
>>
>>
>>
>
>
--
Brett Swimley
Advanced Electronic Designs
brett.swimley at aedbozeman.com
ph: 406-585-8892 fax: 406-585-8893
More information about the users
mailing list