For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > May 2004 > Solaris compiler (CC) builds but doesn't link









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Solaris compiler (CC) builds but doesn't link
silviu

2004-05-23, 4:36 pm

Hi All,

I have a weired problem that occurs when building an executable;
shared libs are built without problems. I was able to build/link
without problems in this environment until yestarday when this problem
occured.

The compiler on Solaris 8: CC: Sun WorkShop 6 update 2 C++ 5.3 Patch
111685-10 2002/09/16, builds the source code but when it comes to
linking the *.o files just stay there forever. Here's a sample of the
linking:

CC -g -o BaaisInterfaceServerTLSLD BaaisInterface_c.o
TlsLdOrder_c.o BaaisInterface_s.o BaaisInterfaceServer_Impl.o
BaaisInterfaceServer_TLSLD.o BaaisInterfaceServer_serverMain.o
BaaisInterfaceServer_DBUtility.o -L/home/sameerd/dev/cem/lib
-L/home/sameerd/dev/asm/lib -L/home/sameerd/dev/cal/lib
-L/home/sameerd/dev/ngtm/lib
-L/home/sameerd/dev/activation/Verizon/lib -L/home/sameerd/dev/tls/lib
-L/home/sameerd/dev/tls_ld/lib -L/home/sameerd/dev/xerces/lib
-L/home/sameerd/dev/activation/Verizon/lib
-L/home/sameerd/dev/tls_ld/lib
-L/home/sameerd/dev/ACTIVATION/activation_base/Verizon/lib -ldbutil
-lerror -lASMappsutil -ldbmisc -logre_error -lsystem -lgeneral -ldbasm
-ldbauth -lsecauth -lcalutility -lcalnetwork_elementdbobj
-lcalnetwork_elementdbutil -lcalresourcedbobj -lcalresourcedbutil
-lcalnetworkelement -lcalspvr -lcalremark -lcalresourcedbobj
-lcalresourcedbutil -lcalresource -lcalutility
-lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
-lcalresourcedbobj -lcalresourcedbutil -lcalservicedbobj
-lcalservicedbutil -lcalremark -lcalactivation -lcalactivationdbobj
-lcalactivationdbutil -lcalutility -lcalnetwork_elementdbobj
-lcalnetwork_elementdbutil -lcalresourcedbobj -lcalresourcedbutil
-lcalnetworkelement -lcalspvr -lcalremark -lcalresourcedbobj
-lcalresourcedbutil -lcalresource -lcalutility
-lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
-lcalresourcedbobj -lcalresourcedbutil -lcalservicedbobj
-lcalservicedbutil -lcalnetworkdbobj -lcalnetworkdbutil
-lcaltraildbobj -lcaltraildbutil -lcaltrail -lcalutility
-lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
-lcalresourcedbobj -lcalresourcedbutil -lcalnetworkelement -lcalspvr
-lcalremark -lcalresourcedbobj -lcalresourcedbutil -lcalresource
-lcalutility -lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
-lcalresourcedbobj -lcalresourcedbutil -lcalservicedbobj
-lcalservicedbutil -lcalnetworkdbobj -lcalnetworkdbutil -lcalnetwork
-lcalservicedbobj -lcalservicedbutil -lcalservice -lngtmdbobj
-lngtmdbutil -lngtmutil -lcalactivation -lcalactivationdbobj
-lcalactivationdbutil -lcalinterfacedbobj -lcalinterfacedbutil
-lcalactmsg -lcalDiscoveryUtility -lcorbautil -ldbconn -ltlsextdbobj
-ltlsextdbutil -ltlsldservice -ltls_lddbobj -ltls_lddbutil
-ltlsLd_tlsLdInterface -lnotify_common -ltlsldutil -lcalapplication
-lcalapplicationdbobj -lcalapplicationdbutil -lboolparser
-L/opt/BES/lib -lorb_r -lvport_r -lcosnm_r -lxnet -lnsl -DBITS32
-DSOLARIS2_7 -L/opt/informix/infx731ud4/lib/esql
-L/opt/informix/infx731ud4/lib -lthsql -lthasf -lthgen -lthos -lifgls
-lnsl -lsocket -laio -lm -ldl -lelf
/opt/informix/infx731ud4/lib/esql/checkapi.o -lifglx -lpthread
-lthread -L/home/sameerd/dev/xerces/lib -lxerces-c || (rm -f
BaaisInterfaceServerTLSLD; false)

Any help is greatly appreciated!

Nick
Kieran Simkin

2004-05-24, 9:31 pm

That's a lot of libraries, are you sure it's not just taking a very long
time?

--


~Kieran Simkin
Digital Crocus
http://digital-crocus.com/

"silviu" <thelinuxguy1997@yahoo.com> wrote in message
news:f53c2ba1.0405231157.4a763ea4@posting.google.com...
> Hi All,
>
> I have a weired problem that occurs when building an executable;
> shared libs are built without problems. I was able to build/link
> without problems in this environment until yestarday when this problem
> occured.
>
> The compiler on Solaris 8: CC: Sun WorkShop 6 update 2 C++ 5.3 Patch
> 111685-10 2002/09/16, builds the source code but when it comes to
> linking the *.o files just stay there forever. Here's a sample of the
> linking:
>
> CC -g -o BaaisInterfaceServerTLSLD BaaisInterface_c.o
> TlsLdOrder_c.o BaaisInterface_s.o BaaisInterfaceServer_Impl.o
> BaaisInterfaceServer_TLSLD.o BaaisInterfaceServer_serverMain.o
> BaaisInterfaceServer_DBUtility.o -L/home/sameerd/dev/cem/lib
> -L/home/sameerd/dev/asm/lib -L/home/sameerd/dev/cal/lib
> -L/home/sameerd/dev/ngtm/lib
> -L/home/sameerd/dev/activation/Verizon/lib -L/home/sameerd/dev/tls/lib
> -L/home/sameerd/dev/tls_ld/lib -L/home/sameerd/dev/xerces/lib
> -L/home/sameerd/dev/activation/Verizon/lib
> -L/home/sameerd/dev/tls_ld/lib
> -L/home/sameerd/dev/ACTIVATION/activation_base/Verizon/lib -ldbutil
> -lerror -lASMappsutil -ldbmisc -logre_error -lsystem -lgeneral -ldbasm
> -ldbauth -lsecauth -lcalutility -lcalnetwork_elementdbobj
> -lcalnetwork_elementdbutil -lcalresourcedbobj -lcalresourcedbutil
> -lcalnetworkelement -lcalspvr -lcalremark -lcalresourcedbobj
> -lcalresourcedbutil -lcalresource -lcalutility
> -lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
> -lcalresourcedbobj -lcalresourcedbutil -lcalservicedbobj
> -lcalservicedbutil -lcalremark -lcalactivation -lcalactivationdbobj
> -lcalactivationdbutil -lcalutility -lcalnetwork_elementdbobj
> -lcalnetwork_elementdbutil -lcalresourcedbobj -lcalresourcedbutil
> -lcalnetworkelement -lcalspvr -lcalremark -lcalresourcedbobj
> -lcalresourcedbutil -lcalresource -lcalutility
> -lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
> -lcalresourcedbobj -lcalresourcedbutil -lcalservicedbobj
> -lcalservicedbutil -lcalnetworkdbobj -lcalnetworkdbutil
> -lcaltraildbobj -lcaltraildbutil -lcaltrail -lcalutility
> -lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
> -lcalresourcedbobj -lcalresourcedbutil -lcalnetworkelement -lcalspvr
> -lcalremark -lcalresourcedbobj -lcalresourcedbutil -lcalresource
> -lcalutility -lcalnetwork_elementdbobj -lcalnetwork_elementdbutil
> -lcalresourcedbobj -lcalresourcedbutil -lcalservicedbobj
> -lcalservicedbutil -lcalnetworkdbobj -lcalnetworkdbutil -lcalnetwork
> -lcalservicedbobj -lcalservicedbutil -lcalservice -lngtmdbobj
> -lngtmdbutil -lngtmutil -lcalactivation -lcalactivationdbobj
> -lcalactivationdbutil -lcalinterfacedbobj -lcalinterfacedbutil
> -lcalactmsg -lcalDiscoveryUtility -lcorbautil -ldbconn -ltlsextdbobj
> -ltlsextdbutil -ltlsldservice -ltls_lddbobj -ltls_lddbutil
> -ltlsLd_tlsLdInterface -lnotify_common -ltlsldutil -lcalapplication
> -lcalapplicationdbobj -lcalapplicationdbutil -lboolparser
> -L/opt/BES/lib -lorb_r -lvport_r -lcosnm_r -lxnet -lnsl -DBITS32
> -DSOLARIS2_7 -L/opt/informix/infx731ud4/lib/esql
> -L/opt/informix/infx731ud4/lib -lthsql -lthasf -lthgen -lthos -lifgls
> -lnsl -lsocket -laio -lm -ldl -lelf
> /opt/informix/infx731ud4/lib/esql/checkapi.o -lifglx -lpthread
> -lthread -L/home/sameerd/dev/xerces/lib -lxerces-c || (rm -f
> BaaisInterfaceServerTLSLD; false)
>
> Any help is greatly appreciated!
>
> Nick



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com