Problems linking to calloc
Ralf Corsepius
corsepiu at faw.uni-ulm.de
Thu Jan 8 23:11:28 UTC 2004
On Thu, 2004-01-08 at 21:37, 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?
>
> 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
You are mixing build-host and target files
-I/usr/include/freetype2 ... /usr/lib/libfreetype.a
point to host files.
This definitely is wrong.
Ralf
More information about the users
mailing list