- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: usr/ccs/bin/ld: Unsatisfied symbols
Operating System - Linux
1755381
Members
4080
Online
108832
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО05-24-2006 02:14 AM
тАО05-24-2006 02:14 AM
usr/ccs/bin/ld: Unsatisfied symbols
Hi all ,
I have 3 files like below
md5.c
{
MDString(char *){}
}
md5.h{MDString(char*)}
ssl.cxx
{
#include
MDString(char*);
}
When I try to compile this I m getting the following error
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ssl.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
MDString(char *) (code)1
I m using the following command to compile my code
aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.c -L . -lssl -lcrypto -o binu
can any one help me
Thanks a lot in advance
Binu
I have 3 files like below
md5.c
{
MDString(char *){}
}
md5.h{MDString(char*)}
ssl.cxx
{
#include
MDString(char*);
}
When I try to compile this I m getting the following error
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ssl.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
MDString(char *) (code)1
I m using the following command to compile my code
aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.c -L . -lssl -lcrypto -o binu
can any one help me
Thanks a lot in advance
Binu
- Tags:
- unsat
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 08:30 AM
тАО05-24-2006 08:30 AM
Re: usr/ccs/bin/ld: Unsatisfied symbols
--8<--- md5.c
void MDString (char *s)
{
return;
} /* MDString */
-->8---
--8<--- md5.h
extern void MDString (char*);
-->8---
--8<--- ssl.cxx
{
#include
MDString(char*);
}
-->8---
I have NO idea how c++ works, so I do not know how that ssl.cxx should look like
But that C source should be compiled first to make it a loadable object, I think
# cc -c -o md5.c
then you might be able to load it in with your c++ file
# aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.o -Wl,+vnocompatwarnings -L . -lssl -lcrypto -o binu
the -Wl,+vnocompatwarnings is to preven that annoying compatability warning
I hope this helps. If not, wait for some c++ guru's
Enjoy, Have FUN! H.Merijn
void MDString (char *s)
{
return;
} /* MDString */
-->8---
--8<--- md5.h
extern void MDString (char*);
-->8---
--8<--- ssl.cxx
{
#include
MDString(char*);
}
-->8---
I have NO idea how c++ works, so I do not know how that ssl.cxx should look like
But that C source should be compiled first to make it a loadable object, I think
# cc -c -o md5.c
then you might be able to load it in with your c++ file
# aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.o -Wl,+vnocompatwarnings -L . -lssl -lcrypto -o binu
the -Wl,+vnocompatwarnings is to preven that annoying compatability warning
I hope this helps. If not, wait for some c++ guru's
Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 10:18 AM
тАО05-24-2006 10:18 AM
Re: usr/ccs/bin/ld: Unsatisfied symbols
>I have 3 files like below
md5.c
{
MDString(char *){}
}
Do you actually have a file with a {} block in it?
>ld: Unsatisfied symbols:
MDString(char *) (code)
This indicates you have a mangled name for the unsat. But MDString is C?
Your needs to be C++ified. It should have lines like:
#ifdef __cplusplus
extern "C" {
#endif
...
MDString(char *){}
#ifdef __cplusplus
}
#endif
>I'm using the following command to compile my code:
aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.c -L . -lssl -lcrypto -o binu
If you are using aCC to compile md5.c, it should be C++ so you can't get this unsat.
There are several other issues. Why are you using -lcma? You should be using kernel threads and compile with +mt.
Also libs should go at the end of the line.
md5.c
{
MDString(char *){}
}
Do you actually have a file with a {} block in it?
>ld: Unsatisfied symbols:
MDString(char *) (code)
This indicates you have a mangled name for the unsat. But MDString is C?
Your
#ifdef __cplusplus
extern "C" {
#endif
...
MDString(char *){}
#ifdef __cplusplus
}
#endif
>I'm using the following command to compile my code:
aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.c -L . -lssl -lcrypto -o binu
If you are using aCC to compile md5.c, it should be C++ so you can't get this unsat.
There are several other issues. Why are you using -lcma? You should be using kernel threads and compile with +mt.
Also libs should go at the end of the line.
- Tags:
- mangled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2006 05:23 PM
тАО05-24-2006 05:23 PM
Re: usr/ccs/bin/ld: Unsatisfied symbols
Hi All ,
My problem is resolved .
I was trying to access a static function from a different file ...
My problem is resolved .
I was trying to access a static function from a different file ...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP