Sponsored Content
Full Discussion: unresolved symbol on AIX 5.2
Top Forums Programming unresolved symbol on AIX 5.2 Post 93061 by pm_user on Thursday 15th of December 2005 08:40:13 AM
Old 12-15-2005
unresolved symbol on AIX 5.2

Hi,

want to port an executable from AIX 5.3 to AIX 5.2.

This seems to be no problem, when i build one executable.

But in another case i have to link one library statically and
the rest is loaded at runtime. This works for AIX 5.3 but
on AIX 5.2 i get the following error

=>c4msg_ifsa_aix5
exec(): 0509-036 Cannot load program c4msg_ifsa_aix5 because of the following errors:
0509-130 Symbol resolution failed for c4msg_ifsa_aix5 because:
0509-136 Symbol __fd_select (number 47) is not exported from
dependent module /usr/lib/libc.a(shr.o).
0509-136 Symbol __fd_getdtablesize (number 71) is not exported from
dependent module /usr/lib/libc.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.


i used the following compile:

.c.o:
cc -c -o $*.o $*.c

OBJECTS = config.o\
daemon.o \
ifsa_conn.o \
log.o \
main.o \
msg_conn.o \

aix5: $(OBJECTS)
cc -g -o ../../bin/c4msg_ifsa_strip2 $(OBJECTS) -I. -L ../../lib -bM:SRE -ldl -lnsl -lpthread -lifsacint -m


Does anybody know what i made wrong?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

timer_gettime unresolved error

I have used get_time() in my program but when I try to compile it it is giving the following error: ld: Unresolved: timer_gettime (5 Replies)
Discussion started by: basavaraj_m
5 Replies

2. Programming

c++ unresolved symbol

I have this problem: # make gcc -g -D_REENTRANT -DDISABLE_MJPEG=1 -I. -o encmain.o -c encmain.cc ld: 0711-317 ERROR: Undefined symbol: std::string::_Rep::_S_max_size collect2: ld returned 8 exit status but from /usr/local/include/g++v3/bits/basic_string.h : namespace... (0 Replies)
Discussion started by: thalex
0 Replies

3. Programming

Unresolved Symbol on HP UX & oracle7

Hi everyone, I have a problem. I do not succeed to linking the oracle7's library for my .so and a Unresolved Symbol :sqlcxt error returns me when I call program. this is my makefile. cc -Ae -I/usr/include/curses_colr -L/usr/lib -DUSE_TERMIOS -D_FILE64 -DDYNAMIC_LIBRARIES_SUPPORTED... (2 Replies)
Discussion started by: luckycs
2 Replies

4. Programming

How To Find Unresolved symbol in shared library?

1 . I use Digital Unix V4.0F 2 . I compile a programe which use a shared library . But when I run it( prog.out) , the shell told me that "Fatal Error : /sbin/loader : unresolved symbol in lib3cZap.so" But When I compile proj.out and lib3cZap.so , the compiler said nothing . And I ls -l... (1 Reply)
Discussion started by: chenhao_no1
1 Replies

5. UNIX for Dummies Questions & Answers

unresolved symbol ???

when I make ncftp 111.111.1.2 I just get problems like ... /usr/lib/dld.sl unresolved symbol:inet_ntop (code) does anybody know what is the problem and how to solve this? thx.. (2 Replies)
Discussion started by: svennie
2 Replies

6. HP-UX

Unresolved symbol problem

Hi I am trying to make an executable which has informix esqlc and .per files. I am using informix version 9.3. The make is successful, but when i execute, i get an error message /usr/lib/dld.sl: Unresolved symbol: ibm_lib4gl_loadint4 (code) from RVprnrecvr Abort(coredump) I searched for... (4 Replies)
Discussion started by: venkatakrishnan
4 Replies

7. AIX

Unresolved symbols

Hello experts , i have some strange problem, i wanted to create a shared object in AIX 5.3 for which i have compiled all my .cxx to .o which worked fine and then i created the .so from them , but when i do nm -Bo sample.so , i have many unresolved symbol, including printf... (0 Replies)
Discussion started by: vin_pll
0 Replies

8. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

9. AIX

Symbol resolution failed for gawk on AIX

Hi, I am installing bison-2.4.3 on AIX. I am facing the below error. Could not load program gawk: Symbol resolution failed for gawk because: Symbol __pthread (number 159) is not exported from dependent module /usr/lib/libpthreads.a(shr_xpg5.o). Symbol libintl_bindtextdomain (number... (5 Replies)
Discussion started by: susmitha_m
5 Replies
ldd(1)							      General Commands Manual							    ldd(1)

NAME
ldd - List dynamic dependencies of executable files or shared objects SYNOPSIS
ldd [-rdV] filename OPTIONS
Prints warnings for any unresolved data symbol references that would occur as a result of filename being executed. (Checks references to only data objects, not functions.) Prints warnings for any unresolved symbol references that would occur as a result of filename being executed. (Checks references to both data objects and functions.) Displays the version of the ldd command. DESCRIPTION
The ldd command lists the dynamic dependencies of an executable file or shared object: If filename is an executable file, ldd lists the pathnames of all shared objects that would be loaded as a result of executing filename. If filename is a shared object, ldd lists the pathnames of all shared objects that would be loaded as a result of loading filename. The ldd command expects shared objects to have exe- cute permission, and if this is not the case, it will issue a warning before attempting to process the file. NOTES
The ldd command does not list shared objects explicitly attached by using dlopen(). The ldd command prints the record of shared object pathnames to stdout. The optional list of symbol resolution problems are printed to stderr. EXIT STATUS
If filename is not an executable file or a shared object, a non-zero exit status is returned. EXAMPLES
The following command lists the static dependencies of libXm.so: ldd /usr/shlib/libXm.so The following command lists the static dependen- cies of libXm.so as well as any unresolved symbol in libXm.so or any of its dependents: ldd -r /usr/shlib/libXm.so SEE ALSO
loader(5) ldd(1)
All times are GMT -4. The time now is 08:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy