Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 11-27-2007, 10:32 PM   #1
LQ Newbie
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
Post Problem while cross compiling

While cross compiling my application for arm9 I am getting following messages:

/root/arm/g2/fw/lib/core/mq.c:74: undefined reference to `mq_unlink'
/fw/lib/core/mq.c:82: undefined reference to `mq_open'
/fw/lib/core/mq.c:87: undefined reference to `mq_open'
/root/arm/g2/fw/lib/core/mq.c:101: undefined reference to `mq_close'
/fw/lib/core/mq.c:102: undefined reference to `mq_close'
/root/arm/g2/fw/lib/core/mq.c:120: undefined reference to `mq_send'
/root/arm/g2/fw/lib/core/mq.c:140: undefined reference to `mq_receive'
/root/arm/g2/fw/lib/core/mq.c:158: undefined reference to `mq_timedreceive'
/root/arm/g2/fw/lib/core/mq.c:187: undefined reference to `mq_getattr'
/root/arm/g2/fw/lib/core/mq.c:204: undefined reference to `mq_unlink'
collect2: ld returned 1 exit status

My makefile has -lrt library included while gcc since message queue related implementation present in librt.a libraray. and Also the library path is set in $PATH variable.

Can anyone tell me the cause for this issue, so that I am able to debug I have tried all possiblity arround.

If library is compile for another platform and the application code if I compile with anothet platform would this error occur.

Kindly help me.

Old 03-05-2008, 08:58 AM   #2
Registered: Dec 2005
Distribution: just replace windows with linux
Posts: 38

Rep: Reputation: 15
please post your makefile next time.

I assume that are using glibc with mq support.

make a small test prg that uses one off the mq_xxx an try that
1. on your host
2. in your cross compile env


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in configuring wxwidgets for cross compiling ra2000 Programming 5 12-13-2006 09:35 AM
Problem Compiling GCC as cross comp (mkdir issue) elyk1212 Linux - Desktop 3 10-01-2006 03:46 AM
Cross Compiling dosnlinux Programming 5 03-01-2006 11:12 AM
cross compiling cerin Linux - Software 1 02-11-2006 10:47 PM
cross-compiling? jon_k Programming 3 12-09-2004 09:36 AM

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration