LinuxQuestions.org
Help answer threads with 0 replies.
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 02-01-2011, 01:56 AM   #1
auny87
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Problems in compiling iperf for mips64


Hello all,
i am trying to compile iperf for mips64 arch chip. i am trying to compile from a x86_64 machine

after downloading the source i tried to cross compile by doing
./configure CC=mips64-octeon-linux-gnu-gcc --host=i686 --prefix=/home/akhan5/bin

However doing this gives me error from the linker
******************************************************
/usr/bin/ld: Extractor.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: Extractor.o: Relocations in generic ELF (EM: 8)
Extractor.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [iperf] Error 1
***************************************************

at this stage the problem in my view was that the sources included C++ files also and i was using gcc only. so when i used g++

./configure CC=mips64-octeon-linux-gnu-g++ --host=i686 --prefix=/home/akhan5/bin

now i get the following errors

******************************************************
../include/report_default.h: In function 'void reporter_printstats(Transfer_Info*)':
../include/report_default.h:57: error: previous declaration of 'void reporter_printstats(Transfer_Info*)' with 'C++' linkage
ReportDefault.c:69: error: conflicts with new declaration with 'C' linkage
../include/report_default.h: In function 'void reporter_multistats(Transfer_Info*)':
../include/report_default.h:58: error: previous declaration of 'void reporter_multistats(Transfer_Info*)' with 'C++' linkage
ReportDefault.c:113: error: conflicts with new declaration with 'C' linkage
../include/report_default.h: In function 'void reporter_serverstats(Connection_Info*, Transfer_Info*)':
../include/report_default.h:59: error: previous declaration of 'void reporter_serverstats(Connection_Info*, Transfer_Info*)' with 'C++' linkage
ReportDefault.c:147: error: conflicts with new declaration with 'C' linkage
../include/report_default.h: In function 'void reporter_multistats(Transfer_Info*)':
../include/report_default.h:60: error: previous declaration of 'void reporter_reportsettings(ReporterData*)' with 'C++' linkage
ReportDefault.c:155: error: conflicts with new declaration with 'C' linkage
../include/report_default.h:61: error: previous declaration of 'void* reporter_reportpeer(Connection_Info*, int)' with 'C++' linkage
ReportDefault.c:207: error: conflicts with new declaration with 'C' linkage
******************************************************

Now it sees two types of declarations. i dont seem to move any further then this...can anybody help
 
  


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
Cross compiling iperf priyadarshan Linux - Software 2 12-15-2010 07:04 AM
Help regarding iperf ssenthilkumar Linux - Software 2 06-20-2009 12:45 AM
LXer: Network appliance runs Linux on multi-core MIPS64 NPU LXer Syndicated Linux News 0 03-02-2007 03:01 PM
iperf vishamr2000 Linux - Networking 4 09-03-2006 01:12 PM
iperf vishamr2000 Linux - Networking 0 11-25-2005 07:15 AM


All times are GMT -5. The time now is 06:46 PM.

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