LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2005, 10:06 PM   #1
HamsterViolent
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0
Error when compiling programs : diagnostic tools and ressources


Can someone help me investigating error messages when compiling programs. I really don't know where to start, what should I read or learn to be autonomous in investigating those issues. Here are some examples :

I am trying to install OPENOBEX and OBEXFTP.
OPENOBEX installs properly. But for OBEXFTP I get this error :
obexftpd.o(.text+0x1bc): In function `start_server':
Code:
/home/denis/downloads/obexftp-0.10.6/apps/obexftpd.c:116: undefined reference to `OBEX_ServerAccept'
I also have a compiling error when I try to compile OPENOBEX-APPS or 3DDESKTOP.

I Googgled for answers and I have seen similar questions from other users with no answers.

I am running Fedora Core 3 and managed to install nvidia drivers, otherwise, my system is clean and I followed a standard install.
 
Old 02-02-2005, 11:49 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
ok these things can be difficult but not impossible to solve
this symbol one would assume is supposed to in the OPENOBEX library
because i don't know what the lib is called i assume libopenobex.so
so find it and do
objdump -T libopenobex.so | grep OBEX_ServerAccept
this will show you if the symbol is in the library or not
to look at all the symbols just leave off the pipe to grep
if this returns nothing then your lbrary is possibly not the right version for your software
try to find what version you need
start with the INSTALL file ond the README file in the OBEXFTP package for info
or just try to upgrade to the latest OPENOBEX ?

another thing that happens sometimes but not likely here but worth checking out is the symbol OBEX_ServerAccept
may not be in the libopenobex.so but is in a lib linked to libopenobex.so
so do
ldd libopenobex.so
to see all the other libs linked to libopenobex.so
you can run the objdump command on them if you like looking for OBEX_ServerAccept

if the symbol "IS" in the library or anotherone then the compiler command in the Makefile that is attempting the link may be bad
for your version of gcc or libtool or automake or something

possibly the lib (or one linked to it) is not included with an -l flag like -lopenobex after obexftpd.o so the linker can rundown the symbol

sometimes when a link fails it is the final step in building the software and you can copy the last long gcc command and fix it and paste it back to the command line and get the build to finish properly
or possibly alter the Makefile -- either the top level one or the one in the ./apps directory
 
  


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
any programs similar to d-tools out there? jasonmcneil0 Linux - Software 0 08-25-2004 09:19 PM
How do I install Compiling tools? SGFHK321 Linux - Newbie 7 07-10-2004 08:53 AM
compiling module-init-tools-0.9.14 Thames Mandriva 4 05-03-2004 08:58 PM
diagnostic tools mjolnir General 1 03-10-2004 08:58 AM
Having Trouble compiling mii-tools LinuxRacr Linux - Software 1 06-07-2002 02:28 PM


All times are GMT -5. The time now is 10:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration