LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-26-2009, 03:20 AM   #1
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Rep: Reputation: 15
usb 'C aptn' program - Fedora 9


Hello,

I have a USB device communication Program in C to communicate with an ARM board.

The program can't to properly "make" the program in Fedora 9.

But it perfectly compiled in RHEL 4.

I have copied the a.out to Fedora 9 and it worked well.

The Source code is

http://mini2440.googlecode.com/files...060807.tar.bz2

I would like to know why it doesn't work in Fedpra 9.
(Library mismatching/ compiler version problems/ kernel changes or like that ?)
 
Old 11-26-2009, 04:52 AM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
The program can't to properly "make" the program in Fedora 9.
Would u kindly state the errors u are receiving through make in fedora 9.
 
Old 11-26-2009, 01:28 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
please stare the full error

also fedora 9 is and has been UNSUPPORTED
it past it's End of Life . 6 months ago .
Fedora 12 is the current
 
1 members found this post helpful.
Old 12-04-2009, 11:06 AM   #4
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Original Poster
Rep: Reputation: 15
hello,
Please see the below
make
cc -g -lusb -o s3c2410_boot_usb boot_usb.o
/usr/bin/ld: cannot find -lusb
collect2: ld returned 1 exit status
make: *** [s3c2410_boot_usb] Error 1

Please see the source code from
http://mini2440.googlecode.com/files...060807.tar.bz2

Why cant this be compiled?
 
Old 12-04-2009, 04:44 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
some research would show that RHEL 4.X uses gcc 4.1( i think that is the current update --i run cent 5.4 --) or gcc 3.4 if not updated
and fedora 9 used ( past tents) gcc 4.3 before it's End of Life
you will need to port the cod to use the NEWER gcc
http://gcc.gnu.org/gcc-4.3/porting_to.html
and gcc 4.4
http://gcc.gnu.org/gcc-4.4/porting_to.html

and the error states that you do not have libusb INSTALLED
Quote:
/usr/bin/ld: cannot find -lusb
the repos for fedora 9 may have been moved to the historical archives so yum might need to be reconfigured BY HAND
Code:
yum search libusb 
yum install libusb-devel
 
2 members found this post helpful.
Old 12-07-2009, 12:27 AM   #6
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Original Poster
Rep: Reputation: 15
Yes I got it compiled successfully.
Thank You very much.......
Tank you..................

Anoob T Murali.
 
0 members found this post helpful.
Old 12-07-2009, 12:43 AM   #7
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by atmurali View Post
Yes I got it compiled successfully.
Thank You very much.......
Tank you..................

Anoob T Murali.
Would u be kind enough to explain what u did to get it compiled ? It would be helpfull to others in future !
 
Old 12-10-2009, 09:07 PM   #8
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Original Poster
Rep: Reputation: 15
Ok sure.
Well, as per mentioned by Mr. John VV, the main problem was the lack of libusb
As he directed I install the library and get compiled.

Now trying to understand the porting details.
http://gcc.gnu.org/gcc-4.4/porting_to.html

Thank you
Anoob T Murali
 
Old 12-10-2009, 10:14 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the dead and unsupported fedora 9 did not have gcc4.4
it had 4.3

all OLD code that was wrote ( 90% of it anyway) for gcc4.0 , or the older gcc3.4, will need porting
in MOST cases it means adding #include <?????> statements for the now not auto added library's

Last edited by John VV; 12-10-2009 at 10:15 PM.
 
  


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
Program for removing usb drives alaios Linux - Hardware 2 05-01-2009 04:30 AM
Using Fedora 7: Trouble Mounting a USB Attached Fedora 7 Drive SysConWatch Linux - Newbie 6 11-12-2007 06:15 PM
create program and turn usb flash to usb token kpachopoulos Programming 8 10-23-2007 05:30 PM
USB 2.0 ports detected as USB 1.1 on Fedora Core 3 vbvamsi Linux - Hardware 1 10-09-2005 06:26 PM
help with usb application program nickster Programming 2 01-27-2005 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:13 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