- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/ccs/bin/ld: Unsatisfied Symbols
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
02-25-2005 01:27 AM
02-25-2005 01:27 AM
/usr/ccs/bin/ld: Unsatisfied symbols:
RWCollectable::RWCollectable()%2 (first referenced in AlertCollectionManager.o) (code)
RWCollectable::saveGuts(RWFile &) const (first referenced in AlertEntry.o) (code)
ConfigurationFileManager::initialize(char *,char *) (first referenced in EventInterfaceServer.o) (code)
RWCollectable::hash() const (first referenced in AlertEntry.o) (code)
RWCollectable::restoreGuts(RWFile &) (first referenced in AlertEntry.o) (code)
AlertDBConnectionManager::enableUserSubscribedAlerts(AlertCollectionManager *,char *) (first referenced in EventInterfaceServer.)
AlertDBConnectionManager::AlertDBConnectionManager(char *,char *,char *) (first referenced in EventInterfaceServer.o) (code)
RWCollectable::restoreGuts(RWvistream &) (first referenced in AlertEntry.o) (code)
I have checked withn the corresponding header files where the definitions of these functions exist. So, all the functions for which "Unsatisfied Error" is coming are defined .. still the error is occuring .
Can anyone help?
--regards
soumya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2005 01:37 AM
02-25-2005 01:37 AM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2005 01:45 AM
02-25-2005 01:45 AM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
it looks like you need to link in some RogueWave? libraries. You have included the header files, but also ned to link in the corresponding library or libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2005 07:41 PM
02-25-2005 07:41 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
I have included the libraries as well as the object (.o) files in th LD Flag option.
One of the make file is running fine.
But the other one is giving some warning like :
aCC: warning 901: unknown option: `-AlertDBConnectionManager.o': use +help for online documentation.
There are as many warning as there are object files included with the LD Flag options.
Can u suggest anything ?
I am attatching the output of running the makefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 08:16 PM
02-27-2005 08:16 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
Can you post the makefile itself?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 08:49 PM
02-27-2005 08:49 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
The makefile for alertserver is the following:
include ../../Include_Paths
CC = /opt/aCC/bin/aCC
CCFLAGS = -g0 +Z -D_HPUX_SOURCE -DRW_MULTI_THREAD -D_REENTRANT -mt
.SUFFIXES :
.SUFFIXES : .cc .h .pc .o
PROC_COMP = $(ORACLE_HOME)/bin/proc
PROC_FLAGS = CODE=CPP CPP_SUFFIX=cc
PROC_INCLUDE = SYS_INCLUDE=/opt/aCC/include/iostream SYS_INCLUDE=/opt/aCC/include
LD_FLAGS = -L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -L$(SVLMESSAGEHANDLERAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib -lmqapi -lsvlmessagehandler -limqi23ah -lmqm -lmqic -SvlInputMessageHandler.o -AlertDBConnectionManager.o -AlertCollectionManager.o -AlertEntry.o -AlertServer.o -ClientSurveillanceObject.o -EventInterfaceServer.o +z
IFLAGS = -I$(COLLECTIONAPI) -I$(CONFIGURATIONAPI) -I$(EVENTAPI) -I$(SOCKETAPI)
PROC_src=AlertDBConnectionManager.pc
SRCS = $(PROC_SRC:.pc=.cc)
CC_SRCS = $(SRCS) AlertCollectionManager.cc AlertEntry.cc AlertServer.cc ClientSurveillanceObject.cc EventInterfaceServer.cc
OBJS = $(CC_SRCS:.cc=.o)
TARGET = AlertServer
$(TARGET) : $(OBJS)
$(CC) $(OBJS) $(CCFLAGS) $(LD_FLAGS) -o $@
chatr +s enable $(TARGET)
.pc.cc:
$(PROC_COMP) $(PROC_FLAGS) $(PROC_INCLUDE) $<
.cc.o: $(CC_SRCS)
$(CC) $(CCFLAGS) $(IFLAGS) -c $< -o $@
clean:
rm -rf $(SRCS) $(OBJS) *.lis
The makefile for Svlmessagehandler is :
include ../../Include_Paths
CC = /opt/softbench/bin/aCC
CCFLAGS = -g0 +Z -D_HPUX_SOURCE -DRW_MULTI_THREAD -D_REENTRANT -mt
.SUFFIXES :
.SUFFIXES : .cc .h .pc .o
PROC_COMP = $(ORACLE_HOME)/bin/proc
PROC_FLAGS = CODE=CPP CPP_SUFFIX=cc
PROC_INCLUDE = SYS_INCLUDE=/opt/aCC/include/iostream SYS_INCLUDE=/opt/aCC/include
LD_FLAGS = -B immediate -B nonfatal -L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -L$(SVLMESSAGEHANDLERAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib -lmqapi -lsvlmessagehandler -limqi23ah -lmqm -lmqic -InputMqHandler.o -SvlAlertGeneration.o -SvlHandlerMain.o -SvlInputMessageHandler.o -SvlInterfaceServer.o -Wl,-hsqlca,+allowdups +z
PROC_src=SvlAlertGeneration.pc
SRCS = $(PROC_SRC:.pc=.cc)
CC_SRCS = $(SRCS) InputMqHandler.cc SvlInputMessageHandler.cc SvlHandlerMain.cc SvlInterfaceServer.cc
OBJS = $(CC_SRCS:.cc=.o)
IFLAGS = -I$(CONFIGURATIONAPI) -I$(COLLECTIONAPI) -I$(EVENTAPI) -I$(SOCKETAPI) -I$(MQAPI) -I$(SVLMESSAGEHANDLERAPI)
TARGET = SvlInputMessageHandler
$(TARGET) : $(OBJS)
$(CC) $(OBJS) $(CCFLAGS) $(LD_FLAGS) -o $@
chatr +s enable $(TARGET)
.pc.cc:
$(PROC_COMP) $(PROC_FLAGS) $(PROC_INCLUDE) $<
.cc.o: $(CC_SRCS)
$(CC) $(CCFLAGS) $(IFLAGS) -c $< -o $@
clean:
rm -rf $(OBJS) $(SRCS) *.lis
While the latter is not throwing any warning the formaer one (for alertserver) warnings are coming -- aCC: warning 901: unknown option: `-AlertDBConnectionManager.o': use +help for online documentatio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 09:01 PM
02-27-2005 09:01 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
LD_FLAGS = -L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -L$(SVLMESSAGEHANDLERAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib -lmqapi -lsvlmessagehandler -limqi23ah -lmqm -lmqic SvlInputMessageHandler.o AlertDBConnectionManager.o AlertCollectionManager.o AlertEntry.o AlertServer.o ClientSurveillanceObject.o EventInterfaceServer.o +z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 09:03 PM
02-27-2005 09:03 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
LD_FLAGS = -B immediate -B nonfatal -L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -L$(SVLMESSAGEHANDLERAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib -lmqapi -lsvlmessagehandler -limqi23ah -lmqm -lmqic InputMqHandler.o SvlAlertGeneration.o SvlHandlerMain.o SvlInputMessageHandler.o SvlInterfaceServer.o -Wl,-hsqlca,+allowdups +z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 09:23 PM
02-27-2005 09:23 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
I tried as u told .. but errors like "Duplicate Symbols" are coming up.
/usr/ccs/bin/ld: Duplicate symbol "AlertDBConnectionManager::AlertDBConnectionManager(char *,char *,char *)" in files AlertDBConnectionManager.o and AlertDBConnectionManager.o
I think this is because the library files also include the same object files.
And If I don't include those object files then the following errors are coming up:
/usr/ccs/bin/ld: Unsatisfied symbols:
RWCollectable::RWCollectable()%2 (first referenced in AlertDBConnectionManager.o) (code)
typeid
RWCollectable::saveGuts(RWFile &) const (first referenced in AlertEntry.o) (code)
--regards,
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 09:29 PM
02-27-2005 09:29 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
Are you including the header file that declares the constructor?
Do you know which library it is defined in?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 11:58 PM
02-27-2005 11:58 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
I don't understand why this "Unstisfied symbol" error is coming up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 12:11 AM
02-28-2005 12:11 AM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
CONFIGURATIONAPI
COLLECTIONAPI
EVENTAPI
SOCKETAPI
MQAPI
SVLMESSAGEHANDLERAPI
etc. are set properly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 04:19 AM
02-28-2005 04:19 AM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
PROC_FLAGS = CODE=CPP CPP_SUFFIX=cc
Or is that a formatting error introduced by the posting process, it should read
PROC_FLAGS=
CODE=CPP
CPP_SUFFIX=cc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 04:22 AM
02-28-2005 04:22 AM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 05:08 PM
02-28-2005 05:08 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
The paths are rightly set .. but I could not check the value of those variables like
CONFIGURATIONAPI,COLLECTIONAPI,EVENTAPI, by echo $CONFIGURATIONAPI.
But PROC_FLAGS = CODE=CPP CPP_SUFFIX=cc
is correct ,otherwise syntax errors are coming.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 10:36 PM
02-28-2005 10:36 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 06:21 PM
03-01-2005 06:21 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
Now I'm getting the error :
/usr/ccs/bin/ld: Unsatisfied symbols:
sqlcxt (first referenced in SvlAlertGeneration.o) (code)
I think it is because of some library files that is getting missed ..
Can anyone suggest which library file should I use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:08 PM
03-02-2005 08:08 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
So your makefile (LD_FLAGS) would need to include:
-L $(ORACLE_HOME)/lib -lclntsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:16 PM
03-02-2005 08:16 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
Thanks for the ans. Although I could find it out from other sources.
I 'm not able to give u points since that portion is disables and showing the "unassigned". That drop down list is not there.
--regards
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:21 PM
03-02-2005 08:21 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
I am now getting a differnt set of probs. while running the Alertserver and Inputmessagehandler(executables generated after running the makefile.).The errors in the nohup.out is the following:
error opening specified file errno = 2
Error in initializing Logger
InterfaceServer failed to initialize
Can u throw any light on this?
-regards,
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 08:39 PM
03-02-2005 08:39 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 11:03 PM
03-06-2005 11:03 PM
Re: /usr/ccs/bin/ld: Unsatisfied Symbols
Thanks for the answers. My Unsatisfied symbols problems are solved after including required oracle libraries.
Right now I'm facing another problem. It is coming in the entry of nohup.out.It says:
1) Logger not initialised
2) Interface Server not initialised.
3)"specified key does not have a section in the configuration file"
There are two config files --
AlertConfig.cfg and SvlInputMessageHandler.cfg
The parameters in these two files are being accessed.
Can u throw any light where is the actual problem??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 01:29 AM
03-07-2005 01:29 AM
Solutionhello again!
The messages in the nohup.out file are coming from the application itself.
Congratulations on getting the code compiled and linked.
I suggest you review the code and/or grep the files for the messages to get an idea where the problem is.
Regards