public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* some trouble with using gcc on SunOS
@ 2001-06-22  6:23 RAMBOZ H InfoEdpRsaVdf
  2001-06-23  0:21 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: RAMBOZ H InfoEdpRsaVdf @ 2001-06-22  6:23 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'
  Cc: HENRY B InfoEdpRsaVdf, Santacreu Hubert EXPSIA

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

HI!

We've just installed gcc 2.95 on a SunOS 5.6.
The compiler itself works well but infortunately we are unable to link the
.o file with a .a.
The trouble is it can't find a symbol and no output file is generated.
We've been verifying that the missing symbol is present in the .a file. 

Here is a copy of the used comands:

scedev:/export/home/herve/sources> gcc  -ltngdt envoi_simple.c
Undefined                       first referenced
 symbol                             in file
TNGDT_Server_Connect                /var/tmp/ccUUQ9VP.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
scedev:/export/home/herve/sources> echo $LD_LIBRARY_PATH

:/maia/maia_prd/tng/tngdts/lib:/usr/local/CAlib:/usr/ccs/lib:usr/lib:/usr/dt
/lib
scedev:/export/home/herve/sources> dump -g
/maia/maia_prd/tng/tngdts/lib/*|grep TNGDT_Server_Connect

192442  TNGDT_Server_Connect

TNGDT_Server_Connect is an int function out of an SDK API. So it may have
been compiled with an other compiler.

The same module has been tested on an other SunOs system with cc compiler
and it runs fairly.

Would you be kind enough to help us on this case?

Thanks a lot!


Hervé Ramboz 


*************************************************************************

Ce message et toutes les pièces jointes (ci-après le "message") sont
confidentiels et établis à l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisée est interdite. 
Tout message électronique est susceptible d'altération. 
La SOCIETE GENERALE et ses filiales déclinent toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.

				********

This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. 

*************************************************************************

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

* Re: some trouble with using gcc on SunOS
  2001-06-22  6:23 some trouble with using gcc on SunOS RAMBOZ H InfoEdpRsaVdf
@ 2001-06-23  0:21 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-06-23  0:21 UTC (permalink / raw)
  To: RAMBOZ H InfoEdpRsaVdf
  Cc: 'gcc-help@gcc.gnu.org',
	HENRY B InfoEdpRsaVdf, Santacreu Hubert EXPSIA

On Jun 22, 2001, RAMBOZ H InfoEdpRsaVdf <Herve.Ramboz@socgen.com> wrote:

> scedev:/export/home/herve/sources> gcc  -ltngdt envoi_simple.c

The order of arguments matters when linking.  This is not a GCC thing,
but a linker thing.  When the linker processes libtngdt, it doesn't
know /var/tmp/ccUUQ9VP.o (the temporary object file created from
envoi_simple.c) is going to need TNGDT_Server_Connect from the
library, so it doesn't bring this symbol in.  Then, when it gets to
the object file, it won't go back.  Reorder the flags and it should
work.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

end of thread, other threads:[~2001-06-23  0:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-22  6:23 some trouble with using gcc on SunOS RAMBOZ H InfoEdpRsaVdf
2001-06-23  0:21 ` Alexandre Oliva

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