- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Duplicate 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
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
тАО04-08-2002 01:11 AM
тАО04-08-2002 01:11 AM
Duplicate Symbols
Is there a link flag that could persuade the linker to ignore this, as it is not a problem on any other platform.
Many thanks,
Dave
/usr/ccs/bin/ld: Duplicate symbol "lp_code" in files main.o and exit.o
/usr/ccs/bin/ld: Duplicate symbol "__SIGEV_NONE" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "__SIGEV_SIGNAL" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "__SIGEV_THREAD" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "CLOCK_INVALID" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "CLOCK_REALTIME" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "CLOCK_VIRTUAL" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "CLOCK_PROFILE" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "RTTIMER0" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Duplicate symbol "RTTIMER1" in files /usr/users1/dmann/TD1_Ver1.2s/lib/hp11/src/vers.o and /usr/local/flexlm/v6.1/hp700_u9/lm_new.o
/usr/ccs/bin/ld: Found 10 duplicate symbol(s)
*** Error exit code 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2002 01:24 AM
тАО04-08-2002 01:24 AM
Re: Duplicate Symbols
try via
http://atwnt961.external.hp.com/dspp/home/home_HomePage_IDX/1,1292,,00.html
Technical Resources
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2002 01:59 AM
тАО04-08-2002 01:59 AM
Re: Duplicate Symbols
- Make sure you have the latest aCC version/patch, and that your linker is patched up to date. The latest ld patch is PHSS_24303, and you can find aCC information at:
http://atwnt938.external.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html
- If you really do have the same symbols defined (as opposed to declared) in multiple .o files, then ideally you should fix your code to ensure that you are not defining symbols multiple times (eg defined in .h files that are included by multiple .c files).
- If this isn't possible, you may be able to list the symbol names with the -h option to the linker. From the ld man page:
-h symbol Prior to writing the symbol table to the output file, mark this name as ``local'' so that it is no longer externally visible. This ensures that this particular entry will not clash with a definition in another file during future processing by ld.
More than one symbol can be specified, but -h must precede each one. If used when building a shared library or program, this option prevents the named symbol from being visible to the dynamic loader.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2002 02:33 AM
тАО04-08-2002 02:33 AM
Re: Duplicate Symbols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2002 12:28 AM
тАО04-09-2002 12:28 AM
Re: Duplicate Symbols
I seem to remember that there is a switch for hiding "undefined symbols" error messages, but I don't think it will work for duplicate symbols. (However I was unable to find it it the aCC docu right now.)
Unfortunately you don't show the linker command line. I suggest to use nm to find out which of the libs that you link to define the symbols that are duplicate. This way, you can try and eliminate the duplicity.
Good luck,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 01:07 AM
тАО04-11-2002 01:07 AM
Re: Duplicate Symbols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 03:27 AM
тАО04-11-2002 03:27 AM
Re: Duplicate Symbols
The fact that this comes from a system include file (time.h) concerns me a little. It should be quite safe to have different objects include the same .h files from /usr/include without duplicate symbols being generated. If it was your own .h file generating the error then thats a different matter.
Try installing the header file patch, PHCO_23963, as it contains some fixes for time.h which may make a difference. And if you're still having problems after that, I would log a call with HP providing a simple example.
As a workaround, you can pass arguments to the linker through aCC by using the -Wl,
For example:
$ aCC ... -Wl,-h,CLOCK_INVALID,-h,CLOCK_REALTIME,-h,...
Regards,
Steve