Opened 4 years ago

Closed 4 years ago

#59769 closed defect (worksforme)

libcurl links with libssl 1.1 which is not there

Reported by: UncleBuck62 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: michaelld (Michael Dickens), ryandesign (Ryan Carsten Schmidt)
Port: cmake curl

Description

Trying to install gnuradio and it gets to the point of installing uhd but fails with the following error:

--->  Configuring uhd
Error: Failed to configure uhd: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_uhd/uhd/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port uhd failed

Attachments (1)

main.log (115.8 KB) - added by UncleBuck62 4 years ago.
port log file

Download all attachments as: .zip

Change History (10)

Changed 4 years ago by UncleBuck62

Attachment: main.log added

port log file

comment:1 Changed 4 years ago by UncleBuck62

I am assuming most of the information you need is in the log file but thought I would just state that I am on El Capitan (10.11.6)

Last edited 4 years ago by UncleBuck62 (previous) (diff)

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Cc: michaelld ryandesign added
Keywords: uhd gnuradio removed
Milestone: MacPorts 2.7.0
Port: cmake curl added
:debug:main Searching for dependency: openssl
:debug:main Didn't find receipt, going to depspec regex for: openssl
:debug:main Found Dependency: path: /opt/local/lib filename: libssl.dylib regex: ^libssl.dylib$
:debug:main openssl not installed, soft dependency satisfied
:info:configure dyld: Library not loaded: /opt/local/lib/libssl.1.1.dylib
:info:configure   Referenced from: /opt/local/lib/libcurl.4.dylib
:info:configure   Reason: image not found

What's going on there? Which port, if any, installed /opt/local/lib/libssl.dylib?

comment:3 Changed 4 years ago by UncleBuck62

In /opt/local/lib/ I have two files that start with libssl

libssl.1.0.0.dylib
libssl.a

And an alias that has the name libssl.dylib that points to first file listed above.

Rather than trying to let this install as part of a dependency of gnuradio, I have also tried to do the following with no success (i.e. the same failure happens).

port clean --all uhd
port install uhd
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 4 years ago by jmroot (Joshua Root)

Please run port provides /opt/local/lib/libssl.dylib to find which port installed it.

comment:5 Changed 4 years ago by UncleBuck62

Running the command port provides /opt/local/lib/libssl.dylib returns

/opt/local/lib/libssl.dylib is not provided by a MacPorts port.
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 4 years ago by UncleBuck62

Managed to get past the problem by installing openssl and then re-running the install of uhd.
Now the problem is that gnuradio install is failing.

--->  Configuring gnuradio
Error: Failed to configure gnuradio: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gnuradio/gnuradio/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gnuradio failed

Should I open a different ticket for this?

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Port: uhd removed
Summary: Failure to install uhd (failed to configure)libcurl links with libssl 1.1 which is not there

Usually I would say yes, file a new ticket, but in this case, please attach the gnuradio log here first so we can see if it has the same root cause, since what you have experienced so far probably isn't a bug in MacPorts but something strange going on with your specific MacPorts installation.

We've already established that you have at least one file in the MacPorts prefix that MacPorts didn't put there (/opt/local/lib/libssl.dylib). Who knows how many other files are there that MacPorts didn't put there, and where they came from. (Sometimes badly-made third-party installers will put files in the MacPorts prefix -- sometimes even overwriting newer files MacPorts had already put there.)

In fact /opt/local/lib/libssl.dylib should have been there, and it should have been provided by the MacPorts openssl port, along with the mentioned /opt/local/lib/libssl.1.1.dylib, since openssl is a dependency of curl, which is the port that provides /opt/local/lib/libcurl.4.dylib. How did this situation arise? Had you deliberately uninstalled openssl, ignoring the warnings MacPorts printed that that would break things?

If you find more files in the MacPorts prefix that aren't provided by a port and that cause you problems, and you can't account for and remove them, it may be simplest to uninstall MacPorts completely, including fully deleting /opt/local (after moving out any important data, config files, etc.), and then reinstalling MacPorts and the ports you want. That way you can be sure there aren't any files in there that shouldn't be there.

comment:8 Changed 4 years ago by UncleBuck62

I'm unable to attach the log file as I took the drastic step of doing a complete uninstall of all ports and deleting everything before I got back to this ticket.
Since uninstalling I have re-ported gnuradio and everything worked. ALL ports came in with no issues.
I have not seen any port issues since doing this so I am not sure what you want to do with this ticket now.

comment:9 Changed 4 years ago by kencu (Ken)

Resolution: worksforme
Status: newclosed

Thanks for the report back!

Note: See TracTickets for help on using tickets.