- 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
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
тАО07-11-2004 11:33 PM
тАО07-11-2004 11:33 PM
/usr/ccs/bin/ld: Unsatisfied symbols:
when i try to issue cc in command prompt.
i get the following error.
#cc
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
Could anyone knows how to resolve this problem.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2004 11:47 PM
тАО07-11-2004 11:47 PM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:02 AM
тАО07-12-2004 12:02 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
# uname -a
HP-UX SERVER1 B.11.11 U 9000/800 119907872 unlimited-user license
# cc
#
Server with error.
# uname -a
HP-UX PPCHK B.11.11 U 9000/800 2758389902 unlimited-user license
# cc
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
do i need to re-install the HP C/ANSI C Developer's Bundle for HP-UX 11.i (S800)
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:09 AM
тАО07-12-2004 12:09 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
I have tested on 11.23 as
# cc
It is normal. no error message.
What is cc -v saying. Use the verbose type in ld. cc is working fine. ld is stating the problem.
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:17 AM
тАО07-12-2004 12:17 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
Issue which cc and let us know the cc path.
There could be some library version mismatch.
Normally /usr/ccs/bin/cc is link file.
You should have the LD_LIBRARY_PATH set with the following,
/usr/lib:/opt/langtools/lib
Thanks
Sreejith M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:17 AM
тАО07-12-2004 12:17 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
grcdg319[nero]:/tmp # swlist -l product |grep -i ansi
C-ANSI-C B.11.11.10 HP C/ANSI C Compiler
grcdg319[nero]:/tmp # cc -v
cc: informational note 404: NLSPATH is /opt/ansic/lib/nls/msg/%L/%N.cat:/opt/ansic/lib/nls/msg/C/%N.cat:
cc: informational note 404: INCLUDIR is INCLUDIR=/usr/include
cc: informational note 404: LPATH is /usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o -u main -lc
cc: informational note 413: Entering Link editor.
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
hprtdu22[dumpy]:/# swlist -l product |grep -i ansi
C-ANSI-C B.11.11.02 HP C/ANSI C Compiler
hprtdu22[dumpy]:/# cc -v
cc: NLSPATH is /opt/ansic/lib/nls/msg/%L/%N.cat:/opt/ansic/lib/nls/msg/C/%N.cat:
cc: CCOPTS is not set.
cc: INCLUDIR is INCLUDIR=/usr/include
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:22 AM
тАО07-12-2004 12:22 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
# cc -v
cc: informational note 404: NLSPATH is /opt/ansic/lib/nls/msg/%L/%N.cat:/opt/ansic/lib/nls/msg/C/%N.cat:
cc: informational note 404: INCLUDIR is INCLUDIR=/usr/include
cc: informational note 404: LPATH is /usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o -u main -lc
cc: informational note 413: Entering Link editor.
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:26 AM
тАО07-12-2004 12:26 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
It is the problem because of ld.
Execute /usr/ccs/bin/ld -umain -lc
It will state the problem in all machines as like your's when it is executed separately.But In your system, ansi cc is linked with ld with -u main to execute the particular ld command.
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:39 AM
тАО07-12-2004 12:39 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
Thats exactly what we have. So What we gonna do. Its that a bug or what?
what should be the advantage and disadvantage of the newer version.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2004 12:40 AM
тАО07-12-2004 12:40 AM
Re: /usr/ccs/bin/ld: Unsatisfied symbols:
cc is executed as /usr/ccs/bin/ld /opt/langtools/lib/crt0.o -u main -lc command without any file.
So it will state the error messages. change to another ansi bundle if you don't want to have this error messages. You can verify from konerman's output of different cc.
Regards,
Muthukumar.