Link error while linking a shared library in unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Link error while linking a shared library in unix
# 1  
Old 01-23-2007
Link error while linking a shared library in unix

Getting the following error ,

ld: /opt/syncsort39/lib/libsyncsort.sl: Mismatched ABI. 64-bit PA shared library found in 32-bit link.

Is there any difference in the ld options in opt file while linking a 64 bit shared library ? Or is the problem because we are trying to link both 32 bit and 64 bit libs together ?

From make file ...


# PFWSYNCM PROGRAMS
############################################################################
## Define include constants and Libraries
############################################################################

#SYBASE12 PATHS
SYBINCLUDE = $(SYBASE)/$(SYBASE_OCS)/include
SYBLIB = $(SYBASE)/$(SYBASE_OCS)/lib
LIBINCLUDE = ../../lib
SYNCINCLUDE = $(SYNCSORT)/include
SYSINCLUDE = /usr/include/sys

#########################
# Flags #
#########################


INCLUDEDIR = -I../ -I$(SYBINCLUDE) -I$(LIBINCLUDE) -I$(SYNCINCLUDE)

SYNCLIB = $(SYNCSORT)/lib/libsyncsort.sl
CTLIBS = -L$(SYBLIB) -lct -lcs -ltcl -lcomn -lintl
PFLIB = $(LIBINCLUDE)/opt/pflib.a
LIBS = $(PFLIB) $(CTLIBS) $(SYNCLIB)

CCOPTS = -c -Aa -O

CC=cc

##########################
# Objects of Make #
##########################

getpwd : getpwd.o $(PFLIB)
ld /lib/crt0.o +s getpwd.o $(LIBS) -lcl -lm -lc -lBSD -o getpwd
getpwd.o: ../getpwd.c
$(CC) $(CCOPTS) $(INCLUDEDIR) ../getpwd.c
# 2  
Old 01-23-2007
What compiler and linker are you using, on what system?
# 3  
Old 02-15-2007
GCC on HPunix
# 4  
Old 02-15-2007
Was trying to link 64 bit lib .... We change it with 32 bit lib ..
Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Xserver shared library link is gone

I am administering an Xserver v10.6.8 and I updated the ports using Macports self update. I received this error when calling the program R dyld: Library not loaded: /opt/local/lib/libicuuc.48.dylib Referenced from: /opt/local/lib/R/lib/x86_64/libR.dylib Reason: image not found Trace/BPT... (2 Replies)
Discussion started by: godzilla07
2 Replies

2. Linux

Shared-library error

Hi All, i am facing shared library error, below is the output of the command I am executing on my client # /usr/software/bin/sudo /usr/software/bin/sudo: error while loading shared libraries: libaudit.so.1: cannot open shared object file: No such file or directory # I tried install... (4 Replies)
Discussion started by: muzaffar.k
4 Replies

3. OS X (Apple)

Linking to a shared library

I'm trying to get Valgrind to work with an openmpi application in OS X. However I want to hardcode the path to a shared library called libmpiwrap-amd64-darwin.so into my application so that it is available at runtime. In Linux this is relatively simple, I would just add the option... (0 Replies)
Discussion started by: Valgrinder
0 Replies

4. Programming

Error during making a shared library

Hi all, I am working with opensolaris and I am trying create a shared native library via using make but I am getting the following error-- make -f /Makefile.SunOS debug javah -jni SerialPort javah -jni SerialInputStream javah -jni SerialOutputStream gcc -mno-app-regs -DSUN... (4 Replies)
Discussion started by: smartgupta
4 Replies

5. Red Hat

RHEL5 reboot - error loading shared library

Hi All, I have RHEL 5 installed in my system. Something must has happened because when i reboot the server, it came with many error.. /usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0. Can't open shared object files. No such file/directory It finnaly ends with the... (0 Replies)
Discussion started by: c00kie88
0 Replies

6. Programming

debugging a shared library (unix)

How can I debug a C++ program (unix) that uses a dinamycaly linked library (dlopen(), dlsym())? I mean I want to be able to go through the library code too. I used ddd, but it's not working. thanks in advance! nadia (2 Replies)
Discussion started by: nadiamihu
2 Replies

7. UNIX for Dummies Questions & Answers

Listing the contents of a shared Unix library

I am brand new to Unix. This is probably simple, but how do you list the contents of a shared library? I need to see which functions exist in it. Many thanks. (1 Reply)
Discussion started by: mickpoil
1 Replies

8. Linux

load error while creating shared library

Hi, I am trying to create shared library. When i run the script to build the library i get these errors ld: warning: option -o appears more than once, first setting taken ld: fatal: file libgc.so.0: open failed: No such file or directory ld: fatal: File processing errors. No output written... (0 Replies)
Discussion started by: masg1
0 Replies

9. Programming

Shared library creation error

Hi, I am facing problem while creating shared library using makeC++SharedLib_r. I am using the following command makeC++SharedLib_r -E rpcresolver.exp -L/home/myAccount/lib -lcxxbase -lfsbutil_r -lpthreads -bimport:/usr/lib/sna/appc_r.exp -o resolver-shared.o -p 0 rpcresolver.o Every time... (0 Replies)
Discussion started by: satguyz
0 Replies

10. Programming

Linking problem while linking to shared library

Hi I'm getting ld: fatal: option -h and building a dynamic executable are incompatible ld: fatal: Flags processing errors When I run ld -shared -L/usr/dt/lib -lDtSvc -o builtin.so Workspace.o after running gcc -fPIC -I/usr/X11R6/include -I/usr/dt/include -c Workspace.c I'm... (6 Replies)
Discussion started by: laho
6 Replies
Login or Register to Ask a Question