<?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 ldap C Api compilation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-c-api-compilation/m-p/3074478#M809085</link>
    <description>Hello all! I was trying on a sample program I created using ldap c api calls named ltest1a.c. The thing is it works if I use the following line of code to compile it&lt;BR /&gt;&lt;BR /&gt;cc -g -I $I $1 ltest1a.c -L$L -lldap50 &lt;BR /&gt;&lt;BR /&gt;But if I wanted to compile it with a static library like &lt;BR /&gt;&lt;BR /&gt;cc -g -I $I $1 ltest1a.c -Wl,-E -ldld -lpthread -L$L -Wl,-a,archive -lldap50 -ll&lt;BR /&gt;ber50&lt;BR /&gt;&lt;BR /&gt;I encounter the error &lt;BR /&gt;ldap_simple_bind_s: Can't connect to the LDAP server - No route to host.&lt;BR /&gt;&lt;BR /&gt;Is it something wrong with the arguments I supplied if I wanted to statically link with ldap or is it something wrong with the archive itself? if so, how could you tell?&lt;BR /&gt;&lt;BR /&gt;any help is much appreciated. thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Sep 2003 15:56:12 GMT</pubDate>
    <dc:creator>mango_1</dc:creator>
    <dc:date>2003-09-18T15:56:12Z</dc:date>
    <item>
      <title>ldap C Api compilation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ldap-c-api-compilation/m-p/3074478#M809085</link>
      <description>Hello all! I was trying on a sample program I created using ldap c api calls named ltest1a.c. The thing is it works if I use the following line of code to compile it&lt;BR /&gt;&lt;BR /&gt;cc -g -I $I $1 ltest1a.c -L$L -lldap50 &lt;BR /&gt;&lt;BR /&gt;But if I wanted to compile it with a static library like &lt;BR /&gt;&lt;BR /&gt;cc -g -I $I $1 ltest1a.c -Wl,-E -ldld -lpthread -L$L -Wl,-a,archive -lldap50 -ll&lt;BR /&gt;ber50&lt;BR /&gt;&lt;BR /&gt;I encounter the error &lt;BR /&gt;ldap_simple_bind_s: Can't connect to the LDAP server - No route to host.&lt;BR /&gt;&lt;BR /&gt;Is it something wrong with the arguments I supplied if I wanted to statically link with ldap or is it something wrong with the archive itself? if so, how could you tell?&lt;BR /&gt;&lt;BR /&gt;any help is much appreciated. thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Sep 2003 15:56:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ldap-c-api-compilation/m-p/3074478#M809085</guid>
      <dc:creator>mango_1</dc:creator>
      <dc:date>2003-09-18T15:56:12Z</dc:date>
    </item>
  </channel>
</rss>

