RE: Problem Creating Shared Library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think it's not a good idea to mix gcc of different versions.
Again, after paching of linker my gcc 3.3.1 works fine.
My spec:
/opt/AESgcc/bin/g++ -v
Reading specs from /opt/AESgcc/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --prefix=/opt/AESgcc --enable-threads=posix --enable-languages=c,c++ --with-gnu-as --with-as=/usr/local/bin/as
Thread model: posix
gcc version 3.3.1

----
Lev Assinovsky
Aelita Software Corporation 
(now is a part of Quest Software)
O&S InTrust Framework Division, Team Leader
ICQ# 165072909


> -----Original Message-----
> From: Lalit Seth [mailto:laalit_seth@xxxxxxxxxxx]
> Sent: Friday, April 02, 2004 7:22 PM
> To: Lev Assinovsky; gcc-help@xxxxxxxxxxx
> Subject: RE: Problem Creating Shared Library
> 
> 
> 
> I also have gcc 3.2 on that machine which does create shared 
> objects well. 
> creating shared objects with gcc 3.2 of the object files with 
> gcc3.3.3 will 
> create any problem or not???
> 
> >From: "Lev Assinovsky" <LAssinovsky@xxxxxxxxxxxxxxxxxxxx>
> >To: "Lalit Seth" <laalit_seth@xxxxxxxxxxx>,<gcc-help@xxxxxxxxxxx>
> >Subject: RE: Problem Creating Shared Library
> >Date: Fri, 2 Apr 2004 19:06:22 +0400
> >
> >http://www5.itrc.hp.com/service/patch/mainPage.do
> >Search by keyword "ld" after selecting your OS.
> >Also I advise you to build gcc with libstdc++.sl.
> >I have HP-UX 11.00 (32) and build shared objects without any problems
> >(after patching of ld)
> >
> >----
> >Lev Assinovsky
> >Aelita Software Corporation
> >(now is a part of Quest Software)
> >O&S InTrust Framework Division, Team Leader
> >ICQ# 165072909
> >
> >
> > > -----Original Message-----
> > > From: Lalit Seth [mailto:laalit_seth@xxxxxxxxxxx]
> > > Sent: Friday, April 02, 2004 6:53 PM
> > > To: Lev Assinovsky; gcc-help@xxxxxxxxxxx
> > > Subject: RE: Problem Creating Shared Library
> > >
> > >
> > >
> > > AS you can see gcc is using HPUX ld not gnuld also i cannot
> > > use gnu64bit
> > > which uses gnuld.
> > > Which Patch should i be using.
> > >
> > > >From: "Lev Assinovsky" <LAssinovsky@xxxxxxxxxxxxxxxxxxxx>
> > > >To: "Lalit Seth" <laalit_seth@xxxxxxxxxxx>,<gcc-help@xxxxxxxxxxx>
> > > >Subject: RE: Problem Creating Shared Library
> > > >Date: Fri, 2 Apr 2004 18:16:48 +0400
> > > >
> > > >Did you patch your ld?
> > > >Also it's strange that there is no libstdc++.so.
> > > >In general it's possible build shared object without 
> libstdc++.so,
> > > >but seems not in HP-UX (som format of ld).
> > > >If you have hppa2 you could have gnu ld and avoid
> > > >many problems.
> > > >
> > > >----
> > > >Lev Assinovsky
> > > >Aelita Software Corporation
> > > >(now is a part of Quest Software)
> > > >O&S InTrust Framework Division, Team Leader
> > > >ICQ# 165072909
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Lalit Seth [mailto:laalit_seth@xxxxxxxxxxx]
> > > > > Sent: Friday, April 02, 2004 5:20 PM
> > > > > To: gcc-help@xxxxxxxxxxx
> > > > > Subject: Problem Creating Shared Library
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I m using gcc 3.3.3 11.11/32bit on hppa2.0w.
> > > > >
> > > > > I have created xaa.cpp
> > > > > #include<iostream.h>
> > > > >
> > > > > void name()
> > > > > {
> > > > > cout<<"Name"<<endl;
> > > > > }
> > > > >
> > > > > Then compile it using
> > > > > g++ -c -g xaa.cpp
> > > > > which does fine
> > > > > now when i create shared library of this using
> > > > > g++ -g -shared -fPIC -o xaa.so xaa.o
> > > > > results in
> > > > > /usr/ccs/bin/ld: Invalid loader fixup in text space needed in
> > > > > output file
> > > > > for symbol "std::basic_ostream<char, std::char_traits<char> >&
> > > > > std::endl<char, std::char_traits<char> 
> >(std::basic_ostream<char,
> > > > > std::char_traits<char> >&)" in input file "xaa.o"
> > > > > collect2: ld returned 1 exit status
> > > > >
> > > > >
> > > > > Tryed this
> > > > > g++ -c -fPIC -shared xaa.cpp
> > > > > g++ -fPIC -shared -o xaa.so xaa.o
> > > > >
> > > > > and got
> > > > >
> > > > > /usr/ccs/bin/ld: Invalid loader fixup in text space needed in
> > > > > output file
> > > > > for symbol "__gxx_personality_sj0" in input file
> > > > > "../HPUXGCC3.3.3-32/pa20_32/lib/libstdc++.a(ios.o)"
> > > > > collect2: ld returned 1 exit status
> > > > >
> > > > >
> > > > > How can i resolve this???
> > > > >
> > > > > Rgds
> > > > > Lalit
> > > > >
> > > > > 
> _________________________________________________________________
> > > > > Thinking of a vacation? Get all the best deals.
> > > > > http://www.msn.co.in/Travel/
> > > > > Right here at MSN Travel!
> > > > >
> > > > >
> > >
> > > _________________________________________________________________
> > > News, views and gossip. Hot downloads -n previews.
> > > http://www.msn.co.in/Cinema/ Get it all at MSN Cinema!
> > >
> > >
> 
> _________________________________________________________________
> Studies, career, romance. Whatever your concerns. 
> http://www.astroyogi.com/newMSN/ We have the answers.
> 
> 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux