- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Building shared library
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:24 AM
09-16-2003 05:24 AM
when i am trying to build a shared library using the makefile which i have i get the error ld: Unsatisfied symbols:
$global$ (data)
localtime (code)
close (code)
memset (code)
__pthread_attr_init_system (code)
pthread_mutex_init (code)
pthread_mutexattr_destroy (code)
calloc (code)
system (code)
pthread_mutex_unlock (code)
strftime (code)
open (code)
free (code)
pthread_mutexattr_init (code)
fcntl (code)
malloc (code)
vsprintf (code)
SM_Trace (code)
gettimeofday (code)
write (code)
__pthread_create_system (code)
pthread_mutex_destroy (code)
pthread_mutex_lock (code)
ld: No $UNWIND_END$ subspace has been defined (probably missing /usr/ccs/lib/crt0.o)
*** Error exit code 1
the MAKEFILE has got the Foll options
CC_CMD=gcc -c
LD_SHAREDCMD=ld
LINK_FLAGS=
COMMONFLAGS=
it fails while builing the shared object though the .o files are built.
please help me
regards
shiva
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:31 AM
09-16-2003 05:31 AM
Re: Building shared library
ld -b plugin_util.o unixdef.o -o libSM_Utils.so
ld: DP relative code in file unixdef.o - shared library must be position
independent. Use +z or +Z to recompile.
*** Error exit code 1
any clues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:44 AM
09-16-2003 05:44 AM
Re: Building shared library
Rgds,
JL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:47 AM
09-16-2003 05:47 AM
Re: Building shared library
You need to recompile files with +z or +Z option. Shared libraries can be built only with Position Independent code.
Add +z to your compiler rule in makefile.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:55 AM
09-16-2003 05:55 AM
Re: Building shared library
my make file has the following options
the MAKEFILE has got the Foll options
CC_CMD=gcc -c
LD_SHAREDCMD=ld
LINK_FLAGS=
COMMONFLAGS=
libSM_Utils.so:$(OBJS)
$(LD_SHAREDCMD) $(LINK_FLAGS) $(OBJS) -o libSM_Utils.so
.c.o:
$(CC_CMD) $(COMMONFLAGS) $(INCLUDE_FLAG) -c $<
i tried giving +z in COMMONFLAGS i.e. COMMONFLAGS=+z but the same problem.
any help would be of great help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:59 AM
09-16-2003 05:59 AM
Re: Building shared library
You are using gcc. So use -fPIC during compilation.
COMMONFLAGS= -fPIC.
check man gcc for more details.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 06:08 AM
09-16-2003 06:08 AM
Re: Building shared library
even if i give the -fPIC option in COMMONFLAGS it still gives me the same option.
can i use +Z option anywhere so that i dont get the ld error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 06:11 AM
09-16-2003 06:11 AM
Re: Building shared library
thanks a lot umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 06:41 AM
09-16-2003 06:41 AM
Re: Building shared library
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:33 AM
09-18-2003 01:33 AM
Re: Building shared library
have to use gcc for LINKING either.
Command line:
gcc -shared