<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: usr/ccs/bin/ld: Unsatisfied symbols in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980603#M99694</link>
    <description>&amp;gt;I have 3 files like below&lt;BR /&gt;md5.c&lt;BR /&gt;{&lt;BR /&gt;MDString(char *){}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Do you actually have a file with a {} block in it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ld: Unsatisfied symbols:&lt;BR /&gt;MDString(char *) (code)&lt;BR /&gt;&lt;BR /&gt;This indicates you have a mangled name for the unsat.  But MDString is C?&lt;BR /&gt;&lt;BR /&gt;Your &lt;MD5.H&gt; needs to be C++ified.  It should have lines like:&lt;BR /&gt;#ifdef __cplusplus&lt;BR /&gt;extern "C" {&lt;BR /&gt;#endif&lt;BR /&gt;...&lt;BR /&gt;MDString(char *){}&lt;BR /&gt;#ifdef __cplusplus&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'm using the following command to compile my code:&lt;BR /&gt; aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.c -L . -lssl -lcrypto -o binu&lt;BR /&gt;&lt;BR /&gt;If you are using aCC to compile md5.c, it should be C++ so you can't get this unsat.&lt;BR /&gt;&lt;BR /&gt;There are several other issues.  Why are you using -lcma?  You should be using kernel threads and compile with +mt.&lt;BR /&gt;&lt;BR /&gt;Also libs should go at the end of the line.&lt;/MD5.H&gt;</description>
    <pubDate>Wed, 24 May 2006 17:18:36 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2006-05-24T17:18:36Z</dc:date>
    <item>
      <title>usr/ccs/bin/ld: Unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980601#M99692</link>
      <description>Hi all ,&lt;BR /&gt;I have 3 files like below &lt;BR /&gt;&lt;BR /&gt;md5.c&lt;BR /&gt;{&lt;BR /&gt; MDString(char *){}&lt;BR /&gt;}&lt;BR /&gt;md5.h{MDString(char*)}&lt;BR /&gt;&lt;BR /&gt;ssl.cxx&lt;BR /&gt;{&lt;BR /&gt;#include &lt;MD5.H&gt;&lt;BR /&gt;&lt;BR /&gt;MDString(char*);&lt;BR /&gt;}&lt;BR /&gt;When I try to compile this I m getting the following error &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;/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.&lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols:&lt;BR /&gt;   MDString(char *) (code)1&lt;BR /&gt;&lt;BR /&gt;I m using the following command to compile my code &lt;BR /&gt;&lt;BR /&gt;aCC -lcma  -I/home/mydir/openssl-0.9.8a/include  ssl.cxx md5.c -L . -lssl -lcrypto -o binu&lt;BR /&gt;&lt;BR /&gt;can any one help me                             &lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance&lt;BR /&gt;Binu&lt;BR /&gt;&lt;/MD5.H&gt;</description>
      <pubDate>Wed, 24 May 2006 09:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980601#M99692</guid>
      <dc:creator>msbinu</dc:creator>
      <dc:date>2006-05-24T09:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: usr/ccs/bin/ld: Unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980602#M99693</link>
      <description>--8&amp;lt;--- md5.c&lt;BR /&gt;void MDString (char *s)&lt;BR /&gt;{&lt;BR /&gt;    return;&lt;BR /&gt;    } /* MDString */&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;--- md5.h&lt;BR /&gt;extern void MDString (char*);&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;--- ssl.cxx&lt;BR /&gt;{&lt;BR /&gt;#include &lt;MD5.H&gt;&lt;BR /&gt;&lt;BR /&gt;MDString(char*);&lt;BR /&gt;}&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;I have NO idea how c++ works, so I do not know how that ssl.cxx should look like&lt;BR /&gt;&lt;BR /&gt;But that C source should be compiled first to make it a loadable object, I think&lt;BR /&gt;&lt;BR /&gt;# cc -c -o md5.c&lt;BR /&gt;&lt;BR /&gt;then you might be able to load it in with your c++ file&lt;BR /&gt;&lt;BR /&gt;# aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.o -Wl,+vnocompatwarnings -L . -lssl -lcrypto -o binu&lt;BR /&gt;&lt;BR /&gt;the -Wl,+vnocompatwarnings is to preven that annoying compatability warning&lt;BR /&gt;&lt;BR /&gt;I hope this helps. If not, wait for some c++ guru's&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;/MD5.H&gt;</description>
      <pubDate>Wed, 24 May 2006 15:30:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980602#M99693</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-05-24T15:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: usr/ccs/bin/ld: Unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980603#M99694</link>
      <description>&amp;gt;I have 3 files like below&lt;BR /&gt;md5.c&lt;BR /&gt;{&lt;BR /&gt;MDString(char *){}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Do you actually have a file with a {} block in it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ld: Unsatisfied symbols:&lt;BR /&gt;MDString(char *) (code)&lt;BR /&gt;&lt;BR /&gt;This indicates you have a mangled name for the unsat.  But MDString is C?&lt;BR /&gt;&lt;BR /&gt;Your &lt;MD5.H&gt; needs to be C++ified.  It should have lines like:&lt;BR /&gt;#ifdef __cplusplus&lt;BR /&gt;extern "C" {&lt;BR /&gt;#endif&lt;BR /&gt;...&lt;BR /&gt;MDString(char *){}&lt;BR /&gt;#ifdef __cplusplus&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'm using the following command to compile my code:&lt;BR /&gt; aCC -lcma -I/home/mydir/openssl-0.9.8a/include ssl.cxx md5.c -L . -lssl -lcrypto -o binu&lt;BR /&gt;&lt;BR /&gt;If you are using aCC to compile md5.c, it should be C++ so you can't get this unsat.&lt;BR /&gt;&lt;BR /&gt;There are several other issues.  Why are you using -lcma?  You should be using kernel threads and compile with +mt.&lt;BR /&gt;&lt;BR /&gt;Also libs should go at the end of the line.&lt;/MD5.H&gt;</description>
      <pubDate>Wed, 24 May 2006 17:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980603#M99694</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-05-24T17:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: usr/ccs/bin/ld: Unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980604#M99695</link>
      <description>Hi All ,&lt;BR /&gt;&lt;BR /&gt;My problem is resolved .&lt;BR /&gt;I was trying to access a static function from a different file ...&lt;BR /&gt;</description>
      <pubDate>Thu, 25 May 2006 00:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/usr-ccs-bin-ld-unsatisfied-symbols/m-p/4980604#M99695</guid>
      <dc:creator>msbinu</dc:creator>
      <dc:date>2006-05-25T00:23:15Z</dc:date>
    </item>
  </channel>
</rss>

