- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Duplicate symbol "sqlca" in files <file1.o> <file2...
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-15-2005 08:30 PM
тАО02-15-2005 08:30 PM
Duplicate symbol "sqlca" in files <file1.o> <file2.o>
My aCC version is
aCC: HP ANSI C++ B3910B A.03.33
Still I'm having the same error. can anyone pls. help me out?
- Tags:
- duplicate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2005 09:46 PM
тАО02-15-2005 09:46 PM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
I was told version 3.33 would have the fix.
Have you tried ranganath ramachandra idea with the +allowdups ?
Available with the latest linker (PHSS_28434/PHSS_28436 : B.11.36).
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2005 11:33 PM
тАО02-15-2005 11:33 PM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
Thanks for your reply.
I downloaded the patch. But how to use that "+allowdups" ? I have a makefile. Where this "+allowdups" is to be used? Can you help me in this regard.
--regards,
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2005 11:45 PM
тАО02-15-2005 11:45 PM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2005 12:04 AM
тАО02-16-2005 12:04 AM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
Thanks for the documentation.
I used "+allowdups" in LD_FLAGS option along with many other options like -Z and -b etc.
But the following error is still comming :
aCC: warning 901: unknown option: `+allowdups'
and the duplicate symbol "sqlca"
--regards,
soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2005 12:35 AM
тАО02-16-2005 12:35 AM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
try the following:
remove the allowdup flag
include a -h sqlca in your link stage
This should hide the symbol at a local level.
I found the original problem and reply:
1201369430 andy_bennett@hp.com
"Hi Pete,
I've identified the problem you're seeing. It is a bug in the compiler and
listed as:
JAGad39135 -Ae enum constants, results in duplicate symbols at link
time
The problem is that the compiler is incorrectly making enum constants global
to the program whereas they should be local to the file being compiled. This
is resolved in aCC compiler revisions A.03.33 and later. You currently have
A.03.30. To obtain a later revision you will have to install a new compiler
from application CDs from December 2001 or later. Please see
http://hp.com/go/c++ for details of the revisions available and required
patches for each. The later the revision the better, but anything including
A.03.33 and after will resolve this problem."
- Tags:
- enum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2005 12:46 AM
тАО02-17-2005 12:46 AM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
thanks for ur reply ..
Actually I have a makefile which is as shown in the attatchment. Pls. see the attatched notepad file.
Here in the LD_FLAG I am using those options loke -allowdups and -h sqlca as u said. But errors are coming saying these options are not allowed there.
The option +allowdups is working with ld separately for the object files.
Can u give any suggestions regarding how to modify my makefile so as to remove the duplicate sqlca errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2005 01:01 AM
тАО02-17-2005 01:01 AM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
not attachment posted!
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2005 01:28 AM
тАО02-17-2005 01:28 AM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
an extract from our make script:
ld -h sqlca -h __SIGEV_NONE -h __SIGEV_SIGNAL -h __SIGEV_THREAD -h CLOCK_INVALID -h CLOCK_REALTIME -h CLOCK_V
IRTUAL -h CLOCK_PROFILE -h RTTIMER0 -h RTTIMER1 -h SI_QUEUE -h SI_USER -h SI_TIMER -h SI_ASYNCIO -h SI_MESGQ -h P_PID -h P_PGID -h P
_SID -h P_UID -h P_GID -h P_CID -h P_ALL -r -o 1.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2005 01:29 AM
тАО02-17-2005 01:29 AM
Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>
following is the make file code .. I used in the LD_PATH those options like +allowdups and -h sqlca. But they are not allowed there.
These options are allowed with ld. I tried the +allowdups which worked with one warning of overriding the sqlca in one object file.
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
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)
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
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
--regards,
soumya