Opened 5 months ago

Closed 5 months ago

#70263 closed defect (fixed)

rtmpdump @2.4-20210219_0+universal: is not universal

Reported by: ar-an-ribe Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: rtmpdump

Description

In trying to compile ffmpeg @4.4.4_7+gpl2+librtmp+universal+x11 on Mavericks, the following error is emitted during its configuration step:

:info:configure ERROR: librtmp not found using pkg-config

Note that the rtmpdump @2.4-20210219_0+universal port was successfully installed before trying to compile the ffmpeg @4.4.4_7+gpl2+librtmp+universal+x11 port.

Attachments (2)

main.log (77.9 KB) - added by ar-an-ribe 5 months ago.
main.log for ffmpeg @4.4.4_7+gpl2+librtmp+universal+x11
config.log (649.5 KB) - added by ar-an-ribe 5 months ago.
config.log for i386 component of ffmpeg @4.4.4_7+gpl2+librtmp+universal+x11

Download all attachments as: .zip

Change History (8)

Changed 5 months ago by ar-an-ribe

Attachment: main.log added

main.log for ffmpeg @4.4.4_7+gpl2+librtmp+universal+x11

comment:1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Please attach the config.log file mentioned in the main.log file.

Changed 5 months ago by ar-an-ribe

Attachment: config.log added

config.log for i386 component of ffmpeg @4.4.4_7+gpl2+librtmp+universal+x11

comment:2 in reply to:  1 Changed 5 months ago by ar-an-ribe

Replying to ryandesign:

Please attach the config.log file mentioned in the main.log file.

Done. It looks like it might be a coding issue in ffmpeg’s configure script; perhaps

long check_RTMP_Socket(void) { return (long) RTMP_Socket; }

ought to be

long check_RTMP_Socket(void) { return (long) RTMP_Socket((void *) 0); }

(if it doesn’t bring in a definition of NULL)?

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

The log says:

ld: warning: ignoring file /opt/local/lib/librtmp.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/librtmp.dylib

So librtmp is not installed universal even though you said the rtmpdump port was installed with the universal variant. Let's confirm that: try running:

lipo -info /opt/local/lib/librtmp.dylib
port provides /opt/local/lib/librtmp.dylib
port -v installed rtmpdump

comment:4 in reply to:  3 Changed 5 months ago by ar-an-ribe

Replying to ryandesign:

try running:

lipo -info /opt/local/lib/librtmp.dylib
port provides /opt/local/lib/librtmp.dylib
port -v installed rtmpdump

They return

Non-fat file: /opt/local/lib/librtmp.dylib is architecture: x86_64

Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
/opt/local/lib/librtmp.dylib is provided by: rtmpdump

Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
The following ports are currently installed:
  rtmpdump @2.4-20210219_0+universal (active) requested_variants='+universal' platform='darwin 13' archs='i386 x86_64' date='2022-04-23T13:51:17-0400'

respectively.

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

Cc: mascguy dbevans jeremyhu removed
Port: rtmpdump added; ffmpeg removed
Summary: ffmpeg @4.4.4_7+gpl2+librtmp+universal+x11: ERROR: librtmp not found using pkg-configrtmpdump @2.4-20210219_0+universal: is not universal

I can confirm this on my system.

comment:6 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 5da30de2339ab98480789740a4c490ed2298cdd8/macports-ports (master):

rtmpdump: Fix universal variant

Closes: #70263

Note: See TracTickets for help on using tickets.