Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Can't get openssh to compile' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Can't get openssh to compile
Authored by: lovejoy on Mar 08, '02 09:00:34AM
Did you download and fully compile the OpenSSL library? This is the second step in the 3-step process as listed at :
    http://www.stepwise.com/Articles/Workbench/2001-12-17.01.html
I did that and then used the commercial/non-commercial SSH source form SSH.com, and got no errors. Lovejoy

[ Reply to This | # ]
Can't get openssh to compile
Authored by: oeyvind on Mar 08, '02 11:11:01AM

did these steps for sure:

curl -O http://www3.stepwise.com/Articles/Workbench/OpenSSL-0.9.6b-7.1.tar.gz

gnutar -xzf OpenSSL-0.9.6b-7.1.tar.gz
cd OpenSSL-7-1/openssl

./config

sudo mkdir -p /usr/local/include
sudo rm -rf /usr/local/include/openssl
sudo cp -r include/openssl /usr/local/include/openssl

I checked /usr/local/include/openssl after the last steps... it's all dead links referring something like ../../crypto/blah blah.h

I even tried copy all the headers according to the list.. no go too.



[ Reply to This | # ]
Can't get openssh to compile
Authored by: see on Mar 08, '02 11:32:02AM

that was not any problem for me at least... /usr/local/include/openssl is correct for me. be sure you type everything right sometimes an extra / in the end might *censored* up things...but problems arise for me when compiling ssh source



[ Reply to This | # ]
Can't get openssh to compile
Authored by: oeyvind on Mar 08, '02 01:12:36PM

yes did exactly... anyway, worse case I will wait for Apple's update/



[ Reply to This | # ]
Can't get openssh to compile
Authored by: Brad Puett on Mar 11, '02 01:45:50PM

I believe I have found the answer to oeyvind (as well as my) problem.

Here's the solution:

Do everything just like it says in the Stepwise article
(http://www.stepwise.com/Articles/Workbench/2001-12-17.01.html)

EXCEPT:

instead of using the following line (which is the last
line in the instructions to compile the OpenSSL library):

sudo cp -r include/openssl /usr/local/include/openssl

Use this line instead:

sudo cp -RL include/openssl /usr/local/include/openssl

Here's the secret from the man page for cp:

"Historic versions of the cp utility had a -r option. This
implementation supports that option; however, its use
is strongly discouraged, as it does not correctly copy
special files, symbolic links or fifo's."

The problem was that, by using the -r option of the cp
command, you (and I) were copying the soft links as is
(example: asn1.h -> ../../crypto/asn1/asn1.h),
which meant it was trying to find the crypto directory in
the /usr/local directory, which was never going to happen.

By using the -RL option, it will copy over the actual files,
instead of making realtive pointers to them
(example: asn1.h)

Try it and let me know how it turns out!

I'll send this solution to Stepwise late this afternoon ...



[ Reply to This | # ]
Can't get openssh to compile
Authored by: lovejoy on Mar 11, '02 01:03:43PM

It looks like it was fixed, but I said ./config threads to make it mutil-threaded. Other than that it was perfect.

Lovejoy



[ Reply to This | # ]