Opened 5 years ago

Closed 5 years ago

#58963 closed defect (fixed)

libimobiledevice: Undefined symbols: _SSLv3_method

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: amake (Aaron Madlon-Kay)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: elcheco (Miroslav Koula), i0ntempest
Port: libimobiledevice

Description

libimobiledevice does not build:

Undefined symbols:
  "_SSLv3_method", referenced from:
      _idevice_connection_enable_ssl in idevice.o
ld: symbol(s) not found

Change History (16)

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Should just need to use SSLv23_method instead.

comment:2 Changed 5 years ago by JacksonIsaac (Jackson Isaac)

Owner: changed from JacksonIsaac to amake

Aaron Madlon-Kay has been working on maintaining libimobiledevice since a year now, hence re-assigning.

I am also okay if Aaron wants to take up maintainership of the port.

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: elcheco added

Has duplicate #58976.

comment:4 Changed 5 years ago by amake (Aaron Madlon-Kay)

I have only been maintaining libimobiledevice-devel, which I do for use with Flutter.

libimobiledevice-devel already builds and works correctly, and I'm not really comfortable patching the release (it's notoriously old); I think it would be better to pressure upstream to cut a new release.

comment:5 Changed 5 years ago by i0ntempest

Cc: i0ntempest added

comment:6 Changed 5 years ago by elcheco (Miroslav Koula)

Any updates here? As this one library is blocking the installation of so many other things... Any workaround? If I would install devel version would it be accepted as a dependency by other packages? Probably not...

comment:7 Changed 5 years ago by amake (Aaron Madlon-Kay)

The only port I can find that depends on libimobiledevice is ideviceinstaller, which already allows using libimobiledevice-devel instead. If there are other ports they can presumably be adjusted similarly.

comment:8 Changed 5 years ago by elcheco (Miroslav Koula)

ok, I just installed: libusbmuxd-devel which was required by libimobiledevice-devel and then I am able to compile everything again ;-)

comment:9 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

If this port will not be fixed, at least add known_fail yes so that the buildbot can skip it.

comment:10 Changed 5 years ago by Aaron Madlon-Kay <amake@…>

In e2d4fd67d5881b50c517604f17c7c7a6ce33b22b/macports-ports (master):

libimobiledevice: set known_fail yes on Catalina

See #58963

comment:11 Changed 5 years ago by amake (Aaron Madlon-Kay)

Sorry, that commit was totally wrong: I thought for a moment this was a Catalina issue, but it's an OpenSSL 1.1 issue. I've removed the OS version check for now.

I thought I could fix this by making it use the openssl10 port, but I can't figure out how to do it. The following appears to be how the configure script wants to receive OpenSSL-related options, but it still fails the same way.

configure.env-append \
    openssl_CFLAGS=-I${prefix}/include/openssl-1.0 \
    "openssl_LIBS=-L${prefix}/lib/openssl-1.0 -lssl -lcrypto"

comment:12 Changed 5 years ago by jmroot (Joshua Root)

The code just added is not restricted to a specific subport, so libimobiledevice-devel is erroring out too. Let me have a quick look to see if this is hard to actually fix though.

comment:13 Changed 5 years ago by amake (Aaron Madlon-Kay)

Oops, that was dumb. Sorry. I pushed a fix for that.

comment:14 in reply to:  1 Changed 5 years ago by jmroot (Joshua Root)

Replying to jmroot:

Should just need to use SSLv23_method instead.

That's actually been renamed to TLS_method in the current openssl version.

comment:15 in reply to:  13 Changed 5 years ago by jmroot (Joshua Root)

Replying to amake:

Oops, that was dumb. Sorry. I pushed a fix for that.

Maybe I shouldn't have said anything until I pushed, dealing with a conflict now. :(

comment:16 Changed 5 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In e3378ced59d40f736a04a4c8104030dd7c62008c/macports-ports (master):

libimobiledevice: fix build with openssl 1.1

Closes: #58963

Note: See TracTickets for help on using tickets.