LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-16-2012, 08:27 PM   #1
imagiro1
LQ Newbie
 
Registered: Jul 2011
Posts: 9

Rep: Reputation: Disabled
Compile Error


I am trying to compile test_gpsmm.cpp from gpsd. The compiler can not find some config files and I don't know how to fix it.

Code:
[root@alarm GPS]# g++ test_gpsmm.cpp -lgps -o test -I/usr/lib -I/lib -L/lib
/usr/bin/ld: warning: librt.so.1, needed by /usr/lib/gcc/armv7l-unknown-linux-gnueabihf/4.7.2/../../../libgps.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: ld-linux.so.3, needed by /usr/lib//libbluetooth.so.3, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/4.7.2/../../../libgps.so: undefined reference to `clock_gettime@GLIBC_2.4'
collect2: error: ld returned 1 exit status
And the files are here.
Code:
[root@alarm GPS]# find / | grep ld-linux.so.3
/lib/ld-linux.so.3
[root@alarm GPS]# find / | grep librt.so.1
/lib/librt.so.1
I tried adding it to ld.so.conf with no success.
Code:
[root@alarm GPS]# cat /etc/ld.so.conf
#
# /etc/ld.so.conf
#

include /etc/ld.so.conf.d/*.conf /usr/local/lib /lib

# End of file
I ran ldconfig after I edited the file.

What am I missing? Thanks in advance.
 
Old 11-19-2012, 03:22 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,928

Rep: Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305
-I/usr/lib -I/lib -L/lib not required, otherwise I think the installation of g++ is incomplete or damaged.
 
  


Reply


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
[SOLVED] compile error on grub 1.99 Error: attempt to move .org backwards gkasica Linux - Software 3 01-26-2012 08:37 AM
The error compile C/C++ in linux (but it does compile on Win) hikaru1505 Programming 2 12-30-2010 09:11 AM
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 12:44 PM
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration