undefined symbol: CRYPTO_num_locks

Asked by tomdean

I have eagle 7.7.0. This has worked for a long time. I have not used it for a year(or so).
Now, I have an error:

> /usr/local/eagle-7.7.0/bin/eagle
/usr/local/eagle-7.7.0/bin/eagle: symbol lookup error: /usr/local/eagle-7.7.0/bin/eagle: undefined symbol: CRYPTO_num_locks

ldd /usr/local/eagle-7.7.0/bin/eagle shows no undefined libraries.

I can not find CRYPTO_num_locks. Where is it defined?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
tomdean
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, what is the output of the commands

uname -a
lsb_release -crid

If you are talking about Autodesk eagle, there is already a version 9.6.0
http://eagle.autodesk.com/eagle/software-versions
Have you considered upgrading?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Which release of Ubuntu?
What changed to make this happen? (update? Sudden power loss)

Revision history for this message
tomdean (tomdean) said :
#3

On 3/29/21 12:31 AM, Manfred Hampl wrote:
> Your question #696293 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/696293
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> For diagnostic purposes, what is the output of the commands
>
> uname -a
> lsb_release -crid
>
> If you are talking about Autodesk eagle, there is already a version 9.6.0
> http://eagle.autodesk.com/eagle/software-versions
> Have you considered upgrading?
>

 > uname -a
Linux p9x79 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021
x86_64 x86_64 x86_64 GNU/Linux

 > lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

Autodesk changed the pricing for personal use. Now, it is a monthly
charge. The new 'free' version seems to be very limited.

Tom Dean

Revision history for this message
tomdean (tomdean) said :
#4

On 3/29/21 1:21 AM, actionparsnip wrote:
> Your question #696293 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/696293
>
> actionparsnip requested more information:
> Which release of Ubuntu?
> What changed to make this happen? (update? Sudden power loss)
>

This stopped working because of updates to Linux/Ubuntu.

Tom Dean

Revision history for this message
tomdean (tomdean) said :
#5

On 3/29/21 12:31 AM, Manfred Hampl wrote:
> Your question #696293 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/696293
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> For diagnostic purposes, what is the output of the commands
>
> uname -a
> lsb_release -crid
>
> If you are talking about Autodesk eagle, there is already a version 9.6.0
> http://eagle.autodesk.com/eagle/software-versions
> Have you considered upgrading?
>

eagle 7.7.0 needs libssl.so.1.0.0 and libcrypto.so.1.0.0

 > ldd /usr/local/eagle-7.7.0/bin/eagle
...
libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
...
libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20

 > ls -l ls -l /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
lrwxrwxrwx 1 root root 13 Mar 28 15:40
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 -> libssl.so.1.1

 > ls -l /usr/lib/x86_64-linux-gnu/libgcrypt.so.20
lrwxrwxrwx 1 root root 19 Feb 23 2020
/usr/lib/x86_64-linux-gnu/libgcrypt.so.20 -> libgcrypt.so.20.2.5

Maybe this is the problem.

I have an old disk with Ubuntu 18.04 on it. I will boot that and see if
eagle 7.7.0 works.

Tom Dean

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

What might work (based on https://www.mikrocontroller.net/topic/501814 )

Download https://launchpad.net/ubuntu/+archive/primary/+files/libssl1.0.0_1.0.2g-1ubuntu4.19_amd64.deb
Don't install that package but extract the files libssl.so.1.0.0 and libcrypto.so.1.0.0 from it and copy them into the /usr/local/eagle-7.7.0/ directory.

Change the command for starting eagle to
LD_PRELOAD=/usr/local/eagle-7.7.0/libssl.so.1.0.0:/usr/local/eagle-7.7.0/libcrypto.so.1.0.0 /usr/local/eagle-7.7.0/bin/eagle

(Don't confuse libcrypto.so and libgcrypt.so)

Revision history for this message
tomdean (tomdean) said :
#7

On 3/29/21 11:01 AM, tomdean wrote:
> Your question #696293 on Ubuntu changed:

I booted Ubuntu 18.04. eagle 7.7.0 works.

I mounted the Ubuntu-18.04 disks on /Ubuntu-18.04

 > ls -l /Ubuntu-18.04/usr/lib/x86_64-linux-gnu/libssl*
-rw-r--r-- 1 root root 426232 Feb 26 2019
/Ubuntu-18.04/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
-rw-r--r-- 1 root root 577312 Jun 20 2019
/Ubuntu-18.04/usr/lib/x86_64-linux-gnu/libssl.so.1.1
-rw-r--r-- 1 root root 328128 Jul 12 2019
/Ubuntu-18.04/usr/lib/x86_64-linux-gnu/libssl3.so

 > ls -l /Ubuntu-18.04/usr/lib/x86_64-linux-gnu/libcrypto*
-rw-r--r-- 1 root root 2357760 Feb 26 2019
/Ubuntu-18.04/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
-rw-r--r-- 1 root root 2917216 Jun 20 2019
/Ubuntu-18.04/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1

For Ubuntu 20.04,
 > ls -l /usr/lib/x86_64-linux-gnu/libssl*
-rw-r--r-- 1 root root 1016494 Mar 22 04:37
/usr/lib/x86_64-linux-gnu/libssl.a
lrwxrwxrwx 1 root root 13 Mar 22 04:37
/usr/lib/x86_64-linux-gnu/libssl.so -> libssl.so.1.1
lrwxrwxrwx 1 root root 13 Mar 28 15:40
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 -> libssl.so.1.1
-rw-r--r-- 1 root root 598104 Mar 22 04:37
/usr/lib/x86_64-linux-gnu/libssl.so.1.1
-rw-r--r-- 1 root root 382024 Aug 20 2020
/usr/lib/x86_64-linux-gnu/libssl3.so

 > ls -l /usr/lib/x86_64-linux-gnu/libcrypto*
-rw-r--r-- 1 root root 5538398 Mar 22 04:37
/usr/lib/x86_64-linux-gnu/libcrypto.a
lrwxrwxrwx 1 root root 16 Mar 22 04:37
/usr/lib/x86_64-linux-gnu/libcrypto.so -> libcrypto.so.1.1
lrwxrwxrwx 1 root root 16 Mar 28 15:42
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 -> libcrypto.so.1.1
-rw-r--r-- 1 root root 2954080 Mar 22 04:37
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1

Use `ldconfig -l` for libssl.so.1.0.0 and libcrypto.so.1.0.0?
-or-
Replace the symbolic links in the Ubuntu 20.04 directory with the actual
files from Ubuntu 18.04?

Tom Dean

Revision history for this message
tomdean (tomdean) said :
#8

On 3/29/21 11:35 AM, Manfred Hampl wrote:
> Your question #696293 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/696293
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> What might work (based on https://www.mikrocontroller.net/topic/501814 )
>
> Download https://launchpad.net/ubuntu/+archive/primary/+files/libssl1.0.0_1.0.2g-1ubuntu4.19_amd64.deb
> Don't install that package but extract the files libssl.so.1.0.0 and libcrypto.so.1.0.0 from it and copy them into the /usr/local/eagle-7.7.0/ directory.
>
> Change the command for starting eagle to
> LD_PRELOAD=/usr/local/eagle-7.7.0/libssl.so.1.0.0:/usr/local/eagle-7.7.0/libcrypto.so.1.0.0 /usr/local/eagle-7.7.0/bin/eagle
>
> (Don't confuse libcrypto.so and libgcrypt.so)
>

libgcrypto was a typo... old fingers.

I copied libssl.so.1.0.0 and libcrypto.so.1.0.0 from my Ubuntu 18.04
disk. Problem fixed.

Thanks for the LD_PRELOAD hint. I forgot about that. Getting old...

Thanks for all the replies.

Tom Dean

Revision history for this message
tomdean (tomdean) said :
#9

Solved.