Opened 3 years ago

Last modified 3 years ago

#63491 assigned defect

libopenshot: error: use of undeclared identifier 'zmq_ctx_shutdown'

Reported by: ShugoSUWAZONO Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: catalina bigsur Cc:
Port: libopenshot

Description (last modified by ryandesign (Ryan Carsten Schmidt))

See following selected message from "main.log" ... Is this due to py38-zmq??

libopenshot-0.2.5/src/ChunkWriter.cpp
/CacheBase.cpp:31:
/CacheBase.h:36:
/Frame.h:49:
/ZmqLogger.h:43:

:info:build /opt/local/include/zmq.hpp:855:18: error: use of undeclared identifier 'zmq_ctx_shutdown'

etc...

Attachments (2)

main.log (200.1 KB) - added by ShugoSUWAZONO 3 years ago.
main.log.202109161136JST.log (72.8 KB) - added by ShugoSUWAZONO 3 years ago.
after deactivating doxygen …

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by ShugoSUWAZONO

Attachment: main.log added

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

Description: modified (diff)
Keywords: catalina bigsur added
Owner: set to ctreleaven
Status: newassigned
Summary: libopenshot cannot be upgrade; error: use of undeclared identifier 'zmq_ctx_shutdown' at libopenshot-0.2.5/src/ChunkWriter.cpplibopenshot: error: use of undeclared identifier 'zmq_ctx_shutdown'
Version: 2.7.1

comment:2 Changed 3 years ago by ctreleaven (Craig Treleaven)

I have an update to the openshot ports just about ready to commit. We might as well see if that solves your problem before spending a lot of time on this. I'll commit the changes in the next few hours and then let you know when to try again.

comment:3 Changed 3 years ago by ctreleaven (Craig Treleaven)

OK, update has been committed, please try

sudo port selfupdate
sudo port clean libopenshot

and then please attempt to continue the installation.

comment:4 Changed 3 years ago by ctreleaven (Craig Treleaven)

Please keep discussion in the ticket. There is a good chance we'll need support from others to fix this and/or that other users may have the same experience.

You emailed:


Thanks a lot for your quick response on this. Well, I do not know what is happening here:

mbp17-2:~ $ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.7.1 installed,
MacPorts base version 2.7.1 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
mbp17-2:~ $ sudo port clean libopenshot
--->  Cleaning libopenshot
mbp17-2:~ $ port list outdated
mbp17-2:~ $ sudo port rev-upgrade
--->  Scanning binaries for linking errors
--->  Found 4 broken files, matching files to ports      
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: libopenshot @0.2.6
Continue? [Y/n]: 
--->  Computing dependencies for libopenshot
--->  Cleaning libopenshot
--->  Scanning binaries for linking errors
--->  Found 4 broken files, matching files to ports      
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     libopenshot @0.2.6_0
--->  Computing dependencies for libopenshot
--->  Fetching distfiles for libopenshot
--->  Verifying checksums for libopenshot
--->  Extracting libopenshot
--->  Configuring libopenshot
--->  Building libopenshot                               
Error: Failed to build libopenshot: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_libopenshot/libopenshot/main.log for details.
Error: rev-upgrade failed: Error rebuilding libopenshot
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

comment:5 Changed 3 years ago by ctreleaven (Craig Treleaven)

I don't know why it is failing to build on your system but succeeded on our macOS 11 buildbot:

https://build.macports.org/builders/ports-11_x86_64-builder/builds/46225

I do notice that you have doxygen installed and it is therefore automatically attempting to build documentation. Please temporarily disable doxygen and try again.

sudo port deactivate doxygen
sudo port clean libopenshot
sudo port install libopenshot

Changed 3 years ago by ShugoSUWAZONO

after deactivating doxygen ...

comment:6 Changed 3 years ago by ShugoSUWAZONO

Thanks a lot for this quick response. I tried "sudo port deactivate doxygen; sudo port clean libopenshot; sudo port install libopenshot", but no success "sudo port rev-upgrade". Let me attach the new logfile again.

comment:7 Changed 3 years ago by ctreleaven (Craig Treleaven)

I'm afraid I'm not able to find the source of the problem. There is an old ticket about zmq.hpp not being able to locate zmq which could conceivably be related:

https://trac.macports.org/ticket/56733

However, that doesn't explain why the port builds in some environments and not others. If you want to install openshot-qt, I guess the best bet is to download the pre-built binary from the project.

comment:8 Changed 3 years ago by ShugoSUWAZONO

Using the successfully installed binary libopenshot @0.2.6_0 (active), other ports (including py38-qt5@5.15.4 +webkit, and openshot-qt@2.6.0) were successfully upgraded. I would just avoid to do "rev-upgrade", although there are 4 broken files and 1 broken port (the last one is the libopenshot and if I press y to "Continue?" question, the build of libopenshot@0.2.6 still fails). Can you please close this ticket? I really appreciate your kind&quick help on this!

Note: See TracTickets for help on using tickets.