Linker Problem
DiFrango, Ron
ron.difrango@capitalone.com
Tue Jun 26 05:42:00 GMT 2001
bug-gcc@gnu.org,
> One of the things, I just tried was linking with the
> -symbolic option. When I did so, I got the out that is contained in the
> attached file. One thing to note, the application I am linking with was
> done on a Solaris 2.6 box and I am using Solaris 2.7 nad iwas compiled and
> linked with Sun's WsPro compiler. I also know that other group within my
> organization need to use the -compat=4 on the linker to get it to link
> properly with the code I am trying to link to.
> I am not sure if it matters, but I thought it was worth
> mentioning.
>
> Thanks in advance,
>
> Ron
>
> -----Original Message-----
> From: DiFrango, Ron
> Sent: Monday, June 25, 2001 10:40 AM
> To: gcc-bugs@gcc.gnu.org
> Subject: Linker Problem
> Importance: High
>
> gcc-bugs@gcc.gnu.org,
>
> I have CPP code that I am trying to link with some C code on
> Solaris 2.7. I am able to get the code to compile and link, but when I
> run the code I get the following error:
>
> ld.so.1:
> /usr/local/bin/../java/bin/../jre/bin/../bin/sparc/native_threads/java:
> fatal: relocation error: file
> /export/home/u50596/beta/pdm_source/libUnivapi.so
> : symbol
> SU_Login__FP5API_tR12login_data_tP15employee_data_t: referenced symbol
> not found
>
> The actual database type is employee_data_t.
>
> The compiler directive is as follows:
>
> gcc DMUnivapiUpdate.cpp UnivapiUpdate.cpp
> UnivapiQuery.cpp
> -I /export/home/u50596/beta/client/include
> -I /export/home/u50596/beta/common/include
> -I
> /export/home/u50596/beta/vendor/v5base/client/include
> -I
> /export/home/u50596/beta/vendor/v5base/common/include
> -I
> /export/home/u50596/beta/vendor/v5base/common/include/sun
> -I /usr/local/java/include
> -I /usr/local/java/include/solaris
> -I
> /export/home/u47370/v5base.2_6.013802/common/include/borg_rngs
> -D SPARC2_6
> -c
> -fPIC
>
> The linker command is as follows:
>
> gcc -v -shared UnivapiQuery.o UnivapiUpdate.o
> DMUnivapiUpdate.o -o libUnivapi.so
> -L/usr/local/java/jre/lib/sparc -ljvm
> -L/export/home/u50596/beta/vendor/v5base/lib
> -L/export/home/u50596/beta/lib
> -lclacctinfo -lclacctutility
> -lclbaltrans -lclbucket
> -lclcollection -lcldatamart
> -lclmarketing -lclperson
> -lclplastic -lclprdata
> -lclsecuredcard -lclsecurity
> -lclservice -lclsession
> -lclstatement -lcmusclass
> -lcmutils -ltstbtapi
> -ltstdmapi -ltstsqapi
> -ltstsrapi -ltstssapi
> -ltstsuapi -lBastroapp
> -lBborgd -lBcladmclient
> -lBclalertclient -lBclntsock
> -lBclutils -lBcmadmdclasses
> -lBcmlogapi -lBcmsockclient
> -lBcmutils -lBgeosock
> -lBcoggsclass -lBfastfile
> -lBgeordwt -lBgeoslave
> -lBgeosock -lBgeoutils
> -lBmapapis -lBsvrsock
> -lBsvsteps -lBsvutils
> -lBtestlib -lmsgsimulator
> -lsubcasrtr -lsubcoggs
> -lsubcontrol -lsublog
> -lsublog_relay -lsubsimcoggs
> -lsubsimulator -lsubsprocket -lsubswitch
>
> Thanks in advance,
>
> Ron DiFrango
>
>
> << File: out.dbg >>
**************************************************************************
The Information transmitted herewith is sensitive information intended only
for use to the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon, this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.
More information about the Gcc-bugs
mailing list