LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems in compiling iperf for mips64 (https://www.linuxquestions.org/questions/linux-software-2/problems-in-compiling-iperf-for-mips64-859929/)

auny87 02-01-2011 01:56 AM

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


All times are GMT -5. The time now is 11:39 PM.