LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-26-2011, 12:34 AM   #1
ankur.singh@lnties.com
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Make file compilation problem !!!


Hi all,

I have a application which is run on PowerPC Architecture. My host PC is Fedora Linux.

I want to run that application on my native(local Fedora) PC.

when I try to make it by cmd "make all", it give following error.

make[6]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/shared/linux/make'
make[5]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/shared'
EATON_PROJECT_NAME="libcds" make -C "libcds"
make[5]: Entering directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/libcds'
make -C linux/make all
make[6]: Entering directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/libcds/linux/make'
cp -p ../../common/include/exports/*.h "/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_export/include/"
make[6]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/libcds/linux/make'
make[5]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/libcds'
EATON_PROJECT_NAME="cds" make -C "cds"
make[5]: Entering directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/cds'
make -C linux/make all
make[6]: Entering directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/cds/linux/make'
[LINK] cds
/usr/bin/ld: sql.o: undefined reference to symbol 'sqlite3_column_int64'
/usr/bin/ld: note: 'sqlite3_column_int64' is defined in DSO /usr/local/lib/libsqlite3.so.0 so try adding it to the linker command line
/usr/local/lib/libsqlite3.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[6]: *** [cds] Error 1
make[6]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/cds/linux/make'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source/cds'
make[4]: *** [cds_build] Error 2
make[4]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk/etn_source'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit/PCM-tk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source/toolkit'
make[1]: *** [toolkit_build] Error 2
make[1]: Leaving directory `/home/jnoto/sernet5/trunk/etn_source'
make: *** [all] Error 2


I am unable to find out the error.

I have installed same SQLite version (which is used in my application) in my native pc but still i am facing same problem.

MY native PC information ::

[root@localhost trunk]# file /usr/bin/file

/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

Please help to to find out the error.

Thanks in Advance.


Ankur
 
Old 11-26-2011, 05:58 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,489

Rep: Reputation: Disabled
It appears to me that the makefile can't find /usr/local/lib/libsqlite3.so.0

It is probably in a different location, hence the suggestion to add it to the 'linker command line'

######
/usr/bin/ld: sql.o: undefined reference to symbol 'sqlite3_column_int64'
/usr/bin/ld: note: 'sqlite3_column_int64' is defined in DSO /usr/local/lib/libsqlite3.so.0 so try adding it to the linker command line
/usr/local/lib/libsqlite3.so.0: could not read symbols: Invalid operation
######
 
Old 11-27-2011, 08:17 PM   #3
jb_gpk
Member
 
Registered: Dec 2010
Distribution: Debian
Posts: 30

Rep: Reputation: 13
it seems like a dependency problems

execute ldd to know what libraries the application uses:

$ ldd myapplication

after that verify if you have this libraries on you local PC.
 
Old 11-27-2011, 10:04 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
how are you running Fedora on a ppc IBM CPU computer ? ( apple9 )

fedora has not supported that since fedora 7
 
  


Reply



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
NS 2 compilation error: make: *** No rule to make target â??VERSIONâ??, needed by â??gen/ve Marz22 Linux - Newbie 8 11-21-2011 02:20 AM
time.h file include,compilation problem santhosh.linux Programming 8 12-21-2009 05:36 AM
problem in compilation of a 30 MB fortran file abhattacharya Programming 1 07-12-2007 10:37 AM
make compilation problem-ubuntu mihalisla Linux - General 3 08-28-2006 12:15 PM
Make Trouble linking some fortran code Make file problem? any ideas? TheBrick Linux - General 0 05-17-2006 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:05 AM.

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