<?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: ld-error while compiling OpenSSL in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-while-compiling-openssl/m-p/2680050#M52876</link>
    <description>I had found it already. On a site about compiling OpenSSL (didn't show up on Google, had to find it other ways) it said something like this. To be exact it told me to add the following two lines inside the ld-command:&lt;BR /&gt;&lt;BR /&gt;-L/usr/local/src/openssl-0.9.6c +cdp /usr/local/src/openssl-0.9.6c:/opt/openssl/lib &lt;BR /&gt;It works now. Thanks.</description>
    <pubDate>Mon, 11 Mar 2002 11:46:07 GMT</pubDate>
    <dc:creator>Jeanne de Roos</dc:creator>
    <dc:date>2002-03-11T11:46:07Z</dc:date>
    <item>
      <title>ld-error while compiling OpenSSL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-while-compiling-openssl/m-p/2680048#M52874</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could somebody please help me with this? I'm having trouble compiling OpenSSL 0.9.6c on HP-UX 11.00 with gcc 3.0.2.&lt;BR /&gt;&lt;BR /&gt;I'll give the last part of the compile here (hope it prints all right):&lt;BR /&gt;&lt;BR /&gt;making all in tools...&lt;BR /&gt;+ rm -f libcrypto.sl.0&lt;BR /&gt;+ rm -f libcrypto.sl&lt;BR /&gt;+ rm -f libcrypto.sl.0.9.6&lt;BR /&gt;        libs=''; for i in crypto; do         ( set -x; /usr/ccs/bin/ld +vnocompatwarnings                 -b -z -o lib$i.sl.0.9.6                 +h lib$i.sl.0.9.6                 -Fl lib$i.a $libs -ldld -lc ) || exit 1;         libs="$libs -L. -l$i";         done&lt;BR /&gt;+ /usr/ccs/bin/ld +vnocompatwarnings -b -z -o libcrypto.sl.0.9.6 +h libcrypto.sl.0.9.6 -Fl libcrypto.a -ldld -lc&lt;BR /&gt;+ ln -f -s libcrypto.sl.0.9.6 libcrypto.sl.0&lt;BR /&gt;+ ln -f -s libcrypto.sl.0 libcrypto.sl&lt;BR /&gt;+ rm -f libssl.sl.0&lt;BR /&gt;+ rm -f libssl.sl&lt;BR /&gt;+ rm -f libssl.sl.0.9.6&lt;BR /&gt;        libs='-lcrypto'; for i in ssl; do         ( set -x; /usr/ccs/bin/ld +vnocompatwarnings                 -b -z -o lib$i.sl.0.9.6                 +h lib$i.sl.0.9.6                 -Fl lib$i.a $libs -ldld -lc ) || exit 1;         libs="$libs -L. -l$i";         done&lt;BR /&gt;+ /usr/ccs/bin/ld +vnocompatwarnings -b -z -o libssl.sl.0.9.6 +h libssl.sl.0.9.6 -Fl libssl.a -lcrypto -ldld -lc&lt;BR /&gt;/usr/ccs/bin/ld: Can't find library for -lcrypto&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;What's the problem here?</description>
      <pubDate>Mon, 11 Mar 2002 10:36:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-while-compiling-openssl/m-p/2680048#M52874</guid>
      <dc:creator>Martijn Bruns</dc:creator>
      <dc:date>2002-03-11T10:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: ld-error while compiling OpenSSL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-while-compiling-openssl/m-p/2680049#M52875</link>
      <description>The all important -L. argument to ld is being left off, which tells ld to look in the current directory to find the library instead of just /usr/lib.  You can try fixing this problem in the makefile, or set the LPATH environment variable before running make:&lt;BR /&gt;&lt;BR /&gt;$ export LPATH="/usr/lib:."&lt;BR /&gt;$ make&lt;BR /&gt;&lt;BR /&gt;but this may cause other problems.  My preference would be to change the makefile, where the problem seems to involve the setting of the $libs variable - it is being initialised without -L. before the for loops.  The correct command should be:&lt;BR /&gt;&lt;BR /&gt;libs='-L. -lcrypto'; for i in ssl; do ( set -x; /usr/ccs/bin/ld +vnocompatwarnings -b -z -o lib$i.sl.0.9.6 +h lib$i.sl.0.9.6 -Fl lib$i.a $libs -ldld -lc ) || exit 1; libs="$libs -L. -l$i"; done &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 11 Mar 2002 11:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-while-compiling-openssl/m-p/2680049#M52875</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-03-11T11:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: ld-error while compiling OpenSSL</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-while-compiling-openssl/m-p/2680050#M52876</link>
      <description>I had found it already. On a site about compiling OpenSSL (didn't show up on Google, had to find it other ways) it said something like this. To be exact it told me to add the following two lines inside the ld-command:&lt;BR /&gt;&lt;BR /&gt;-L/usr/local/src/openssl-0.9.6c +cdp /usr/local/src/openssl-0.9.6c:/opt/openssl/lib &lt;BR /&gt;It works now. Thanks.</description>
      <pubDate>Mon, 11 Mar 2002 11:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-error-while-compiling-openssl/m-p/2680050#M52876</guid>
      <dc:creator>Jeanne de Roos</dc:creator>
      <dc:date>2002-03-11T11:46:07Z</dc:date>
    </item>
  </channel>
</rss>

