- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: The ld option -b
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
Discussions
Discussions
Forums
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
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 12:02 AM
тАО02-25-2005 12:02 AM
The ld option -b
Can I use -b option with the LD option if I want to make an executable file ie. if my target is an executable file. My makefile code is like this :
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
SRCS = $(PROC_SRC:.pc=.cc)
CC_SRCS = $(SRCS) AlertCollectionManager.cc AlertEntry.cc AlertServer.cc ClientSurveillanceObject.cc EventInterfaceServer.cc
OBJS = $(CC_SRCS:.cc=.o)
IFLAGS = -I$(COLLECTIONAPI) -I$(CONFIGURATIONAPI) -I$(EVENTAPI) -I$(SOCKETAPI)
LD_FLAGS = -L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib -b
#-L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib
TARGET = AlertServer
$(TARGET) : $(OBJS)
$(CC) $(CCFLAGS) $(LD_FLAGS) $(OBJS) -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
can it make the shared executable AlertServer. In my case it's not making an execuatble , instead it is making a shared library file.
and if I don't use the -b option the errors are like this :
/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)
AlertDBConnectionManager::getAlertDescription(char *,char *) (first referenced in EventInterfaceServer.o) (code)
Logger::~Logger() (first referenced in EventInterfaceServer.o) (code)
RWCollectable::compareTo(const RWCollectable *) const (first referenced in AlertEntry.o) (code)
Logger::Logger() (first referenced in EventInterfaceServer.o) (code)
Logger::logMessage(int,char *,...) (first referenced in EventInterfaceServer.o) (code)
Logger::initialize(char *,char *) (first referenced in EventInterfaceServer.o) (code)
ConfigurationFileManager::getFieldValue(char *) (first referenced in EventInterfaceServer.o) (code)
RWCollectable::~RWCollectable() (first referenced in AlertCollectionManager.o) (code)
typeid
RWCollectable::copy() const (first referenced in AlertEntry.o) (code)
RWCollectable::isEqual(const RWCollectable *) const (first referenced in AlertEntry.o) (code)
AlertDBConnectionManager::~AlertDBConnectionManager() (first referenced in EventInterfaceServer.o) (code)
AlertDBConnectionManager::initialize() (first referenced in EventInterfaceServer.o) (code)
AlertDBConnectionManager::updateAdminAlertsToDb(char *,char *) (first referenced in EventInterfaceServer.o) (code)
ConfigurationFileManager::~ConfigurationFileManager() (first referenced in EventInterfaceServer.o) (code)
RWCollectable::newSpecies() const (first referenced in AlertEntry.o) (code)
RWCollectable::binaryStoreSize() const (first referenced in AlertEntry.o) (code)
ConfigurationFileManager::ConfigurationFileManager()%1 (first referenced in EventInterfaceServer.o) (code)
Class tables [Vtable] dependent on key function: "RWCollectableString::newSpecies() const" (first referenced in AlertCollectionM)
RWCollectable::saveGuts(RWvostream &) const (first referenced in AlertEntry.o) (code)
RWCString::RWCString(const char *)%2 (first referenced in AlertCollectionManager.o) (code)
RWCollectable::isA() const (first referenced in AlertEntry.o) (code)
*** Error exit code 1
Can anyone suggest any solution.
- Tags:
- unsat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 12:09 AM
тАО02-25-2005 12:09 AM
Re: The ld option -b
- Tags:
- shlib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 12:19 AM
тАО02-25-2005 12:19 AM
Re: The ld option -b
So don't forget to assign points if your problem is solved!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 12:24 AM
тАО02-25-2005 12:24 AM
Re: The ld option -b
Yes I want to creat an execuatble file AlertServer. Should I use +z/+Z along with the -b option or only +z/+Z in the LD Flag.
If I don't use the -b option then the errors /usr/ccs/bin/ld: Unsatisfied symbols:
are coming.
-regards
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 12:27 AM
тАО02-25-2005 12:27 AM
Re: The ld option -b
Hi Stephen,
But last time I assigned almost max pts. to ur ans.
--regards,
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 12:34 AM
тАО02-25-2005 12:34 AM
Re: The ld option -b
Possibly you are getting closing a thread and assigning points confused?
Your profile still shows 0 points in 15 responses.
I would start with -b +z, if you still get errors, try -b +Z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 12:43 AM
тАО02-25-2005 12:43 AM
Re: The ld option -b
This time I think I have assigned pts.
I used -b +z and the errors are not comin since I used -b. But will creat an Executable file??
--regards,
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 12:46 AM
тАО02-25-2005 12:46 AM
Re: The ld option -b
I don't want to create a shared library , but a shared executeable file.
Should I use -b with +z?
-regards,
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 01:31 AM
тАО02-25-2005 01:31 AM
Re: The ld option -b
You haven't assigned any points, are you clicking on the 'assign points' button, after selecting the number of points you wish to assign next to a post?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 01:40 AM
тАО02-25-2005 01:40 AM
Re: The ld option -b
I'll see you over in your other thread.