- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ld: Unsatisfied symbol Error
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-08-2007 01:25 AM
тАО02-08-2007 01:25 AM
I find following error when make a libabry in Hp-unix.
ld: Unsatisfied symbol "1" in file
ld: Unsatisfied symbol "stop_missing_startup_param" in file mtamain.o
ld: Unsatisfied symbol "MSP_GetInstanceIdByName" in file mtamain.o
ld: Unsatisfied symbol "initialise_rlylib" in file /home/juan/subrat/OMNI33B/SHA
RED/libsmsg_rly.a[smsglib.o_]
ld: Unsatisfied symbol "MSP_GetInstanceIdByName" in file mtamain.o
I have compile with
CC = g++ -mlp64 -Wall -funsigned-char.
Something wrong i dont understand since some MSP call properly...but some given error.
Please anyone help me....
Regards,
subrat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2007 10:12 AM
тАО02-08-2007 10:12 AM
Re: ld: Unsatisfied symbol Error
As to your other symbols, where are they defined? If they are defined in an archive, that archive must follow the object file mtamain.o on the command line. The same with your unsat in libsmsg_rly.a. Your archive libs must be ordered. If this is too hard, you can use -Wl,+n to cause the linker to keep searching until it can't find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2007 02:14 AM
тАО02-09-2007 02:14 AM
Re: ld: Unsatisfied symbol Error
First of all Thanks ..
I have used -u1 but symbol "1" is not gone.
When using -Wl,+n some of error is gone...and some are present.
make file is working for c good...
but when compile with g++ -mlp64
then its given Unsatisfied symbol error.
My archive lib is define in another dir.
which is in order.
Please comment...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2007 02:56 AM
тАО02-09-2007 02:56 AM
Re: ld: Unsatisfied symbol Error
This has to be a problem in your makefile itself. I would guess that you have a syntax error in one of your dependency rules.
First make sure that each action statement begins with a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2007 07:02 AM - edited тАО10-16-2011 03:57 AM
тАО02-09-2007 07:02 AM - edited тАО10-16-2011 03:57 AM
Re: ld: Unsatisfied symbol Error
>I have used -u1 but symbol "1" is not gone.
I'm not sure what this means? I said to remove -u1. Pass -v to ld to make sure it isn't there.
>makefile is working for C good... but when compile with g++ -mlp64 then its given Unsatisfied symbol error.
I'm not sure what this means? Are you saying your makefile template works for C, therefore you assume it will work for C++?
As in all cases with unsats, where is the references? Where is it defined? Can you prove this by using nm?
$ nm -pxAN libs objects | fgrep -e symbol -e symbol2 ...
You can ask ld to print some of them: -Wl,-ystop_missing_startup_param
And if you can't find it, you may have to use grep on the sources.
- Tags:
- nm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2007 08:29 PM
тАО02-14-2007 08:29 PM
Re: ld: Unsatisfied symbol Error
Thanks.
I have remove -u1 from my makefile...
"1" unsatisfied symbol is gone.
can you tell me what is means of -u1..
please describe..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2007 08:42 PM
тАО02-14-2007 08:42 PM
Re: ld: Unsatisfied symbol Error
I'm not sure what you want it to be but the -u option to ld says to treat the symbol "1" as a symbol and make it unsatisfied. Typically it is used to extract an object out of an archive. See ld(1).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2007 08:46 PM
тАО02-14-2007 08:46 PM
Solutionhttp://forums1.itrc.hp.com/service/forums/helptips.do?#33