Linker Problem
DiFrango, Ron
ron.difrango@capitalone.com
Mon Jun 25 07:40:00 GMT 2001
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
**************************************************************************
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