LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2016, 03:52 PM   #1
milina
LQ Newbie
 
Registered: Feb 2016
Posts: 12

Rep: Reputation: Disabled
Unhappy TRYING to install gcc 4.3.6 in ubuntu 14.04


hello,
I am using evalvid and ns2 and i use ubuntu 14.04 to evaluate video traffic, when i try to recompile ns2 version 2.35 , with these command :

/ns-allinone-2.35/ns-2.35$ sudo ./configure - -with-tcl-ver = 8.5.10
/ns-allinone-2.35/ns-2.35$ sudo make clean ;
/ns-allinone-2.35/ns-2.35$ sudo make ;
the following error is coming....
******************************************************************************
In file included from common/packet.cc:40:0:
common/packet.h:271:15: error: ‘p_info::name_’ has a previous declaration as ‘char* p_info::name_ [58]’
static char* name_[PT_NTYPE+1];
^
common/packet.cc:44:16: error: declaration of ‘char* p_info::name_ [58]’ outside of class is not definition [-fpermissive]
char** p_info::name_;
^
common/packet.cc:45:22: error: ‘unsigned int p_info::nPkt_’ is not a static member of ‘class p_info’
unsigned int p_info::nPkt_ = 0;
^
common/packet.cc:46:1: error: ‘PacketClassifier’ does not name a type
PacketClassifier *p_info:c_ = 0;
^
common/packet.cc:48:33: error: no ‘int p_info::addPacket(char*)’ member function declared in class ‘p_info’
int p_info::addPacket(char *name)
^
In file included from common/packet.cc:40:0:
common/packet.cc: In member function ‘virtual void CommonHeaderClass::export_offsets()’:
common/packet.cc:131:42: error: cast from ‘packet_t*’ to ‘int’ loses precision [-fpermissive]
field_offset("ptype_", OFFSET(hdr_cmn, ptype_));
^
common/packet.h:288:50: note: in definition of macro ‘OFFSET’
#define OFFSET(type, field) ((int) &((type *)0)->field)
^
common/packet.cc:132:41: error: cast from ‘int*’ to ‘int’ loses precision [-fpermissive]
field_offset("size_", OFFSET(hdr_cmn, size_));
^
common/packet.h:288:50: note: in definition of macro ‘OFFSET’
#define OFFSET(type, field) ((int) &((type *)0)->field)
^
common/packet.cc:133:40: error: cast from ‘int*’ to ‘int’ loses precision [-fpermissive]
field_offset("uid_", OFFSET(hdr_cmn, uid_));
^
common/packet.h:288:50: note: in definition of macro ‘OFFSET’
#define OFFSET(type, field) ((int) &((type *)0)->field)
^
common/packet.cc:134:42: error: cast from ‘int*’ to ‘int’ loses precision [-fpermissive]
field_offset("error_", OFFSET(hdr_cmn, error_));
^
common/packet.h:288:50: note: in definition of macro ‘OFFSET’
#define OFFSET(type, field) ((int) &((type *)0)->field)
^
make: *** [common/packet.o] Error 1
******************************************************************************
Then I tried to install gcc-4.3.6 , which I think it is the solution but i can't install it
does anyone can help me to install gcc-4.3.6 step by step , and has a solution to this problem...Knowing that the Architecture of my computer is x86_64
plz reply to me
Thanks & Regards
 
Old 02-25-2016, 08:06 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,874
Blog Entries: 10

Rep: Reputation: Disabled
Hi:

-::-The current version of gcc is 5.3.-::-
https://gcc.gnu.org/

Is there a particular reason your installing 4.3.6?

What is the output of:

Code:
gcc --version
See this thread here and Knudfl's links in post # 2
http://www.linuxquestions.org/questi...e2-4175541668/
 
Old 02-27-2016, 08:42 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,741

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
@milina, Please read the "evalvid2" posts :
. http://www.linuxquestions.org/questi...965/page5.html >> #71
"" The `myevalvid2' code can be compiled with g++-4.4: sudo apt-get install g++-4.4 "", etc.
. http://www.linuxquestions.org/questions/tags/myevalvid/
. http://www.linuxquestions.org/questi...gs/myevalvid2/

The "recompile command" is :
cd ns-allinone-2.35/ && export CC=gcc-4.4 CXX=g++-4.4 && ./install


-
 
  


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
Install gcc-2.95.3 in ubuntu 10.04 luka11 Linux - Software 6 01-08-2017 12:51 PM
install gcc 3.4 along side gcc 4 problem on ubuntu 11.10 lilmike Linux - General 1 06-28-2012 05:39 AM
Install GCC 2.9 on Ubuntu 8.10 aznium Linux - Software 3 12-26-2008 11:37 AM
Ubuntu 7.10 how do you install GCC v3.4.6 compiler and use it cctv Linux - Newbie 5 03-25-2008 08:57 PM
how 2 install gcc and other sources on ubuntu? mab_123 Linux - Software 1 03-29-2005 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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