public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems to link shared objects for AIX 4.2
@ 2000-04-18 11:07 Gilles Brunet
  2000-04-18 12:15 ` David Edelsohn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gilles Brunet @ 2000-04-18 11:07 UTC (permalink / raw)
  To: 'gcc-bugs@gcc.gnu.org', 'bug-gcc@gnu.org',
	'gcc@gcc.gnu.org'

Hi,

I need to generate shared objects produced in C++ to run on AIX 4.2 and the 
linker produce unresolved externals that should not cause a problem; It 
seems that all required libraries are present. Here is the command line and 
the result :

/usr/local/bin/gcc -DAIX -shared -g -O0 -frtti -fexceptions -o 
../../../bin/libframeWorkBaseCliGlo.so -I/usr/include 
 -I/usr/local/include/g++-3 
 -I/opt/oracle/app/oracle/product/8.0.5/rdbms/demo 
 -I/opt/oracle/app/oracle/product/8.0.5/precomp/public 
 -I/opt/oracle/app/oracle/product/8.0.5/plsql/public 
 -I/opt/oracle/app/oracle/product/8.0.5/network/public 
 -I/opt/tuxedo/include  -I/home/brunet/cliglo9/include 
 -I/home/brunet/cliglo9/include/MOT  -I/home/brunet/cliglo9/Sources 
-L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 
 -L/opt/oracle/app/oracle/product/8.0.5/lib 
 -L/opt/oracle/app/oracle/product/8.0.5/precomp/lib 
 -L/opt/oracle/app/oracle/product/8.0.5/rdbms/lib 
 -L/opt/oracle/app/oracle/product/8.0.5/plsql/lib  -L/opt/oracle/app/ora  
cle/product/8.0.5/network/lib  -L/opt/tuxedo/lib 
 -L/home/brunet/cliglo9/lib  -L/home/brunet/cliglo9/bin -lclntsh  -lextp 
 -lplsf  -lplsb  -lgcc  -lstdc++  -lfml32  -ltux  -ltux2 
 /home/brunet/cliglo9/lib/libMOT.so  /home/brunet/cliglo9/lib/libarm.so 
-lchill  BaseCliGloMain.o Date.o strutils.o
ld: 0711-317 ERROR: Undefined symbol: .__sjthrow
ld: 0711-317 ERROR: Undefined symbol: .__umoddi3
ld: 0711-317 ERROR: Undefined symbol: .__udivdi3
ld: 0711-317 ERROR: Undefined symbol: .__builtin_vec_delete
ld: 0711-317 ERROR: Undefined symbol: .__rtti_class
ld: 0711-317 ERROR: Undefined symbol: .__builtin_vec_new
ld: 0711-317 ERROR: Undefined symbol: exception virtual table
ld: 0711-317 ERROR: Undefined symbol: .__eh_alloc
ld: 0711-317 ERROR: Undefined symbol: .__cp_push_exception
ld: 0711-317 ERROR: Undefined symbol: .terminate(void)

Thanks,

Gilles Brunet.

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

* Re: Problems to link shared objects for AIX 4.2
  2000-04-18 11:07 Problems to link shared objects for AIX 4.2 Gilles Brunet
@ 2000-04-18 12:15 ` David Edelsohn
  2000-04-18 12:34 ` Alexandre Oliva
  2000-04-19 10:10 ` Erik Mouw
  2 siblings, 0 replies; 4+ messages in thread
From: David Edelsohn @ 2000-04-18 12:15 UTC (permalink / raw)
  To: gilles.brunet; +Cc: 'gcc@gcc.gnu.org'

	First, spamming all of the original GCC mailinglists with this
question was not appropriate.

	GCC requires that its support library, libgcc.a, be linked with
all applications.  With all of your redefinition of libary directories, is
GCC actually finding libgcc.a or at least finding the correct version
built for C++ support?

David
===============================================================================
David Edelsohn                                      T.J. Watson Research Center
dje@watson.ibm.com                                  P.O. Box 218
+1 914 945 4364 (TL 862)                            Yorktown Heights, NY 10598

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

* Re: Problems to link shared objects for AIX 4.2
  2000-04-18 11:07 Problems to link shared objects for AIX 4.2 Gilles Brunet
  2000-04-18 12:15 ` David Edelsohn
@ 2000-04-18 12:34 ` Alexandre Oliva
  2000-04-19 10:10 ` Erik Mouw
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2000-04-18 12:34 UTC (permalink / raw)
  To: gilles.brunet
  Cc: 'gcc-bugs@gcc.gnu.org', 'bug-gcc@gnu.org',
	'gcc@gcc.gnu.org'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

On Apr 18, 2000, gilles.brunet@tecsi.com (Gilles Brunet) wrote:

> It seems that all required libraries are present.

It's not just a matter of them being present: they must be present so
that, if a library A has undefined symbols that are defined in another
library B, -lB must appear after -lA in the link command.  If you move
-lgcc to the end of the line, it will probably work.

-- 
Alexandre Oliva    Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

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

* Re: Problems to link shared objects for AIX 4.2
  2000-04-18 11:07 Problems to link shared objects for AIX 4.2 Gilles Brunet
  2000-04-18 12:15 ` David Edelsohn
  2000-04-18 12:34 ` Alexandre Oliva
@ 2000-04-19 10:10 ` Erik Mouw
  2 siblings, 0 replies; 4+ messages in thread
From: Erik Mouw @ 2000-04-19 10:10 UTC (permalink / raw)
  To: gilles.brunet; +Cc: gcc

On Tue, 18 Apr 2000 20:05:38 +0200, Gilles Brunet wrote:
> I need to generate shared objects produced in C++ to run on AIX 4.2 and the 
> linker produce unresolved externals that should not cause a problem; It 
> seems that all required libraries are present. Here is the command line and 
> the result :
> 
> /usr/local/bin/gcc -DAIX -shared -g -O0 -frtti -fexceptions -o 
                 ^^^
You're talking about C++ objects, so use the GNU C++ compiler to get your
program linked: g++.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/



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

end of thread, other threads:[~2000-04-19 10:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-18 11:07 Problems to link shared objects for AIX 4.2 Gilles Brunet
2000-04-18 12:15 ` David Edelsohn
2000-04-18 12:34 ` Alexandre Oliva
2000-04-19 10:10 ` Erik Mouw

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).