public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Help with gcc installation on AIX 5.3
@ 2006-09-27 18:06 Ferng, Andrew D
  2006-09-27 18:42 ` Amit Choudhary
  0 siblings, 1 reply; 5+ messages in thread
From: Ferng, Andrew D @ 2006-09-27 18:06 UTC (permalink / raw)
  To: gcc-help

Sorry!
First email was missing subject.


----------------------------------------


> Hi,
> 
> New user of GCC and am having trouble with the simplest hello world
> program.
> 
> I'm on an IBM RS6000 running AIX 5.3 and using the 5.3 binary from
> UCLA:
> http://aixpdslib.seas.ucla.edu/
> 
> My main directory is at /acct/a/adf0000/  from here, I created a gcc
> directory and then extracted the binaries.  So in
> /acct/a/adf0000/gcc/usr/local/,  I have the following directories: 
> bin, include, info, lib, libexec, man
> 
> There is already gcc 2.92 in the /usr/bin already so I need to
> redirect it to my 4.1.1.1 binary.  I can't uninstall 2.92 since it is
> part of the OS build and theres NO chance of me getting that approved.
> So I can only work with what's in my own directory.
> 
> This is what the path is looking like:
> PATH=/acct/a/adf0000/gcc/usr/local/bin:/usr/bin:.......
> 
> Now when I run a simple helloworld.cpp
> 
> #include <iostream>
> using namespace std;
> Int main()
> {
>     cout<<"hi world"<<endl;
>     return 0;
> }
> 
> I get this error:
> 
> ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init()
> ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init()
> ld: 0711-317 ERROR: Undefined symbol: std::cout
> ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char,
> std::char_traits<char> >& std::operator<< <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
> ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> 
> 
> Anyone have an idea what I'm missing?
> 
> Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help with gcc installation on AIX 5.3
  2006-09-27 18:06 Help with gcc installation on AIX 5.3 Ferng, Andrew D
@ 2006-09-27 18:42 ` Amit Choudhary
  2006-09-27 18:54   ` Ferng, Andrew D
  0 siblings, 1 reply; 5+ messages in thread
From: Amit Choudhary @ 2006-09-27 18:42 UTC (permalink / raw)
  To: Ferng, Andrew D, gcc-help


Hi Ferng,

I don't think there is anything wrong with the program. But I
guess the compiler is not getting the correct library path. Try
using the -L compiler switch to direct it to your lib directory.

-L/acct/a/adf0000/gcc/usr/local/lib

Hope this helps.

Regards,
Amit

--- "Ferng, Andrew D" <andrew.d.ferng@boeing.com> wrote:

> Sorry!
> First email was missing subject.
> 
> 
> ----------------------------------------
> 
> 
> > Hi,
> > 
> > New user of GCC and am having trouble with the simplest
> hello world
> > program.
> > 
> > I'm on an IBM RS6000 running AIX 5.3 and using the 5.3
> binary from
> > UCLA:
> > http://aixpdslib.seas.ucla.edu/
> > 
> > My main directory is at /acct/a/adf0000/  from here, I
> created a gcc
> > directory and then extracted the binaries.  So in
> > /acct/a/adf0000/gcc/usr/local/,  I have the following
> directories: 
> > bin, include, info, lib, libexec, man
> > 
> > There is already gcc 2.92 in the /usr/bin already so I need
> to
> > redirect it to my 4.1.1.1 binary.  I can't uninstall 2.92
> since it is
> > part of the OS build and theres NO chance of me getting that
> approved.
> > So I can only work with what's in my own directory.
> > 
> > This is what the path is looking like:
> > PATH=/acct/a/adf0000/gcc/usr/local/bin:/usr/bin:.......
> > 
> > Now when I run a simple helloworld.cpp
> > 
> > #include <iostream>
> > using namespace std;
> > Int main()
> > {
> >     cout<<"hi world"<<endl;
> >     return 0;
> > }
> > 
> > I get this error:
> > 
> > ld: 0711-317 ERROR: Undefined symbol:
> .std::ios_base::Init::Init()
> > ld: 0711-317 ERROR: Undefined symbol:
> .std::ios_base::Init::~Init()
> > ld: 0711-317 ERROR: Undefined symbol: std::cout
> > ld: 0711-317 ERROR: Undefined symbol:
> .std::basic_ostream<char,
> > std::char_traits<char> >& std::operator<<
> <std::char_traits<char>
> > >(std::basic_ostream<char, std::char_traits<char> >&, char
> const*)
> > ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
> more
> > information.
> > collect2: ld returned 8 exit status
> > 
> > 
> > Anyone have an idea what I'm missing?
> > 
> > Thanks!
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Help with gcc installation on AIX 5.3
  2006-09-27 18:42 ` Amit Choudhary
@ 2006-09-27 18:54   ` Ferng, Andrew D
  2006-09-27 19:41     ` Amit Choudhary
  0 siblings, 1 reply; 5+ messages in thread
From: Ferng, Andrew D @ 2006-09-27 18:54 UTC (permalink / raw)
  To: gcc-help

Nope!   Same error.

Does that path need to be defined in a enviornment variable somewhere?

Is there a way to check what paths are used in the binary?  Maybe by
putting it in the gcc directory, it's different from what is compiled?


>gcc -L/acct/a/adf0000/gcc/usr/local/lib h.cpp
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init()
ld: 0711-317 ERROR: Undefined symbol: std::cout
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status 



-----Original Message-----
From: Amit Choudhary [mailto:amit2030@yahoo.com] 
Sent: Wednesday, September 27, 2006 11:43 AM
To: Ferng, Andrew D; gcc-help@gcc.gnu.org
Subject: Re: Help with gcc installation on AIX 5.3


Hi Ferng,

I don't think there is anything wrong with the program. But I guess the
compiler is not getting the correct library path. Try using the -L
compiler switch to direct it to your lib directory.

-L/acct/a/adf0000/gcc/usr/local/lib

Hope this helps.

Regards,
Amit

--- "Ferng, Andrew D" <andrew.d.ferng@boeing.com> wrote:

Sorry!
First email was missing subject.
 
 
 ----------------------------------------
 
 
>Hi,
 > 
 > New user of GCC and am having trouble with the simplest hello world
 > program.
 > 
 > I'm on an IBM RS6000 running AIX 5.3 and using the 5.3 binary from
 > UCLA:
 > http://aixpdslib.seas.ucla.edu/
 > 
 > My main directory is at /acct/a/adf0000/  from here, I  created a gcc
 > directory and then extracted the binaries.  So in 
 > /acct/a/adf0000/gcc/usr/local/,  I have the following directories: 
 > bin, include, info, lib, libexec, man
 > 
 > There is already gcc 2.92 in the /usr/bin already so I need to
 > redirect it to my 4.1.1.1 binary.  I can't uninstall 2.92 since it is
 > part of the OS build and theres NO chance of me getting that
approved.
 > So I can only work with what's in my own directory.
 > 
 > This is what the path is looking like:
 > PATH=/acct/a/adf0000/gcc/usr/local/bin:/usr/bin:.......
 > 
 > Now when I run a simple helloworld.cpp
 > 
 > #include <iostream>
 > using namespace std;
 > Int main()
 > {
 >     cout<<"hi world"<<endl;
 >     return 0;
 > }
 > 
 > I get this error:
 > 
 > ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init()
 > ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init()
 > ld: 0711-317 ERROR: Undefined symbol: std::cout
 > ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char,
 > std::char_traits<char> >& std::operator<< <std::char_traits<char>
 > >(std::basic_ostream<char, std::char_traits<char> >&, char  const*)
 > ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
 > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain  more
 > information.
 > collect2: ld returned 8 exit status
 > 
 > 
 > Anyone have an idea what I'm missing?
 > 
 > Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Help with gcc installation on AIX 5.3
  2006-09-27 18:54   ` Ferng, Andrew D
@ 2006-09-27 19:41     ` Amit Choudhary
  2006-09-27 20:10       ` Ferng, Andrew D
  0 siblings, 1 reply; 5+ messages in thread
From: Amit Choudhary @ 2006-09-27 19:41 UTC (permalink / raw)
  To: Ferng, Andrew D, gcc-help


Unless I am mistaken, you should be using g++. I thought you
were using g++. You should be having g++.

Regards,
Amit

--- "Ferng, Andrew D" <andrew.d.ferng@boeing.com> wrote:

> Nope!   Same error.
> 
> Does that path need to be defined in a enviornment variable
> somewhere?
> 
> Is there a way to check what paths are used in the binary? 
> Maybe by
> putting it in the gcc directory, it's different from what is
> compiled?
> 
> 
> >gcc -L/acct/a/adf0000/gcc/usr/local/lib h.cpp
> ld: 0711-317 ERROR: Undefined symbol:
> .std::ios_base::Init::Init()
> ld: 0711-317 ERROR: Undefined symbol:
> .std::ios_base::Init::~Init()
> ld: 0711-317 ERROR: Undefined symbol: std::cout
> ld: 0711-317 ERROR: Undefined symbol:
> .std::basic_ostream<char,
> std::char_traits<char> >& std::operator<<
> <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char
> const*)
> ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
> more
> information.
> collect2: ld returned 8 exit status 
> 
> 
> 
> -----Original Message-----
> From: Amit Choudhary [mailto:amit2030@yahoo.com] 
> Sent: Wednesday, September 27, 2006 11:43 AM
> To: Ferng, Andrew D; gcc-help@gcc.gnu.org
> Subject: Re: Help with gcc installation on AIX 5.3
> 
> 
> Hi Ferng,
> 
> I don't think there is anything wrong with the program. But I
> guess the
> compiler is not getting the correct library path. Try using
> the -L
> compiler switch to direct it to your lib directory.
> 
> -L/acct/a/adf0000/gcc/usr/local/lib
> 
> Hope this helps.
> 
> Regards,
> Amit
> 
> --- "Ferng, Andrew D" <andrew.d.ferng@boeing.com> wrote:
> 
> Sorry!
> First email was missing subject.
>  
>  
>  ----------------------------------------
>  
>  
> >Hi,
>  > 
>  > New user of GCC and am having trouble with the simplest
> hello world
>  > program.
>  > 
>  > I'm on an IBM RS6000 running AIX 5.3 and using the 5.3
> binary from
>  > UCLA:
>  > http://aixpdslib.seas.ucla.edu/
>  > 
>  > My main directory is at /acct/a/adf0000/  from here, I 
> created a gcc
>  > directory and then extracted the binaries.  So in 
>  > /acct/a/adf0000/gcc/usr/local/,  I have the following
> directories: 
>  > bin, include, info, lib, libexec, man
>  > 
>  > There is already gcc 2.92 in the /usr/bin already so I need
> to
>  > redirect it to my 4.1.1.1 binary.  I can't uninstall 2.92
> since it is
>  > part of the OS build and theres NO chance of me getting
> that
> approved.
>  > So I can only work with what's in my own directory.
>  > 
>  > This is what the path is looking like:
>  > PATH=/acct/a/adf0000/gcc/usr/local/bin:/usr/bin:.......
>  > 
>  > Now when I run a simple helloworld.cpp
>  > 
>  > #include <iostream>
>  > using namespace std;
>  > Int main()
>  > {
>  >     cout<<"hi world"<<endl;
>  >     return 0;
>  > }
>  > 
>  > I get this error:
>  > 
>  > ld: 0711-317 ERROR: Undefined symbol:
> .std::ios_base::Init::Init()
>  > ld: 0711-317 ERROR: Undefined symbol:
> .std::ios_base::Init::~Init()
>  > ld: 0711-317 ERROR: Undefined symbol: std::cout
>  > ld: 0711-317 ERROR: Undefined symbol:
> .std::basic_ostream<char,
>  > std::char_traits<char> >& std::operator<<
> <std::char_traits<char>
>  > >(std::basic_ostream<char, std::char_traits<char> >&, char 
> const*)
>  > ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
>  > ld: 0711-345 Use the -bloadmap or -bnoquiet option to
> obtain  more
>  > information.
>  > collect2: ld returned 8 exit status
>  > 
>  > 
>  > Anyone have an idea what I'm missing?
>  > 
>  > Thanks!
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Help with gcc installation on AIX 5.3
  2006-09-27 19:41     ` Amit Choudhary
@ 2006-09-27 20:10       ` Ferng, Andrew D
  0 siblings, 0 replies; 5+ messages in thread
From: Ferng, Andrew D @ 2006-09-27 20:10 UTC (permalink / raw)
  To: gcc-help

Amit,

Thanks!!!  Goof on my part.... That worked (along with c++)
I also placed: 

LIBRARY_PATH="~/gcc/usr/local/lib/ 

environment variable in my .kshrc file so that I don't have to use the
-L.

Now I have to go and get boost installed....

Thanks again!


-----Original Message-----
From: Amit Choudhary [mailto:amit2030@yahoo.com] 
Sent: Wednesday, September 27, 2006 12:41 PM
To: Ferng, Andrew D; gcc-help@gcc.gnu.org
Subject: RE: Help with gcc installation on AIX 5.3


Unless I am mistaken, you should be using g++. I thought you were using
g++. You should be having g++.

Regards,
Amit

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-27 20:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-27 18:06 Help with gcc installation on AIX 5.3 Ferng, Andrew D
2006-09-27 18:42 ` Amit Choudhary
2006-09-27 18:54   ` Ferng, Andrew D
2006-09-27 19:41     ` Amit Choudhary
2006-09-27 20:10       ` Ferng, Andrew D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).